LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-07-2017, 12:55 AM   #1
Toutatis
Member
 
Registered: Feb 2013
Posts: 412

Rep: Reputation: Disabled
Shared library .so-version bumps


They cause a lot of work, many programs need to be re-compiled.

Are they always necessary, or whims of the programmers ?
 
Old 12-07-2017, 01:05 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Here's one explainer that I saw recommended on StackOverflow:

Dissecting shared libraries

Short answer is that they're necessary if the newer version of the library is incompatible with the old one.

Note that the versioning also allows you to keep multiple versions of the same library, as is pretty common on Debian-based distros.

Last edited by dugan; 12-07-2017 at 01:09 AM.
 
Old 12-07-2017, 01:28 AM   #3
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
Quote:
Originally Posted by Toutatis View Post
They cause a lot of work, many programs need to be re-compiled.
If it's too much work, you should switch to the stable version of Slackware (14.2 at the moment). That shouldn't run into library updates like -current does (since -current is the development version of Slackware and updates like this are to be expected during development).
 
Old 12-07-2017, 01:32 AM   #4
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
you need only to recompile usage of shared libraries if the shared library has a new ABI that makes it incompatible.
if this is for security/stability reasons, you want to recompile apps using a lib anyway.

if its 'just for features' you could install them in parallel, like Qt4 and 5
works with Qt somehow, many libs make it harder to do this
 
Old 12-07-2017, 01:40 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
As you can see the general answer is: sometimes yes, sometimes no. It depends on the situation. Do you have a specific case to discuss?
 
Old 12-07-2017, 01:57 AM   #6
Toutatis
Member
 
Registered: Feb 2013
Posts: 412

Original Poster
Rep: Reputation: Disabled
I just remarked that some libraries are updated rather often without .so-version bumps.
For some others, like poppler, there is always a .so-version bump. I wondered if that is always necessary (did ABI changed so many times ?)
 
Old 12-07-2017, 02:12 AM   #7
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
Quote:
Originally Posted by Toutatis View Post
I just remarked that some libraries are updated rather often without .so-version bumps.
For some others, like poppler, there is always a .so-version bump. I wondered if that is always necessary (did ABI changed so many times ?)
This is solely based on what the developers of those libraries decide to do. Many times, many developers try to keep things the same so they don't break programs, other developers will make whatever changes they feel they need, even if it requires an ABI bump.
 
Old 12-07-2017, 11:15 AM   #8
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by pan64 View Post
As you can see the general answer is: sometimes yes, sometimes no. It depends on the situation. Do you have a specific case to discuss?
Gee, I wonder what that might be...
 
  


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
Error :"Cannot mix incompatible Qt library (version 0x50500) with this library (version 0x50501)" when trying to run Binary Blessy Programming 3 07-18-2017 09:35 AM
will my app work if the shared library version changed? KillerCode Programming 11 02-17-2011 06:54 AM
gcc link shared library against another shared library qcp Linux - Newbie 1 07-25-2008 11:15 AM
undefined symbol, compiler version? shared library troubles? thewtex Programming 6 02-25-2007 04:32 PM
Shared Library Version rahul_kulkarni Linux - Newbie 1 02-22-2005 05:40 AM

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

All times are GMT -5. The time now is 04:21 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