Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 403031 - media-gfx/pornview-0.2.0_pre1-r2 failed: support/.libs/libsupport_utils.al(pixbuf_utils.lo): undefined reference to symbol 'png_set_text@@PNG15_0'
Summary: media-gfx/pornview-0.2.0_pre1-r2 failed: support/.libs/libsupport_utils.al(pi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Julian Ospald
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2012-02-10 21:58 UTC by Piotr Szymaniak
Modified: 2012-10-28 22:07 UTC (History)
4 users (show)

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


Attachments
Build.log (Build.log,74.94 KB, text/plain)
2012-02-10 21:58 UTC, Piotr Szymaniak
Details
Build.log (Build.log,95.97 KB, text/plain)
2012-02-12 11:52 UTC, Piotr Szymaniak
Details
Build log (media-gfx:pornview-0.2.0_pre1-r2:20120226-175703.log,91.95 KB, text/plain)
2012-02-26 18:13 UTC, Wonko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Szymaniak 2012-02-10 21:58:30 UTC
Missing libpng depend?


rekowered ~ # emerge -pqv pornview
[ebuild  N    ] media-gfx/pornview-0.2.0_pre1-r2  USE="nls -exif" 


rekowered ~ # emerge --info pornview
Portage 2.1.10.45 (default/linux/x86/10.0, gcc-4.6.2, glibc-2.14.1-r2, 3.2.5 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.2.5-i686-Intel-R-_Pentium-R-_4_CPU_2.60GHz-with-gentoo-2.1
Timestamp of tree: Fri, 10 Feb 2012 14:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--load-average 5 --jobs 3"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.ift.uni.wroc.pl/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync1.pl.gentoo.org/gentoo-portage"
USE="acl berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv ipv6 modules mudflap ncurses nls nptl nptlonly openmp pam pcre pppd readline session ssl sysfs tcpd unicode x86 xorg 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Piotr Szymaniak 2012-02-10 21:58:58 UTC
Created attachment 301503 [details]
Build.log

Build.log
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-11 17:29:41 UTC
Looks like you have a dead symlink in /usr/lib/libpng.so. Please check that.



/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld: support/.libs/libsupport_utils.al(pixbuf_utils.lo): undefined reference to symbol 'png_set_text@@PNG15_0'
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld: note: 'png_set_text@@PNG15_0' is defined in DSO /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../lib/libpng.so so try adding it to the linker command line
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../lib/libpng.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [pornview] Error 1
Comment 3 Piotr Szymaniak 2012-02-12 10:05:04 UTC
(In reply to comment #2)
> Looks like you have a dead symlink in /usr/lib/libpng.so. Please check that.

libpng stuff looks like this:

rekowered ~ # ls -al /usr/lib | grep libpng
lrwxrwxrwx  1 root root      18 Feb 12 12:56 libpng15.so -> libpng15.so.15.8.0
lrwxrwxrwx  1 root root      18 Feb 12 12:56 libpng15.so.15 -> libpng15.so.15.8.0
-rwxr-xr-x  1 root root  169684 Feb 10 11:06 libpng15.so.15.8.0
lrwxrwxrwx  1 root root      11 Feb 12 12:56 libpng.so -> libpng15.so
rekowered ~ # qlist libpng
/usr/bin/libpng15-config
/usr/bin/libpng-config
/usr/lib/libpng15.so.15.8.0
/usr/lib/libpng15.so.15
/usr/lib/libpng15.so
/usr/lib/pkgconfig/libpng15.pc
/usr/lib/pkgconfig/libpng.pc
/usr/lib/libpng.so
/usr/share/man/man3/libpng.3.bz2
/usr/share/man/man3/libpngpf.3.bz2
/usr/share/man/man5/png.5.bz2
/usr/share/doc/libpng-1.5.8/CHANGES.bz2
/usr/share/doc/libpng-1.5.8/README.bz2
/usr/share/doc/libpng-1.5.8/TODO.bz2
/usr/share/doc/libpng-1.5.8/ANNOUNCE.bz2
/usr/share/doc/libpng-1.5.8/libpng-manual.txt.bz2
/usr/include/libpng15/pnglibconf.h
/usr/include/libpng15/png.h
/usr/include/libpng15/pngconf.h
/usr/include/png.h
/usr/include/pngconf.h
/usr/include/pnglibconf.h
Comment 4 Pacho Ramos gentoo-dev 2012-02-12 10:57:32 UTC
I cannot reproduce this :(, have you tried to recompile it with gcc-4.5 or 4.4?
Comment 5 Piotr Szymaniak 2012-02-12 11:52:02 UTC
Created attachment 301641 [details]
Build.log

I can on different machine. And i think all my boxes are on 4.6 already.
Comment 6 Piotr Szymaniak 2012-02-12 11:52:40 UTC
maszyn ~ # emerge --info pornview
Portage 2.2.0_alpha85 (default/linux/x86/10.0/desktop, gcc-4.6.2, glibc-2.13-r4, 3.2.5 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.2.5-i686-Pentium-R-_Dual-Core_CPU_E5400_@_2.70GHz-with-gentoo-2.1
Timestamp of tree: Fri, 10 Feb 2012 22:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 3.1.7 [disabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.9.6-r3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo multimedia x11 sunrise mgorny roslin gamerlay-stable
Installed sets: @system
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
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"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.ift.uni.wroc.pl/"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pl en"
MAKEOPTS="-j3"
PKGDIR="/home/p/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/multimedia /var/lib/layman/x11 /var/lib/layman/sunrise /var/lib/layman/mgorny /home/lazy_bum/uberlay/roslin /home/lazy_bum/uberlay/gamerlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa bash-completion bzip2 cairo cdda cdr cli consolekit cracklib crypt cups custom-cflags custom-cxxflags cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gles gpm gtk iconv ipv6 jabber jpeg lcms libnotify mad mmx mmxext mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds pppd qt3support qt4 readline sdl session spell sse sse2 ssl ssse3 svg sysfs tcpd tiff truetype udev unicode usb vim-syntax vorbis x264 x86 xcb xml xorg xulrunner xv xvid 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog cpu cpufreq disk hddtemp network uptime users" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386" QEMU_USER_TARGETS="i386" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 Wonko 2012-02-26 18:13:06 UTC
I have the same problem, on ~amd64 with gcc 4.5.3.

libpng info:

wonko@weird ~ $ eix -I libpng
[I] media-libs/libpng
     Available versions:  
        (1.2)   1.2.47{tbz2}
        (0)     1.5.8{tbz2} 1.5.9{tbz2}
        {apng neon static-libs}
     Installed versions:  1.2.47(1.2){tbz2}(16:46:28 21.02.2012) 1.5.9{tbz2}(15:57:04 20.02.2012)(apng static-libs -neon)
     Homepage:            http://www.libpng.org/
     Description:         Portable Network Graphics library

wonko@weird ~ $ ls -l /usr/lib/*libpng*
lrwxrwxrwx 1 root root     10 20. Feb 15:57 /usr/lib/libpng.a -> libpng15.a
lrwxrwxrwx 1 root root     11 20. Feb 15:57 /usr/lib/libpng.so -> libpng15.so
-rwxr-xr-x 1 root root 166720 21. Feb 16:46 /usr/lib/libpng12.so.0
-rw-r--r-- 1 root root 289900 20. Feb 15:57 /usr/lib/libpng15.a
lrwxrwxrwx 1 root root     18 20. Feb 15:57 /usr/lib/libpng15.so -> libpng15.so.15.9.0
lrwxrwxrwx 1 root root     18 20. Feb 15:57 /usr/lib/libpng15.so.15 -> libpng15.so.15.9.0
-rwxr-xr-x 1 root root 191320 20. Feb 15:57 /usr/lib/libpng15.so.15.9.0

Here's my emerge --info. Please note: The CFLAGS are incorrect, I used an entry in /etc/portage/package.env that cleared CFLAGS and set MAKEOPTS=-j1. emerge --info does not reflect this.
It also shows the CFLAGS that the package was build with. This is correct, but long ago, I stumbled about this problem during an emerge -e @world with different and optimized CFLAGS.

wonko@weird ~ $ emerge --info media-gfx/pornview                                                            
Portage 2.2.0_alpha89 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.14.1-r2, 3.2.6-gentoo x86_64)
=================================================================                                            
                        System Settings                                                                      
=================================================================                                            
System uname: Linux-3.2.6-gentoo-x86_64-AMD_FX-tm-4100_Quad-Core_Processor-with-gentoo-2.1                   
Timestamp of tree: Sun, 26 Feb 2012 05:15:01 +0000                                                           
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                                    
ccache version 3.1.7 [disabled]                                                                              
app-shells/bash:          4.2_p20                                                                            
dev-java/java-config:     2.1.11-r3                                                                          
dev-lang/python:          2.6.7-r2, 2.7.2-r3, 3.2.2                                                          
dev-util/ccache:          3.1.7                                                                              
dev-util/cmake:           2.8.7-r3                                                                           
dev-util/pkgconfig:       0.26                                                                               
sys-apps/baselayout:      2.1                                                                                
sys-apps/openrc:          0.9.9.2                                                                            
sys-apps/sandbox:         2.5                                                                                
sys-devel/autoconf:       2.13, 2.68                                                                         
sys-devel/automake:       1.9.6-r3, 1.11.3                                                                   
sys-devel/binutils:       2.22-r1                                                                            
sys-devel/gcc:            4.4.6-r1, 4.5.3-r2                                                                 
sys-devel/gcc-config:     1.5-r2                                                                             
sys-devel/libtool:        2.4.2                                                                              
sys-devel/make:           3.82-r3                                                                            
sys-kernel/linux-headers: 3.2-r1 (virtual/os-headers)                                                        
sys-libs/glibc:           2.14.1-r2                                                                          
Repositories: gentoo kde-sunset zugaina sunrise vmware x11 nx kde enlightenment emacs dfreise proaudio science local
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -march=amdfam10 -O2          -floop-interchange -floop-strip-mine -floop-block          -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2 -m3dnow          -mcx16 -msahf -maes -mpclmul -mpopcnt -mabm -mlwp -mavx          --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=2048"
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 /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /usr/share/X11/xkb /usr/share/openvpn/easy-rsa"
CXXFLAGS="-pipe -march=amdfam10 -O2          -floop-interchange -floop-strip-mine -floop-block          -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2 -m3dnow          -mcx16 -msahf -maes -mpclmul -mpopcnt -mabm -mlwp -mavx          --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=2048"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps y --load-average=6.0"
FEATURES="assume-digests binpkg-logs buildpkg buildsyspkg collision-protect distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS=""
GENTOO_MIRRORS="rsync://mirror.netcologne.de/gentoo/ http://gentoo.mneisen.org/"
LANG="de_DE.utf8"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="--jobs --load 5"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/portage/tmpfs"
PORTDIR="/var/portage/tree"
PORTDIR_OVERLAY="/var/portage/layman/kde-sunset /var/portage/layman/zugaina /var/portage/layman/sunrise /var/portage/layman/vmware /var/portage/layman/x11 /var/portage/layman/nx /var/portage/layman/kde /var/portage/layman/enlightenment /var/portage/layman/emacs /var/portage/layman/dfreise /var/portage/layman/pro-audio /var/portage/layman/science /var/portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi aim alsa amd64 apache2 apm audiofile bash-completion bcmath berkdb bluetooth branding bzip2 cairo calendar cdda cdparanoia cdr cli consolekit cracklib crypt ctype cups cvs cxx dbus declarative dga directfb dri dts dvb dvd dvdr emacs emboss encode exif fam fbcon ffmpeg firefox flac foomaticdb fortran ftp gd gdbm gdu ggi gif gimp ginac git gnutls gphoto2 gpm gtk handbook hddtemp iconv ieee1394 imagemagick imlib ipv6 jabber jack java javascript jbig jpeg jpeg2k kde kipi latex lcms ldap libnotify lm_sensors lzma mad maildir matroska matrox mikmod mime mmx mng modplug modules motif mp3 mp4 mpeg mplayer mudflap multilib musepack musicbrainz nas ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp oss pam pango pch pcre pdf phonon php plasma plotutils png policykit ppds pppd qt3support qt4 quicktime radius rdesktop readline recode ruby samba scanner sdl semantic-desktop session slang slp smp sndfile sockets sox speex spell sse sse2 sse3 ssl startup-notification subversion svg sysfs tcpd theora threads tiff truetype udev unicode usb videos vim-syntax visualization vnc vorbis wma wmf wxwindows x264 xattr xcb xcomposite xine xinerama xml xorg xosd xpm xscreensaver xulrunner 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="cgi alias auth_basic authn_file authz_groupfile authz_host authz_owner authz_user dir mime userdir" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FRITZCAPI_CARDS="fcpci" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" LIRC_DEVICES="serial" MISDN_CARDS="avmfritz" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="canon_pp microtek plustek_pp" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

media-gfx/pornview-0.2.0_pre1-r2 was built with the following:
USE="(consolekit) exif (multilib) nls (policykit)"
CFLAGS="-march=k8-sse3 -mfpmath=sse -O2 -pipe"
CXXFLAGS="-march=k8-sse3 -mfpmath=sse -O2 -pipe"
Comment 8 Wonko 2012-02-26 18:13:53 UTC
Created attachment 303399 [details]
Build log

With empty CFLAGS, and MAKEOPTS=-j1.
Comment 9 Pacho Ramos gentoo-dev 2012-02-27 19:53:00 UTC
@base: How can we verify their libpng installation is clean and ok? Thanks
Comment 10 Pacho Ramos gentoo-dev 2012-04-16 10:56:20 UTC
Are you still suffering this issues?
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2012-04-16 13:01:58 UTC
The problem is the linking order:

i686-pc-linux-gnu-gcc -march=native -O2 -pipe -fomit-frame-pointer -Wall -Wl,-O1 -Wl,--as-needed -o pornview about.o browser.o cache.o comment.o comment_view.o dirview.o dock.o fileutil.o imageinfo.o imageview.o main.o navwindow.o plugin.o prefs.o thumb_loader.o thumbview.o videoplay_mplayer.o videoplay_xine.o viewtype.o -Wl,--export-dynamic -pthread -Wl,--export-dynamic  -lX11 -lm -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lpng -lz -lXinerama prefs_ui/.libs/libprefs_ui.al support/widgets/.libs/libsupport_widgets.al support/.libs/libsupport_utils.al support/libexif/.libs/libexif.al
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld: support/.libs/libsupport_utils.al(pixbuf_utils.lo): undefined reference to symbol 'png_write_row@@PNG15_0'

This part from above snip:

prefs_ui/.libs/libprefs_ui.al support/widgets/.libs/libsupport_widgets.al support/.libs/libsupport_utils.al support/libexif/.libs/libexif.al

Should be before the libraries (like -lpng)

So it's propably a simple fix to Makefile* to reorder the line, moving the ".al stuff" before "-l stuff"
Comment 12 Pacho Ramos gentoo-dev 2012-05-11 09:10:17 UTC
Have you tried debian patch
http://patch-tracker.debian.org/patch/series/view/pornview/0.2pre1-11.1/615765-gold-no-add-needed
?

Looks like this one is another victim of http://fedoraproject.org/wiki/UnderstandingDSOLinkChange (and looks like we should run tinderbox before handling bug 414865)
Comment 13 Pacho Ramos gentoo-dev 2012-06-05 08:22:29 UTC
(In reply to comment #12)
> Have you tried debian patch
> http://patch-tracker.debian.org/patch/series/view/pornview/0.2pre1-11.1/
> 615765-gold-no-add-needed
> ?
> 
> Looks like this one is another victim of
> http://fedoraproject.org/wiki/UnderstandingDSOLinkChange (and looks like we
> should run tinderbox before handling bug 414865)

Did you try it?
Comment 14 Julian Ospald 2012-06-12 10:28:52 UTC
(In reply to comment #12)
> Have you tried debian patch

That is already fixed in bug 369649
Comment 15 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-06-20 13:01:15 UTC
Guys, just hit this on the tinderbox.

Samuli is correct here, the .la entries should be _before_ the external libraries, it's a positioning issue.
Comment 16 Julian Ospald 2012-10-28 22:07:19 UTC
+  28 Oct 2012; Julian Ospald <hasufell@gentoo.org>
+  pornview-0.2.0_pre1-r2.ebuild, +files/pornview-0.2.0_pre1-autoconf.patch,
+  +files/pornview-0.2.0_pre1-underlinking.patch, metadata.xml:
+  adopt package, fix underlinking wrt #403031