Though, after looking at this issue, you are right, a static linked library is the way to go.

Thank you for your help :-)


From: kris duff <>
To: Andy Walls <>; General mailing list for gumstix users. <>
Sent: Sunday, June 2, 2013 11:31:07 AM
Subject: Re: [Gumstix-users] how to load specific version of shared library ?

Hi Andy,

Thank you for your reply.

I do not agree with you for the different version of a shared library. If I write 2 software that need few same functions I will create a library with major version 1.

Then I write another software that pushes me to change the api of the first library, I will change the major version of the library to 2. So my first 2 software will load major version 1, and my last software would load the version 2.

I guess this is ok, and tell me if I am wrong, but I've seen this kind of behavior for software that need libc with minimum library requirement.

Is there something missing in my understanding of the library management in linux software ?

Thank you !

I appreciate your help


From: Andy Walls <>
To: kris duff <>; General mailing list for gumstix users. <>
Sent: Sunday, June 2, 2013 9:55:11 AM
Subject: Re: [Gumstix-users] how to load specific version of shared library ?

Using multiple versions of a shared library defeats the purpose of a "shared" library.

At that point you should just statically link in the needed library version, if statically linking a single library is possible.

If it must be shared, you probably can put all the versions of that library in different paths and change the RPATH variable in the executables.


Sent from my Android phone with K-9 Mail. Please excuse my brevity.

kris duff <> wrote:

I'm almost done with my software development with my gumstix and there is one thing that I can't understand with the shared library.  When I will have 2 or 3 major version of a custom library, how can I say to a program to load the version 1, not the latest ?

I have a shared library named, it's soname is

I create symbolic link to and

Now when I compile, in the linker I add -ltest 

Then, I want to add few new feature in my library, so I create the library, it's soname is with symbolic link to and

When the software will get executed, it will load the latest test shared library. How can I select the version to load ? ( how can I ensure it will always load the version 1 of the library ?)

Thank you for your help, I cannot find any information on this on the web.


Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
gumstix-users mailing list