Sponsored Content
Top Forums UNIX for Advanced & Expert Users Naming conventions for shared libraries in Linux Post 302260379 by fpmurphy on Thursday 20th of November 2008 10:36:04 AM
Old 11-20-2008
Shared libraries have a special name called the "soname'' which consists of the prefix "lib'', the name of the library, ".so'', followed by a period and a major version number that is incremented whenever the library APIs change.

Shared libraries also has a "real name'', which is the name of the file containing the actual library code. The real name is the soname followed by a period and a minor number, optionally followed by another period and a release number. Generally a fully qualified soname is simply a symbolic link to the real name.

For more information, look at the Linux Standard Base specifications.
 

10 More Discussions You Might Find Interesting

1. Programming

Shared libraries

Hello everybody, I am having major problems at the moment with shared libraries and I have to little knowledge of them to solve them. So please, please help me :) Ok this is the problem: I have a library A, which uses B and C, and C uses again D. If I try to run A as plugin in apache,... (0 Replies)
Discussion started by: Micky
0 Replies

2. Programming

shared libraries

I am compiling code which produces .a and .la libraries. How can I produce .so libraries? I know that gcc -shared does but how? (2 Replies)
Discussion started by: thalex
2 Replies

3. Linux

Shared Libraries

How do i make a library shared say i have a library a.so which i have just compiled. I want to make it shared how do i make it Next Queation is what is the difference between a.so.0 a.so.1 a.so.2 & a.so :rolleyes: (1 Reply)
Discussion started by: wojtyla
1 Replies

4. Programming

how to view loaded shared libraries by running processes in linux

anybody knows how to view loaded shared libraries by running processes in linux enviornment? any command or tool ? thanks a lot (3 Replies)
Discussion started by: princelinux
3 Replies

5. UNIX Desktop Questions & Answers

Naming convention for Libraries..

Hi All, I need to know standard naming convention for Unix libraries (including all flavours of unix)..As I have gone through some sites and found out The UNIX convention for naming of libraries is lib<name>.so.<major>.<minor>.<revision> so is it statndard . also does it change... (0 Replies)
Discussion started by: rkshukla14
0 Replies

6. UNIX for Advanced & Expert Users

static and shared libraries

can someone explain whether my understanding is correct lets suppose we have a program that uses library x. if x is static then the code of x will be part of our program, so if we're going to have 5 executables of our program, then each executable will have x as part of it. Also, x does not... (2 Replies)
Discussion started by: JamesByars
2 Replies

7. Solaris

A query on Disk naming conventions in Solaris.

These are findings by me with my little experience with Solaris 10. Please correct me if wrong.. In x86 systems with ide hard disk: c= controller d=disk s=slice 1.Here controller c0 means the primary ide controller ide0. controller c1 means the secondary ide controller ide1. ... (5 Replies)
Discussion started by: saagar
5 Replies

8. Solaris

Iscsi shared disk - same naming across server

Hi all, Is there anyway i can control the naming of the disk device ? I have added an iscsi disk on server1 using iscsiadm , devfsadm and it is now showing as /dev/dsk/c2t0d0 in node1 However, i am worried that the same disk will appear as /dev/dsk/cXtXd0 in node2 This iscsi disk(lun)... (0 Replies)
Discussion started by: javanoob
0 Replies

9. Programming

C/C++ shared libraries on Linux.

This is the first time that I created a dynamic library in linux and although the program works, I do not get the correct information about the library when executing ldd. I explain the details: 1) Source code: bye_fn.c: #include <stdio.h> #include "hello.h" void bye (const char*... (9 Replies)
Discussion started by: jose_spain
9 Replies

10. Cybersecurity

Proper naming conventions

Hey guys, not sure should I post it here or in 'What is on Your Mind?' I'm discussing usage of DSL (domain specific language) in security tools with my colleagues. We haven't been able to reach an agreement over naming conventions. There are many tools using DSL: splunk, sumologic,... (2 Replies)
Discussion started by: Tobby P
2 Replies
deb-symbols(5)							  dpkg utilities						    deb-symbols(5)

NAME
deb-symbols - Debian's extended shared library information file SYNOPSIS
symbols DESCRIPTION
The format for an extended shared library dependency information entry in these files is: <library soname> <main dependency template> [ | <alternative dependency template> ] [ ... ] [ * <field-name>: <field value> ] [ ... ] <symbol> <minimal version>[ <id of dependency template> ] The library soname is exactly the value of the SONAME field as exported by objdump(1). A dependency template is a dependency where #MINVER# is dynamically replaced either by a version check like "(>= minimal version)" or by nothing (if an unversioned dependency is deemed suffi- cient). Each exported symbol (listed as name@version, with version being "Base" if the library is not versioned) is associated to a minimal version of its dependency template (the main dependency template is used if id of dependency template is not present). The first alternative depen- dency template is numbered 1, the second one 2, etc. Each entry for a library can also have some fields of meta-information. Those fields are stored on lines starting with an asterisk. Cur- rently, the only valid field is Build-Depends-Package, it indicates the name of the "-dev" package associated to the library and is used by dpkg-shlibdeps to make sure that the dependency generated is at least as strict as the corresponding build dependency. EXAMPLES
Simple symbols file libftp.so.3 libftp3 #MINVER# DefaultNetbuf@Base 3.1-1-6 FtpAccess@Base 3.1-1-6 [...] Advanced symbols file libGL.so.1 libgl1 | libgl1-mesa-glx #MINVER# * Build-Depends-Package: libgl1-mesa-dev publicGlSymbol@Base 6.3-1 [...] implementationSpecificSymbol@Base 6.5.2-7 1 [...] SEE ALSO
http://wiki.debian.org/Projects/ImprovedDpkgShlibdeps dpkg-shlibdeps(1), dpkg-gensymbols(1). Debian Project 2007-07-16 deb-symbols(5)
All times are GMT -4. The time now is 04:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy