Re: Can't compile on Lion

From: Chris Jones <jonesc_at_hep.phy.cam.ac.uk>
Date: Sun, 24 Jul 2011 15:45:02 +0100


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
>

Received on Sun Jul 24 2011 - 16:45:14 CEST

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