Summary: | media-libs/netpbm-10.46.00-r1 fails to correctly link against zlib with "undefined reference to `zlibVersion'" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Marcin Marszalek <azzie> |
Component: | [OLD] Unspecified | Assignee: | Gentoo Graphics Project <graphics+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Marcin Marszalek
2009-11-05 15:26:42 UTC
marcade ~ # emerge --info Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30.4 x86_64) ================================================================= System uname: Linux-2.6.30.4-x86_64-Intel-R-_Xeon-R-_CPU_E5430_@_2.66GHz-with-gentoo-1.12.13 Timestamp of tree: Thu, 05 Nov 2009 14:30:01 +0000 app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.5.4-r3, 2.6.2-r1 dev-util/cmake: 2.6.4 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" MAKEOPTS="-j10" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl alsa amd64 apache2 arts audiofile bash-completion bcmath berkdb blas bzip2 cairo cdr clamav cli cracklib crypt css cups curl cvs cxx dbus dga directfb djvu doc dri dts dv dvb dvd dvdr encode expat fam ffmpeg firefox flac fortran ftp gd gdbm geoip gif gimp ginac glut gmp gnuplot gnutls gphoto2 gpm gps graphviz gsl gstreamer gtk gzip hdf5 iconv imagemagick imap imlib ipv6 jpeg jpeg2k kde lame lapack latex lcms lm_sensors lzo mad matroska mhash mmap mmx mng modules mp3 mpeg mpi mplayer mudflap multilib ncurses nls nptl nptlonly ogg openal openexr opengl openmp pam pcntl pcre pdf perl php plotutils png pppd python qt3 qt3support qt4 raw readline recode reflection rss sdl session sharedmem simplexml slang smp sndfile snmp sockets sox spell spl sse sse2 ssl subversion svg sysfs syslog sysvipc tcpd theora threads tiff truetype unicode usb vorbis wxwindows x264 xml xorg xpm xsl xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY Attach build.log (probably config.log too). Created attachment 209768 [details]
build.log
I attached the build.log. There seems to be no config.log. At least the following returns nothing: find /var/tmp/portage/media-libs/netpbm-10.46.00-r1 -name config.log Did I miss something? The problem seems to be the following: 1) In the Makefile: ifeq ($(shell libpng-config --version),) PNGLIB_LIBOPTS = $(shell $(LIBOPT) $(LIBOPTR) $(PNGLIB) $(ZLIB)) else PNGLIB_LIBOPTS = $(shell libpng-config --ldflags) endif which means that ZLIB is only used when the flags cannot be obtained using "libpng-config --ldflags". 2) At the same time on my machine: marcade other # libpng-config --ldflags -L/usr/lib64 -lpng12 marcade other # ldd /usr/lib64/libpng12.so linux-vdso.so.1 => (0x00007fff1c1ff000) libm.so.6 => /lib/libm.so.6 (0x00007fe534169000) libc.so.6 => /lib/libc.so.6 (0x00007fe533e14000) /lib64/ld-linux-x86-64.so.2 (0x00007fe534658000) which means that libpng does not really need zlib by itself. 3) The linker error comes from pnmtopng.c itself: pnmtopng.c:(.text+0x4719): undefined reference to `zlibVersion' 4) So it really seems to be an upstream problem, do you confirm? fixed in cvs http://sources.gentoo.org/media-libs/netpbm/netpbm-10.46.00-r1.ebuild?r1=1.7&r2=1.8 http://sources.gentoo.org/media-libs/netpbm/netpbm-10.48.00.ebuild?r1=1.4&r2=1.5 http://sources.gentoo.org/media-libs/netpbm/files/netpbm-10.35.0-pnmtopng-zlib.patch?rev=1.1 http://sources.gentoo.org/media-libs/netpbm/files/netpbm-10.48.00-pnmtopng-zlib.patch?rev=1.1 |