Subject: png-1.2.19 build failure on Intel Mac OS X
To: pkgsrc-users <>
From: Mark E. Perkins <>
List: pkgsrc-users
Date: 08/30/2007 16:21:37
The build fails as shown below....  I suspect this is the known gcc4 bug for
inline assembler code for i386.  I can work around it by appropriate CPPFLAGS
changes in Makefile (which would also be needed in  Can anyone
else confirm this?


gcc -dynamiclib  -o .libs/libpng12.0.19.0.dylib  .libs/libpng12_la-png.o .libs/l
ibpng12_la-pngset.o .libs/libpng12_la-pngget.o .libs/libpng12_la-pngrutil.o .lib
s/libpng12_la-pngtrans.o .libs/libpng12_la-pngwutil.o .libs/libpng12_la-pngread.
o .libs/libpng12_la-pngrio.o .libs/libpng12_la-pngwio.o .libs/libpng12_la-pngwri
te.o .libs/libpng12_la-pngrtran.o .libs/libpng12_la-pngwtran.o .libs/libpng12_la
-pngmem.o .libs/libpng12_la-pngerror.o .libs/libpng12_la-pngpread.o .libs/libpng
12_la-pnggccrd.o  -L/usr/pkgsrc/graphics/png/work/.buildlink/lib -lz  -install_n
ame  /usr/pkg/lib/libpng12.0.dylib -Wl,-compatibility_version -Wl,20 -Wl,-curren
t_version -Wl,20.0
ld: Undefined symbols:
/usr/bin/libtool: internal link edit command failed
*** Error code 1

bmake: stopped in /usr/pkgsrc/graphics/png/work/libpng-1.2.19