Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81285 - when trying to access libqt-mt.so.3 result is Error 40
Summary: when trying to access libqt-mt.so.3 result is Error 40
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-08 12:32 UTC by Maik Danstedt
Modified: 2005-02-09 08:35 UTC (History)
0 users

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


Attachments
output of ls -l /usr/qt/3/lib/ (ls_-l_usrqt3lib,1.49 KB, text/plain)
2005-02-09 08:18 UTC, Maik Danstedt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maik Danstedt 2005-02-08 12:32:25 UTC
When starting or recompiling applications like lyx I get the error:
<<<<<
error while loading shared libraries: libqt-mt.so.3: cannotopen shared object file: Error 40
>>>>>
 
recompiling qt did not work, tried revdep-rebuild and checked /etc/ld.so.conf now running out of ideas.
Comment 1 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-08 16:16:18 UTC
Error 40 means that are bad symlinks, or circular symlinks...

what's the output of
# ls -l /usr/qt/3/lib/
Comment 2 Maik Danstedt 2005-02-09 08:18:10 UTC
Created attachment 50835 [details]
output of ls -l /usr/qt/3/lib/

output of
ls -l /usr/qt/3/lib/
as requested
Comment 3 Maik Danstedt 2005-02-09 08:27:18 UTC
/usr/qt/3/lib/ looks fine so far as far as I can see (unless I'm blind) but I just noticed that there is libqt-mt.so.3 in /usr/lib pointing to /usr/qt/3/lib/:
aragorn root # ls -l /usr/lib/libqt*
lrwxr-xr-x  1 root root   10 Feb  8 23:28 /usr/lib/libqt-mt.so.3 -> libqt.so.2
lrwxr-xr-x  1 root root   22 May 13  2004 /usr/lib/libqt.so.2 -> /usr/qt/3/lib/libqt.so
-rw-r--r--  1 root root 3002 Oct 30 08:48 /usr/lib/libqthreads.a
-rwxr-xr-x  1 root root  754 Oct 30 08:48 /usr/lib/libqthreads.la
lrwxrwxrwx  1 root root   21 Oct 30 08:48 /usr/lib/libqthreads.so -> libqthreads.so.12.3.0
lrwxrwxrwx  1 root root   21 Oct 30 08:48 /usr/lib/libqthreads.so.12 -> libqthreads.so.12.3.0
-rwxr-xr-x  1 root root 4388 Oct 30 08:48 /usr/lib/libqthreads.so.12.3.0
Comment 4 Maik Danstedt 2005-02-09 08:35:03 UTC
Fixed!
The bad symlink was the libqt-mt.so.3 in /usr/lib even as it may look good.
Resolution was to delete /usr/lib/libqt-mt.so.3 and /usr/lib/libqt.so.2 and all is fine again! 

Thanks, I did not thought about the symlinks.