I have both libpng versions installed on my system -(~)-> qpkg -nc -I -v media-libs/libpng media-libs/libpng-1.2.5-r4 media-libs/libpng-1.0.15 I emerged fbdesk and when I start it, it freezes and eats 99% of my cpu time. Following error messages are printed on the terminal. -(~)-> fbdesk Failed to read: fbdesk.doubleClickInterval Setting default value Failed to read: fbdesk.iconFile Setting default value Failed to read: fbdesk.font Setting default value Failed to read: fbdesk.textColor Setting default value Failed to read: fbdesk.snapX Setting default value Failed to read: fbdesk.snapY Setting default value Failed to read: fbdesk.textPlacement Setting default value libpng warning: Application was compiled with png.h from libpng-1.2.5 libpng warning: Application is running with png.c from libpng-1.0.15 libpng error: Incompatible libpng version in application and library Only a kill -9 manages to stop the fbdesk process after that Reproducible: Always Steps to Reproduce: 1. emerge both libpng versions ( they are SLOT'd) 2. emerge fbdesk 3. make an ~/.fluxbox/icons file according to /usr/share/doc/fbdesk-1.1.2/README.gz 4. start fbdesk Actual Results: fbdesk prints out the error messages and eats all the available cpu time Expected Results: it should have showed the icon for gcombust on my desktop :) my fbdesk icons file (~/.fluxbox/icons) -(~)-> cat .fluxbox/icons [Desktop Entry] Icon=/usr/kde/3.1/share/icons/crystalsvg/64x64/devices/cdwriter_unmount.png Name=GCombust Exec=gcombust Pos= 5 550 [end] -(~)-> emerge info Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-gentoo-r1 i686 Celeron (Coppermine) GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo http://mirrors.sunsite.dk/gentoo http://gentoo.oregonstate.edu" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/home/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/home" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 3dnow avi crypt encode gif jpeg libg++ mmx mpeg ncurses nls pdflib png quicktime truetype xml2 xv slang readline tetex svga java X sdl gpm tcpd pam libwww ssl python esd imlib oggvorbis qt opengl cdr ipv6 spell scanner alsa -apm arts -berkdb -cups doc fbcon gd -gdbm gtk2 gtk -gnome gtkhtml jikes kde lcms mbox -mikmod motif -oss perl pic samba sse tcltk tiff xml -xmms zlib -mysql" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer" CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
okay, seems you have an oddity here, could you please paste: ldd `which fbdesk` some of fbdesk's dependencies are running the old libpng, and fbdesk was compiled against the new library, this causes a library-load collision. the solution is to trace down the dependency of fbdesk that loads libpng 1.0, and rebuild that against libpng 1.2.x If you dont feel hackishly confident enough to do that on your own, I'll do my best to help you here :) How this bug appeared I dont know, I thought theese were fixed long since.
Since I have the exactly the same results: graviton fbdesk # ldd /usr/bin/fbdesk libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40023000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x4002c000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40043000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40125000) libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40136000) libpng10.so.0 => /usr/lib/libpng10.so.0 (0x40145000) libXft.so.2 => /usr/lib/libXft.so.2 (0x40170000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40184000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x401df000) libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x40208000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0x40211000) libz.so.1 => /usr/lib/libz.so.1 (0x4023d000) libstdc++.so.5 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libstdc++.so.5 (0x4024b000) libm.so.6 => /lib/libm.so.6 (0x40317000) libgcc_s.so.1 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgcc_s.so.1 (0x40339000) libc.so.6 => /lib/libc.so.6 (0x40341000) libdl.so.2 => /lib/libdl.so.2 (0x4046b000) libexpat.so.0 => /usr/lib/libexpat.so.0 (0x4046e000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) Indeed it seems to use both versions.
Unmerging the older version and recompiling does the trick but this may brake stuff on some boxes. I'll just remerge those packages that got broken in mine but this is not a solution for many.
okay, I think I have tracked the bug down to libpng1.0 installing a libpng.pc file, overwriting the libpng 1.2 one . will check further before "fixing" this in the fast and furious way though
okay, I commited libpng-1.0.15-r1 that should fix this, its marked as testing right now, but on all the tests I made locally the problem is gone. please test
Sorry for taking this long with testing your fix. It accidently slipped off my mind. I emerged fbdesk multiple times, when I had emerged both libpng-1.0.15-r1 and libpng-1.2.5-r4 also multiple times in different order, and fbdesk runs now properly, so the different libpng versions coexist in harmony as far as I can tell.
Good. closed
This bug is resolved, seems to have been reopened in the bugzilla updates. Closing.