Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11858 - kdelibs-3.1_rc5 fails to link with libz
Summary: kdelibs-3.1_rc5 fails to link with libz
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 25745
  Show dependency tree
 
Reported: 2002-12-09 13:52 UTC by Joachim Blaabjerg (RETIRED)
Modified: 2003-08-01 23:39 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joachim Blaabjerg (RETIRED) gentoo-dev 2002-12-09 13:52:40 UTC
/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?
Comment 1 Hannes Mehnert (RETIRED) gentoo-dev 2002-12-15 18:38:27 UTC
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 
Comment 2 Joachim Blaabjerg (RETIRED) gentoo-dev 2003-01-06 06:45:11 UTC
Azarah, will you take a look at this? The fix in hannes' comment worked, perhaps this 
should be included in xfree? 
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-07 15:28:50 UTC
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).
--------------------
Comment 4 Joachim Blaabjerg (RETIRED) gentoo-dev 2003-01-13 06:31:29 UTC
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. 
Comment 5 Sachin Kamboj 2003-03-10 17:39:24 UTC
I got the exact same problem with XFree 4.3.0. It worked after I gave "-cups" in my USE flag.
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2003-06-23 19:47:37 UTC
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.