media-libs/gd-2.0.32 will compile just fine when I don't have any use flag set But, when using the "png" flag, the ebuild will fail... Reproducible: Always Steps to Reproduce: 1. emerged before: media-libs/libpng-1.2.7-r1 2. emerge media-libs/gd 3. Actual Results: ..... (cd .libs && rm -f libgd.2.dylib && ln -s libgd.2.0.0.dylib libgd.2.dylib) (cd .libs && rm -f libgd.dylib && ln -s libgd.2.0.0.dylib libgd.dylib) ar cru .libs/libgd.a gd.o gdfx.o gd_security.o gd_gd.o gd_gd2.o gd_io.o gd_io_dp.o gd_gif_in.o gd_gif_out.o gd_io_file.o gd_io_ss.o gd_jpeg.o gd_png.o gd_ss.o gd_topal.o gd_wbmp.o gdcache.o gdfontg.o gdfontl.o gdfontmb.o gdfonts.o gdfontt.o gdft.o gdhelpers.o gdkanji.o gdtables.o gdxpm.o wbmp.o ranlib .libs/libgd.a ranlib: file: .libs/libgd.a(gd_jpeg.o) has no symbols ranlib: file: .libs/libgd.a(gdcache.o) has no symbols creating libgd.la (cd .libs && rm -f libgd.la && ln -s ../libgd.la libgd.la) /bin/sh ./libtool --mode=link gcc -L/usr/lib -L/usr/X11R6/lib -o gdparttopng gdparttopng.o ./ libgd.la -lfontconfig -lpng12 -lz /usr/lib/libiconv.dylib /bin/sh ./libtool --mode=link gcc -L/usr/lib -L/usr/X11R6/lib -o annotate annotate.o ./libgd.la -lfontconfig -lpng12 -lz /usr/lib/libiconv.dylib /bin/sh ./libtool --mode=link gcc -L/usr/lib -L/usr/X11R6/lib -o gdtopng gdtopng.o ./libgd.la -lfontconfig -lpng12 -lz /usr/lib/libiconv.dylib gcc -o .libs/gdtopng gdtopng.o /usr/lib/libiconv.dylib -L/usr/lib -L/usr/X11R6/lib -L./.libs -lgd -lfontconfig -lpng12 -lz gcc -o .libs/gdparttopng gdparttopng.o /usr/lib/libiconv.dylib -L/usr/lib -L/usr/X11R6/lib -L./.libs -lgd -lfontconfig -lpng12 -lz gcc -o .libs/annotate annotate.o /usr/lib/libiconv.dylib -L/usr/lib -L/usr/X11R6/lib -L./.libs -lgd -lfontconfig -lpng12 -lz creating annotate /bin/sh ./libtool --mode=link gcc -L/usr/lib -L/usr/X11R6/lib -o gd2copypal gd2copypal.o ./ libgd.la -lfontconfig -lpng12 -lz /usr/lib/libiconv.dylib ld: Undefined symbols: _gdImagePng make[2]: *** [gdtopng] Error 1 make[2]: *** Waiting for unfinished jobs.... gcc -o .libs/gd2copypal gd2copypal.o /usr/lib/libiconv.dylib -L/usr/lib -L/usr/X11R6/lib -L./.libs -lgd -lfontconfig -lpng12 -lz ld: Undefined symbols: _gdImagePng make[2]: *** [gdparttopng] Error 1 creating gd2copypal make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 !!! ERROR: media-libs/gd-2.0.32 failed. !!! Function src_compile, Line 34, Exitcode 2 !!! (no error message) Expected Results: >>> media-libs/gd-2.0.32 merged. MacShabba:/Users/shabba root# emerge info !!! Relying on the shell to locate gcc, this may break !!! DISTCC, installing gcc-config and setting your current gcc !!! profile will fix this Portage 2.0.51-r15 (default-darwin/macos/10.3, gcc-3.3, libsystem-7.1-r0, 7.7.0 Power Macintosh) =============================================================== == System uname: 7.7.0 Power Macintosh powerpc macos-20041118 Python: [2.3 (#1, Sep 13 2003, 00:49:11)] distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled] dev-lang/python: [Not Present] sys-devel/autoconf: [Not Present] sys-devel/automake: [Not Present] sys-devel/binutils: [Not Present] sys-devel/libtool: [Not Present] virtual/os-headers: 7.1 ACCEPT_KEYWORDS="ppc-macos" AUTOCLEAN="yes" CFLAGS="" CHOST="powerpc-apple-darwin" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/ qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc ncurses nls png ppc-macos readline" Unset: ASFLAGS, CBUILD, CTARGET, LDFLAGS
Works for myself and gongloo: Here is my emerge info. Hope that helps you track down the bug with your system. Noticeably, you don't have autoconf, automake and libtool versions detected, and I don't know what FEATURES=autoconfig does. emerge info !!! Relying on the shell to locate gcc, this may break !!! DISTCC, installing gcc-config and setting your current gcc !!! profile will fix this Portage 2.0.51-r15 (default-darwin/macos/10.3, gcc-3.3, libsystem-7.1-r0, 7.7.0 Power Macintosh) ================================================================= System uname: 7.7.0 Power Macintosh powerpc macos-20040726 Python: dev-lang/python-2.3 [2.3 (#1, Sep 13 2003, 00:49:11)] distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3 sys-devel/autoconf: 2.57 sys-devel/automake: 1.6.3 sys-devel/binutils: [Not Present] sys-devel/libtool: 2.4.4 virtual/os-headers: 7.1 ACCEPT_KEYWORDS="ppc-macos ~ppc-macos" AUTOCLEAN="yes" CFLAGS="-fast -fPIC -mcpu=7450 -pipe" CHOST="powerpc-apple-darwin" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-fast -fPIC -mcpu=7450 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache collision-protect cvs distlocks keepwork" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc aalib afs aim altivec avi berkdb bzlib cdr cscope cups dvd flash ftp gif jpeg ldap ming mng motif mpeg mysql ncurses nls pam pdflib png ppc-macos python qt readline ruby samba spell ssl svg tidy tiff truetype usb video wmf wxwindows xml xml2 xv xvid zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
hi, according to kito not having them detected is normal: "<kito>it doesnt grok apples dev tools" I know it's far from ideal..but I don't want to overwrite apple stuff What is the big difference between using the png flag or not, The package will compile just fine without it, even with freetype and X. Perhaps worth investigating some more...
I've had 4 developers try to reproduce this bug, all to no avail. I'm fairly certain it's not a problem on our end. I would suggest that you try updating all of your packages on your machine, making sure gd-2.0.32 is not in /var/tmp/portage, and then re-emerge it. If you still get those errors, you'll need to set my CFLAGS and MAKEOPTS settings on your machine and try that. I'm closing this bug since it's holding up other packages, but please feel free to ask anyone on IRC for help tracking down the issue.