For the last few weeks I was busy programming my DNSNINJA  tool. During my tests
I came accross an issue related with shared libraries under Linux. Therefore, I’ve decided to investigate a little bit further on this issue. A good read on the concepts behind shared libraries can be found unter , a page from the Linux Documentation Project. If you ever had questions in mind such the ones below, the provided link under  might help and bring it home to you:
- What is that lib name for (libpthread, libpurple)?
- What is that .so file for?
Three Types of Library Names
There are basically three types of names a library uses:
- Soname: This is a specially constructed name. The pattern is like “lib.so.. The version number is a number and does only change, if the library interface changes. A fully-qualified soname includes also the directory it’s in.
- Real name: This is the real name of your library. This is the file, which actually contains your library code. It is basically the soname plus additional version information. The pattern is like “..”. The last period and the release number are optional though.
- Linker Name:This is the name that the compiler uses when requesting a library. It is simply the soname without any version number details.
An example: If you’ve written a library named “foobar” and your current release is 1.1, your soname would be “libfoobar.so.1”, whereas your library’s real name would be “libfoobar.so.1.1”. The linker name is “libfoobar”.
Creating Shared Libraries
If you’re interested in building a shared library, the document under  also gives good instructions on doing that. Perhaps, I’ll build a shared library of my own, once in a while. We’ll see 🙂
Latest posts by André (see all)
- How To Configure IPSec VPN on pfSense For Use With iPhone, iPad, Android, Windows and Linux - September 14, 2014
- How to Enable Sonic Ether’s Unbelievable Shaders for Minecraft 1.7.10 - July 30, 2014
- Book Review “Crypto” - July 11, 2014