Re: Can't compile on Lion

From: Chris Jones <jonesc_at_hep.phy.cam.ac.uk>
Date: Sun, 24 Jul 2011 19:51:30 +0100


Hi,

Great news. Sorry if I assumed the ROOT team hadn't test on Lion yet, I should have known better.

Any ideas when the fixes will make it into a release (we can only use released versions in MacPorts) ?

cheers Chris

On 24 Jul 2011, at 7:31pm, Fons Rademakers wrote:

> And we build on Lion by default with clang++ and not anymore the gcc-llvm front-end (I've been running Lion since some early preview).
> 
> Cheers, Fons.
> 
> On 24/07/2011 19:57, Chris Jones wrote:
>> Hi,
>> 
>> I think the issue in MacPorts is different, nothing to do with libpng ?
>> 
>> cheers Chris
>> 
>> On 24 Jul 2011, at 5:32pm, Fons Rademakers wrote:
>> 

>>> Hi Chris,
>>>
>>> this has been fixed the 21st ;-), see:
>>>
>>> http://root.cern.ch/viewvc/trunk/graf2d/asimage/src/libAfterImage/export.c?view=log
>>>
>>> take the ROOT trunk and it should be ok.
>>>
>>> Cheers, Fons.
>>>
>>>
>>> On 24/07/2011 16:45, Chris Jones wrote:
>>>> Hi,
>>>> 
>>>> A similar issue was reported against the MacPorts version of root. See
>>>> 
>>>> https://trac.macports.org/ticket/30321
>>>> 
>>>> I guess the issue here is ROOT needs some work to be compatible with the llvm compiler, which is now the default in OS X 10.7 (compared to gcc 4.2 in SL) ? A work around with the MacPorts version is to use the gcc44 (or gcc45) variants of the port, which then build using macports gcc compilers.
>>>> 
>>>> Chris
>>>> 
>>>> On 21 Jul 2011, at 7:34pm, Mario Kadastik wrote:
>>>> 
>>>>> Hi,
>>>>> 
>>>>> as the old installation of ROOT didn't work with Lion I checked out the latest version from SVN and tried to configure and compile however the result is:
>>>>> 
>>>>> *** Building libAfterImage ...
>>>>> clang -m64 -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall  -mmmx  -I/usr/X11/include     -I/usr/X11/include/freetype2 -I/usr/X11/include    -c export.c -o export.o
>>>>> export.c:500:22: error: incomplete definition of type 'struct png_struct_def'
>>>>>                        if( setjmp(png_ptr->jmpbuf) )
>>>>>                                   ~~~~~~~^
>>>>> /usr/X11/include/png.h:795:16: note: forward declaration of 'struct png_struct_def'
>>>>> typedef struct png_struct_def png_struct;
>>>>>               ^
>>>>> 1 error generated.
>>>>> make[1]: *** [export.o] Error 1
>>>>> make: *** [graf2d/asimage/src/libAfterImage/libAfterImage.a] Error 2
>>>>> 
>>>>> Ideas?
>>>>> 
>>>>> Mario Kadastik, PhD
>>>>> Researcher
>>>>> 
>>>>> ---
>>>>>  "Physics is like sex, sure it may have practical reasons, but that's not why we do it"
>>>>>     -- Richard P. Feynman
>>>>> 

>>>
>>> --
>>> 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://fons.rademakers.org Fax: +41 22 7669640
>>>
> 
> -- 
> 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://fons.rademakers.org           Fax:   +41 22 7669640
> 


  • application/pkcs7-signature attachment: smime.p7s
Received on Sun Jul 24 2011 - 20:51:43 CEST

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2011 - 17:50:01 CEST