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

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, 02:05 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,702

Rep: Reputation: 2985Reputation: 2985Reputation: 2985Reputation: 2985Reputation: 2985Reputation: 2985Reputation: 2985Reputation: 2985Reputation: 2985Reputation: 2985Reputation: 2985
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 02:09 AM.
 
Old 12-07-2017, 02:28 AM   #3
bassmadrigal
Senior Member
 
Registered: Nov 2003
Location: Newport News, VA
Distribution: Slackware
Posts: 4,544

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
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, 02:32 AM   #4
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,434

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
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, 02:40 AM   #5
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,892

Rep: Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921
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, 02:57 AM   #6
Toutatis
Member
 
Registered: Feb 2013
Posts: 202

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, 03:12 AM   #7
bassmadrigal
Senior Member
 
Registered: Nov 2003
Location: Newport News, VA
Distribution: Slackware
Posts: 4,544

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
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, 12:15 PM   #8
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,702

Rep: Reputation: 2985Reputation: 2985Reputation: 2985Reputation: 2985Reputation: 2985Reputation: 2985Reputation: 2985Reputation: 2985Reputation: 2985Reputation: 2985Reputation: 2985
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


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

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

All times are GMT -5. The time now is 08:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration