/bin/sh ../../libtool --silent --mode=link i686-pc-linux-gnu-gcc -ansi -W -Wall - pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SO URCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -march=athlon-xp -mcpu=athlon-xp -O3 -pipe -o make_driver_db_cups -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.1/lib make_d river_db_cups.o ../libdriverparse.a ../../kdecore/libkdefakes.la -ldl -lz make_driver_db_cups.o(.text+0x37c): In function `parsePpdFile': : undefined reference to `gzgets' collect2: ld returned 1 exit status make[4]: *** [make_driver_db_cups] Error 1 make[4]: *** Waiting for unfinished jobs.... /bin/sh ../../libtool --silent --mode=link --tag=CXX i686-pc-linux-gnu-g++ -Wnon- virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-p rototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wc onversion -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -mcpu=athlon-xp -O3 -pipe -fno- exceptions -fno-check-new -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_ CAST -DQT_NO_COMPAT -o kdeprint_cups.la.closure kdeprint_cups_la_closure.lo -L/ usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.1/lib -module -avoid-version -no-undef ined cupsinfos.lo ipprequest.lo kmcupsfactory.lo kmcupsjobmanager.lo kmcupsmanager .lo kmcupsuimanager.lo kmpropbanners.lo kmwbanners.lo kmwipp.lo kmwippselect.lo kc upsprinterimpl.lo kmcupsconfigwidget.lo kmconfigcups.lo kmconfigcupsdir.lo kmwippp rinter.lo kmwfax.lo kmwquota.lo kmpropquota.lo kmwusers.lo kmpropusers.lo kpschedu lepage.lo image.lo imagepreview.lo imageposition.lo kpimagepage.lo kptextpage.lo k phpgl2page.lo cupsaddsmb2.lo kmwother.lo ippreportdlg.lo kptagspage.lo ../../kdepr int/management/libkdeprint_management.la ../../kio/libkio.la -lcups -ldl ../../kd ecore/libkdefakes.la make[4]: *** Waiting for unfinished jobs.... make[4]: *** Waiting for unfinished jobs.... make[4]: *** Waiting for unfinished jobs.... make[4]: Leaving directory `/home/tmp/portage/kdelibs-3.1_rc5/work/kdelibs-3.1rc5/ kdeprint/cups' -- USE flags used: qtmt, ipv6, ssl, alsa, cups Core system packages: glibc-2.3.1-r2, gcc-3.2.1, zlib-1.1.4, cups-1.1.17_pre20021025 System: x86, XP2000+ with CFLAGS configured thusly: "-march=athlon-xp -O3 -pipe" Looked like a harmless "forgot to link against libz" bug, but it actually _does_ attempt to link with libz. Any ideas?
rm /usr/X11R6/lib/libz.a should help, the same problem is described here: http://lists.kde.org/?l=kde-devel&m=103173685502695&w=2
Azarah, will you take a look at this? The fix in hannes' comment worked, perhaps this should be included in xfree?
azarah@nosferatu xfree $ grep libz\.a *.ebuild xfree-4.2.1-r1.ebuild: # Remove libz.a, as it causes problems (bug #4777) xfree-4.2.1-r1.ebuild: rm -f ${D}/usr/X11R6/lib/libz.a xfree-4.2.1-r2.ebuild: # Remove libz.a, as it causes problems (bug #4777) xfree-4.2.1-r2.ebuild: rm -f ${D}/usr/X11R6/lib/libz.a xfree-4.2.1.ebuild: # Remove libz.a, as it causes problems (bug #4777) xfree-4.2.1.ebuild: rm -f ${D}/usr/X11R6/lib/libz.a xfree-4.2.99.3-r1.ebuild: # Remove libz.a, as it causes problems (bug #4777) xfree-4.2.99.3-r1.ebuild: rm -f ${D}/usr/X11R6/lib/libz.a azarah@nosferatu xfree $ ---------------------------------- Already done from 4.2.1. I guess the user have an old xfree, or an old one laying around .... Also have a look in the ChangeLog: -------------------- Do not install libz.a, as it have missing functions .. thanks Dan ! (bug #4777). --------------------
Hm, this is really strange. I could reproduce this error with XFree86 4.2.99.3 (.2 actually) yesterday on a freshly built 1.4_rc2 system (two days old), and grep'ing for libz.a in /var/db/pkg/*/*/CONTENTS shows only zlib. That's *really* weird, because /usr/X11R6/lib/libz.a stopped kdelibs from compiling just a few hours ago, and I have no idea where it came from. I'll try snooping around a bit more.
I got the exact same problem with XFree 4.3.0. It worked after I gave "-cups" in my USE flag.
Haven't seen this problem in any ebuilds since..closing as fixed. If it is persistant with the new xfree ebuilds, please file a new report.