Re: problems compiling root 4-04-02f on mac using gcc 4.0.0

From: Rene Brun <>
Date: Wed, 31 Aug 2005 22:44:49 +0200 (MEST)


To run with gcc4 you will need a version of cernlib compatible with this compiler. If you do not need g2root, you can specify   --disable-cern
It would be nice if somebody could report success in installing the latest cernlib on the MAC and callable from gcc4.

Rene Brun

On Wed, 31
Aug 2005, Anselmo Meregaglia wrote:

> Hi all,
> I am trying to compile root v4-04-02f on mac OSX using gcc 4.0.0
> I configured it with the option --enable-table that I need in order to have qtRoot working properly (my next step).
> In principle it should be fairly easy since it is even possible to download binaries but I can not compile it for some reason.
> The error I get is the following:
> g++ -O2 -bind_at_load -o bin/g2root main/src/g2root.o \
> /cern/pro/lib/libpacklib.a /cern/pro/lib/libkernlib.a \
> -lg2c -lm -L/sw/lib -lpthread -ldl
> /usr/bin/ld: Undefined symbols:
> _main
> collect2: ld returned 1 exit status
> make: *** [bin/g2root] Error 1
> I have been told I could compile it with the option --disable-cern but I would rather do it the proper way.
> Can anyone help me?
> Cheers
> Anselmo
Received on Wed Aug 31 2005 - 22:44:54 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:12 MET