I got dynamic linking error with skanlite-0.4-r1 Recently I've updated libjpeg which caused a lot of packages to miss libjpeg.so.62, that can be fixed by revdep-rebuild, etc. Re-emerging packages worked well for all but skanlite. >>> Emerging (5 of 6) kde-misc/skanlite-0.4-r1 [snip] -- Found Qt-Version 4.6.2 (using /usr/bin/qmake) -- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so;/usr/lib/libXpm.so -- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so;/usr/lib/libXpm.so - found -- Found X11: /usr/lib/libX11.so -- Looking for include files CMAKE_HAVE_PTHREAD_H -- Looking for include files CMAKE_HAVE_PTHREAD_H - found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Looking for _POSIX_TIMERS -- Looking for _POSIX_TIMERS - found -- Found Automoc4: /usr/bin/automoc4 -- Found Perl: /usr/bin/perl -- Phonon Version: 4.4.0 -- Found Phonon: /usr/lib/libphonon.so -- Found Phonon Includes: /usr/include/KDE;/usr/include -- Found Gettext: built in libc -- <<< Gentoo configuration >>> Build type: Gentoo Install path: /usr -- Configuring done -- Generating done (some lines stripped) As one can see it even doesn't check for libjpeg... And then [ 85%] Built target doc-handbook [100%] Building CXX object CMakeFiles/skanlite.dir/ImageViewer.o Linking CXX executable skanlite /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld: warning: libjpeg.so.62, needed by /usr/lib/libsane.so.1, not found (try using -rpath or -rpath-link) [100%] Built target skanlite >>> Source compiled. The ./skanlite didn't work, of course, since it couldn't find old libjpeg version. $ skanlite skanlite: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
not a bug, run something like revdep-rebuild --library libjpeg.so.62 revdep-rebuild
(In reply to comment #0) Actually, I found a solution for the problem. There are two ways: First one is to install jpeg-6b-r9, so libjpeg.so.62 will be there again. Then you can avoid rebuilding each package that uses jpeg, which can take quite a lot of time. But if you don't want to use old jpeg version you can look at the error message and notice that libjpeg.so.62 is needed by libsane.so.1 and not by skanlite directly. You can use equery b libsane.so.1, and that'll tell you that it's a part of sane-backends. So you just have to rebuild sane-backends to make it use new libjpeg. The best way would have been using revdep-rebuild but it is SOOO time-consuming that I had not done it at the time. But you better use revdep-rebuild as it helps to avoid such "bugs"! :)