Export.c error during libAfterImage making on mac

Dear All.
I have just downloaded the latest recoemmended version trough
svn co root.cern.ch/svn/root/tags/v5-28-00d root

I’m on a Mac and I’m configuring trough
./configure macosx --enable-roofit

then I make install …
And I get the error:

gcc -m32 -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall -mmmx --param inline-unit-growth=10000 --param large-function-growth=10000 -I/sw/include -I/sw/include -I/sw/include -I/sw/include/freetype2 -I/sw/include -I/usr/X11/include -c export.c -o export.o
export.c: In function ‘ASImage2png_int’:
export.c:499: error: dereferencing pointer to incomplete type
make[1]: *** [export.o] Error 1
make: *** [graf2d/asimage/src/libAfterImage/libAfterImage.a] Error 2

What am I missing?
Previous versions compiled and run without problems.

I do not see the problem on my mac:

gcc -m64 -O3 -DNO_DEBUG_OUTPUT -fPIC -Wall -mmmx -I/usr/X11/include/freetype2 -I/usr/X11/include -c export.c -o export.o
/bin/rm -f libAfterImage.a

I have OS X 10.6.7

Can you please try with the 32 bit architecture?
Since the problem I am seeing is on a macosx 10.5.8 and I’m using 32bit arch.


hmmm … I’ll check … I do not think I have one right here …

Dear all.
I am still having this problem,…
Can someone please look at that?
It prevents me to go to root versions>5.28 !!!
It has to do with some missing include or mismatch with libraries already installed on my mac.
how can I debug/proceed?
I cannot compile with asimage!

Can you try to take the lastest root, fix export.c and then we put the fix in the SVN trunk ?
As I said I do not have such machine available.

It seems that a simple
fink install libpng14
did the trick…
libpng15 was removed and was the cause of the problem…
now everything compiles.

good !! :slight_smile:

No, not good. There is no excuse for not fixing ROOT to work with libpng15. Patch attached.

BTW, can anybody explain to me why I can’t attach a file with the suffix .patch in this forum, but .diff works?
root-libpng15.diff (1.34 KB)


btw, these problems were already fixed in 5-30-01.

Cheers, Fons.

Cool! So why didn’t those changes make it into 5-30-02?

My mistake, because it is actually only in the trunk which has been ported to OSX Lion which ships with libpng15.

Cheers, Fons.