Subject: graphics/php-gd on OS X
To: None <tech-pkg@NetBSD.org>
From: John Klos <john@ziaspace.com>
List: tech-pkg
Date: 05/09/2006 17:50:46
Latest OS X 10.4 on Intel, latest pkgsrc, php 4 already installed:


gcc -pipe -dynamic -flat_namespace -bundle -undefined suppress 
-DPHP_ATOM_INC 
-I/Volumes/sys/pkgsrc/graphics/php-gd/work/php-4.4.2/ext/gd/include 
-I/Volumes/sys/pkgsrc/graphics/php-gd/work/php-4.4.2/ext/gd/main 
-I/Volumes/sys/pkgsrc/graphics/php-gd/work/php-4.4.2/ext/gd 
-I/usr/local/include/php -I/usr/local/include/php/main 
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend 
-I/Volumes/sys/pkgsrc/graphics/php-gd/work/.buildlink/include 
-I/Volumes/sys/pkgsrc/graphics/php-gd/work/.buildlink/include/freetype2 
-no-cpp-precomp -I/usr/local/include/freetype2 -I/usr/local/include 
-I/usr/include -DHAVE_CONFIG_H  -O2 -I/usr/local/include/freetype2 
-I/usr/local/include -I/usr/include  -L/usr/local/lib -L/usr/lib -o 
./gd.so  gd.lo gdttf.lo libgd/gd.lo libgd/gd_gd.lo libgd/gd_gd2.lo 
libgd/gd_io.lo libgd/gd_io_dp.lo libgd/gd_io_file.lo libgd/gd_ss.lo 
libgd/gd_io_ss.lo libgd/gd_png.lo libgd/gd_jpeg.lo libgd/gdxpm.lo 
libgd/gdfontt.lo libgd/gdfonts.lo libgd/gdfontmb.lo libgd/gdfontl.lo 
libgd/gdfontg.lo libgd/gdtables.lo libgd/gdft.lo libgd/gdcache.lo 
libgd/gdkanji.lo libgd/wbmp.lo libgd/gd_wbmp.lo libgd/gdhelpers.lo 
libgd/gd_topal.lo libgd/gd_gif_in.lo libgd/xbm.lo libgd/gd_gif_out.lo 
-R/Volumes/sys/pkgsrc/graphics/php-gd/work/.buildlink/lib 
-L/Volumes/sys/pkgsrc/graphics/php-gd/work/.buildlink/lib -lfreetype 
-R/Volumes/sys/pkgsrc/graphics/php-gd/work/.buildlink/lib 
-L/Volumes/sys/pkgsrc/graphics/php-gd/work/.buildlink/lib -lpng 
-R/Volumes/sys/pkgsrc/graphics/php-gd/work/.buildlink/lib 
-L/Volumes/sys/pkgsrc/graphics/php-gd/work/.buildlink/lib -lz 
-R/Volumes/sys/pkgsrc/graphics/php-gd/work/.buildlink/lib 
-L/Volumes/sys/pkgsrc/graphics/php-gd/work/.buildlink/lib -ljpeg
/usr/bin/ld: gd.lo bad magic number (not a Mach-O file)
/usr/bin/ld: gdttf.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gd.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gd_gd.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gd_gd2.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gd_io.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gd_io_dp.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gd_io_file.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gd_ss.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gd_io_ss.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gd_png.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gd_jpeg.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gdxpm.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gdfontt.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gdfonts.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gdfontmb.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gdfontl.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gdfontg.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gdtables.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gdft.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gdcache.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gdkanji.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/wbmp.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gd_wbmp.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gdhelpers.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gd_topal.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gd_gif_in.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/xbm.lo bad magic number (not a Mach-O file)
/usr/bin/ld: libgd/gd_gif_out.lo bad magic number (not a Mach-O file)
collect2: ld returned 1 exit status
*** Error code 1

Stop.
bmake: stopped in 
/Volumes/sys/pkgsrc/graphics/php-gd/work/php-4.4.2/ext/gd
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/graphics/php-gd
===> /Volumes/sys/pkgsrc/graphics/php-gd/work/.build_done 
[php-gd-4.4.2nb2] ===>
===> /Volumes/sys/pkgsrc/graphics/php-gd/work/.build_done 
[php-gd-4.4.2nb2] ===> There was an error during the ``build'' phase.
===> /Volumes/sys/pkgsrc/graphics/php-gd/work/.build_done 
[php-gd-4.4.2nb2] ===> Please investigate the following for more 
information:
===> /Volumes/sys/pkgsrc/graphics/php-gd/work/.build_done 
[php-gd-4.4.2nb2] ===>      * log of the build
===> /Volumes/sys/pkgsrc/graphics/php-gd/work/.build_done 
[php-gd-4.4.2nb2] ===>      * 
/Volumes/sys/pkgsrc/graphics/php-gd/work/.work.log
===> /Volumes/sys/pkgsrc/graphics/php-gd/work/.build_done 
[php-gd-4.4.2nb2] ===>
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/graphics/php-gd
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/graphics/php-gd


Ideas?