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

From: Fons Rademakers <Fons.Rademakers_at_cern.ch>
Date: Fri, 21 Oct 2005 23:47:53 +0200


Thanks Keisuke, I've added the information to the binary download page http://root.cern.ch/root/Version504.html

Cheers, Fons.

Keisuke Fujii wrote:
> Dear Mac rooters,
>
> I have recently succeeded in making cernlib2005 compile and run on MacOS
> X 10.4
> using the recent gcc4 and gfortran (gcc-4.1.0 checked out from CVS on
> Oct.4,2005).
> See
> http://www-jlc.kek.jp/~fujiik/macosx/10.4.X/
> for details.
> --
> Sincerely yours,
> Keisuke Fujii
>
> On 2005/09/01, at 5:44, Rene Brun wrote:
>

>> Anselmo,
>>
>> 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
>>>
>>>
>>>
>>>
>>

>
>
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers_at_cern.ch              Phone: +41 22 7679248
WWW:    http://www.rademakers.org/fons/      Fax:   +41 22 7669640
Received on Fri Oct 21 2005 - 23:55:14 MEST

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