Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 312451 - skanlite and libjpeg.so.62 issue
Summary: skanlite and libjpeg.so.62 issue
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Lowest normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard: usual head-bug, though it can be usef...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-31 17:58 UTC by Danila Bespalov
Modified: 2010-03-31 18:22 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Danila Bespalov 2010-03-31 17:58:12 UTC
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
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-03-31 18:03:06 UTC
not a bug, run something like

revdep-rebuild --library libjpeg.so.62
revdep-rebuild
Comment 2 Danila Bespalov 2010-03-31 18:22:33 UTC
(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"! :)