LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-22-2005, 06:42 PM   #1
rhb327
Member
 
Registered: May 2004
Distribution: Slackware Current
Posts: 161

Rep: Reputation: 30
shared libraries question


I have a driver/application for a samsung scx4100 printer that needs libqt-mt.3.0.4. I just upgraded to slack 10.2 which uses libqt-mt.3.3.4. The samsung driver/application is linked to 3.0.4 and installs in an odd directory as ldd shows:

root@bairco:/usr/lib# ldd /usr/local/bin/samsung/Configurator | grep libqt
libqt-mt.samsung-mfp.so.3.0.4 => /usr/lib/libqt-mt.samsung-mfp.so.3.0.4 (0xb761d000)
root@bairco:/usr/lib#

a kde application example is:

root@bairco:/usr/lib# ldd /opt/kde/bin/kmail | grep libqt
libqt-mt.so.3 => /usr/lib/./libqt-mt.so.3 (0xb5f1b000)
root@bairco:/usr/lib#

I can manually set the links where both KDE and the samsung software work in my rc.local:

# **** scx4100 setup begin *****
# This should not be needed...
rm /usr/lib/libqt-mt.samsung-mfp.so.3.0.4
ln -s /usr/local/bin/samsung/libqt-mt.so.3.0.4 /usr/lib/libqt-mt.samsung-mfp.so.3.0.4
rm /usr/lib/libqt-mt.so.3
ln -s /usr/lib/qt/lib/libqt-mt.so.3 /usr/lib/libqt-mt.so.3
# **** scx4100 setup end *****

and do so because ldconfig continually modifies this setup on reboots and package installs. So this is a poor solution. I guess I don't know how to force minor sonames differences to resolve to the correct library but I do know that the samsung software does not run with the newer version of libqt-mt (3.3.4) minor or major numbers aside! It seems that this would be a failry common situation; viz., having some software that needs a different version of the library but the major numbers of the libraries are the same!

Thanks!
 
Old 09-23-2005, 07:05 AM   #2
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
Code:
man ldconfig
Look at X option too.
Search init scripts in /etc/rc.d .
 
Old 09-23-2005, 11:49 AM   #3
rhb327
Member
 
Registered: May 2004
Distribution: Slackware Current
Posts: 161

Original Poster
Rep: Reputation: 30
Ok, I see that the -X option does not update links. Can you do this just for one library though? I mean I want to update the remaining links, don't I? I think I lack a bit of understanding of exactly how ldconfig works with ld.so other that it makes the cache file to help resolve the links faster at runtime I believe. I probably need to RTFM a bit here...any good shared library tutoirals about? I'm not on my system and can't view the rc.d directory but I can certainly find out where ldconfig is called and add the -X option.

Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 06:47 AM
Urgent !!! rpm: error while loading shared libraries: libelf.so.1: cannot open shared tinaa Linux - Software 5 12-02-2008 04:19 PM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 08:03 AM
mplayer: error while loading shared libraries: libdvdread.so.3: cannot open shared ob Bruce Hill Slackware 6 12-11-2003 09:34 AM
Shared libraries question...need help tarballed Linux - General 3 03-15-2003 02:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration