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

From: Anselmo Meregaglia <Anselmo.Meregaglia_at_cern.ch>
Date: Wed, 31 Aug 2005 18:19:23 +0200


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 - 18:19:29 MEST

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