Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290888 - app-text/poppler-utils-0.12.1 fails to build: undefined reference to `PNGWriter::PNGWriter()'
Summary: app-text/poppler-utils-0.12.1 fails to build: undefined reference to `PNGWrit...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Peter Alfredsen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-28 14:20 UTC by Yuriy V
Modified: 2009-12-09 11:59 UTC (History)
3 users (show)

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


Attachments
build log (app-text:poppler-utils-0.12.1:20091028-140424.log,38.43 KB, text/plain)
2009-10-28 14:27 UTC, Yuriy V
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuriy V 2009-10-28 14:20:01 UTC
app-text/poppler-utils-0.12.1 fails to build

Reproducible: Always




Portage 2.1.7.1 (default/linux/x86/10.0, gcc-4.4.2, glibc-2.10.1-r0, 2.6.31-zen4.new i686)
=================================================================                         
System uname: Linux-2.6.31-zen4.new-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5600+-with-gentoo-2.0.1
Timestamp of tree: Wed, 28 Oct 2009 11:30:01 +0000                                                       
ccache version 2.4 [disabled]                                                                            
app-shells/bash:     4.0_p35                                                                             
dev-java/java-config: 2.1.9-r1                                                                           
dev-lang/python:     2.6.3, 3.1.1-r1                                                                     
dev-util/ccache:     2.4-r8                                                                              
sys-apps/baselayout: 2.0.1                                                                               
sys-apps/openrc:     0.5.2-r1                                                                            
sys-apps/sandbox:    2.2                                                                                 
sys-devel/autoconf:  2.13, 2.63-r1                                                                       
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11                                                    
sys-devel/binutils:  2.20                                                                                
sys-devel/gcc-config: 1.4.1                                                                              
sys-devel/libtool:   2.2.6a                                                                              
virtual/os-headers:  2.6.30-r1                                                                           
ACCEPT_KEYWORDS="x86 ~x86"                                                                               
CBUILD="i686-pc-linux-gnu"                                                                               
CFLAGS="-O2 -march=i686 -pipe"                                                                           
CHOST="i686-pc-linux-gnu"                                                                                
CONFIG_PROTECT="/etc /usr/share/X11/xkb"                                                                 
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"                                                       
CXXFLAGS="-O2 -march=i686 -pipe"                                                                                             
DISTDIR="/usr/portage/distfiles"                                                                                             
FEATURES="assume-digests buildpkg distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                                                                                                  
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"                        
LANG="ru_RU.UTF-8"                                                                                                           
LC_ALL=""                                                                                                                    
LDFLAGS="-Wl,-O1"                                                                                                            
LINGUAS="ru"                                                                                                                 
MAKEOPTS="-j3"                                                                                                               
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/zen-sources /usr/local/portage /usr/local/portage/layman"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib accessibility acl acpi alsa apache2 arts bash-completion berkdb bluetooth bzip2 cdr cifs cleartype cli community consolekit cracklib crypt cups cvidix dbus djvu dri dvb dvd embedded encode esd exif fbcon ffmpeg flac fortran gdbm gif gimp glitz google-gadgets gpm groupwise hal iconv imagemagick isdnlog jpeg jpg kde kerberos lame lcms ldap libcaca mjpeg mmx mng modules mp3 msn mudflap mysql ncurses network nls nptl nptlonly nsplugin ogg opengl openmp pam pcre perl php plugins png pnm pppd python qt3 qt3support qt4 raw readline reflection ru-dv ru-i ru-k samba sdl semantic-desktop session sip skype sockets speex spell spl sql sqlite sse sse2 ssl svg symlink sysfs syslog tcpd threads tiff truetype unicode usb v4l v4l2 vcd vdpau vidix vim-syntax vorbis wacom wav webkit winbind x509 x86 xinerama xml xorg xscreensaver xv xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" APACHE2_MPMS="event" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Yuriy V 2009-10-28 14:27:39 UTC
Created attachment 208524 [details]
build log
Comment 2 Sebastian Luther (few) 2009-10-28 15:30:06 UTC
Does revdep-rebuild fix it? If not, try rebuilding media-libs/jpeg.
Comment 3 Yuriy V 2009-10-28 18:59:16 UTC
Unfortunately, revdep-rebuild did not solve the problem. 
Reinstall of media-libs/jpeg  and  media-libs/libpng did not help to me too.
Comment 4 Arsen Shnurkov 2009-11-03 05:32:34 UTC
I have the same bug
Comment 5 Arsen Shnurkov 2009-11-03 05:46:36 UTC
I was able to emerge this package with USE="-png"
Comment 6 Patrick Lauer gentoo-dev 2009-11-06 00:11:38 UTC
I cannot reproduce it. Are you mixing keywords or doing other naughty things?
Comment 7 Yuriy V 2009-11-10 02:01:19 UTC
Question withdrawn. All thanks.
I started to install the system anew, and the compilation of this package was a success.
Comment 8 Eduard Huguet 2009-12-09 09:04:12 UTC
Sorry to bring the topic back, but the very same behaviour is happening to me. I'm currently reinstalling my whole system, and poppler-utils fails to buiild due to undefined references to PNGWriter functions (as original topic's author posted).

None of the above suggested solutions (revdep-rebuild, re-emerging libpng and jpeg libraries, etc...) seems to work. The only way to continue is to compile it without PNG support, as suggested, but I assume this must be just a temporary solution.

Here is my emerge --info, just in case it's neeed:
Portage 2.1.7.11 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo x86_64)
=================================================================                                  
System uname: Linux-2.6.32-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5600+-with-gentoo-2.0.1
Timestamp of tree: Tue, 08 Dec 2009 10:15:01 +0000                                                       
app-shells/bash:     4.0_p35                                                                             
dev-java/java-config: 2.1.10                                                                             
dev-lang/python:     2.6.4, 3.1.1-r1                                                                     
sys-apps/baselayout: 2.0.1                                                                               
sys-apps/openrc:     0.5.3                                                                               
sys-apps/sandbox:    2.2                                                                                 
sys-devel/autoconf:  2.13, 2.64
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=athlon64 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.udc.es/gentoo/ "
LANG="es_ES.utf8"
LC_ALL="es_ES.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="es ca es_ES ca_ES"
MAKEOPTS="-j3"
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.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac aalib acl acpi aiglx alsa amd64 asf avahi berkdb bluetooth branding bzip2 cairo cdda cddb cdparanoia cdr cleartype cli consolekit cracklib crypt cups cxx dbus dirac djvu dri dts dv dvb dvd dvdr dvdread eds effects emboss encode evo exif faac faad fam fat fbcondecor ffmpeg fftw firefox flac flash foomaticdb fortran freetype gdbm gif gimp git glitz gpm gstreamer hal hddtemp htmlhandbook iconv ieee1394 imagemagick imlib ipv6 jfs jpeg jpeg2k kde kde4 kdehiddenvisibility kipi lame lcms libnotify lm_sensors lzo mad mdnsresponder-compat mikmod mjpeg mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap multilib musicbrainz mysql mythtv ncurses network nls nptl nptlonly nptonlynsplugin ntfs nuv nvidia ogg openexr opengl openmp pam pcre pdf plugin png ppds pppd pulseaudio python qt3support qt4 quicktime radio readline reflection samba schroedinger sdl session spell spl srt sse sse2 ssht ssl startup-notification subversion svg sysfs tcpd theora threads thumbnail thunar tiff truetype udev unicode usb v4l v4l2 vcd visualization vorbis wifi wmf x264 xcb xcomposite xfs xine xinerama xml xorg xscreensaver xulrunner xv xvid xvmc zip 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_basicauthn_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="evdev keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es ca es_ES ca_ES" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 9 Eduard Huguet 2009-12-09 11:59:33 UTC
UPDATE:

I finally solved the issue by recompiling dev-libs/poppler again. After digging a bit in the code I've seen that the missing PNGWriter class belongs indeed to dev-libs/poppler package, not media-libs/libpng, so I've tried to recompile this one and this has fixed the problem.

Looking at /var/log/emerge.log, it seems that dev-libs/poppler was compiled BEFORE media-libs/libpng, thus automatically disabling PNG support in it. However, when app-text/poppler-utils is later compiled libpng has been yet installed, and now this one looks for PNG support into poppler, which is not there thus causing the 'undefined reference' error.

Maybe media-libs/libpng should be listed as a dependency of poppler (and maybe the 'png' USE flag added to it), so all poppler-dependent packages coherently detects png support when available.