Re: Can't compile on Lion

From: Fons Rademakers <Fons.Rademakers_at_cern.ch>
Date: Sun, 24 Jul 2011 18:32:37 +0200


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


Received on Sun Jul 24 2011 - 18:32:50 CEST

This archive was generated by hypermail 2.2.0 : Sun Jul 24 2011 - 23:50:01 CEST