LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-03-2016, 09:56 AM   #1
jefeyay
LQ Newbie
 
Registered: Sep 2015
Posts: 20

Rep: Reputation: Disabled
Shared Library Errors With Some Applications


I have been getting various shared library errors with a number of applications after updating Slackware. The only way I have found to fix this is to rebuild these applications after updating. It happens consistently with Shotwell, Clementine, and Inkscape. Is this to be expected with some Slackbuild applications or is it likely I have done something wrong? Thank you.
 
Old 11-03-2016, 11:41 AM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
It is expected. When most applications are compiled, they dynamically link against their dependencies. This means those dependencies reside as a file on the computer, and when the program needs that functionality, it references the file. When those dependencies are upgraded, sometimes the applications that depend on them stop working until they're recompiled to link against the new version (usually due to the dependencies ABI versions changing). It's hard to know if something will need to be recompiled just because a dependency is updated without digging into the changelog of the dependency to see what's changed. Pat usually recompiles all required official packages when dependencies are upgraded in -current, but occasionally one will slip through and can cause problems until it is recompiled (one of the "joys" of running -current).

Generally, for those running -current, they just recompile programs as needed (when they break). There's probably a few that recompile all their 3rd-party packages when updates come out, but it's a hassle and it's probably easier to just recompile things as they break.

The other option is to statically compile the dependencies in, but that causes package size to grow exponentially (each program would need to have a copy of each dependency inside it). Not many packages in Slackware are compiled statically due to the size requirements.
 
2 members found this post helpful.
Old 11-03-2016, 01:16 PM   #3
jefeyay
LQ Newbie
 
Registered: Sep 2015
Posts: 20

Original Poster
Rep: Reputation: Disabled
Thank you for the great explanation.
 
  


Reply



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
ldd reports shared library missing, but library exists on disk athv_gr Linux - Newbie 7 05-13-2009 12:31 PM
gcc link shared library against another shared library qcp Linux - Newbie 1 07-25-2008 11:15 AM
LINUX - linking archive (static library) with shared (dynamic) library gurkama Programming 5 03-04-2007 11:11 PM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM

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

All times are GMT -5. The time now is 09:49 PM.

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