library files


 
Thread Tools Search this Thread
Top Forums Programming library files
# 1  
Old 04-13-2004
Question library files

I've compiled quite a bit of code on AIX and I am familiar with linking in libraries (/usr/lib/*.a). I've recently been tasked with porting some of the code to Linux...I've noticed there are some *.so files as well as *.a files in /usr/lib. Are these *.so files different from the *.a files? How are they linked/used?

Thanks in advance!!
# 2  
Old 04-13-2004
Thanks for the document, Driver...I explains what the *.so files are & how to create them under AIX.

This is my scenario...I am porting Netview snmp polling daemons to Linux. The man pages for OVsnmpRead( ) (a Netview function) say that libovsnmp.a, libov.a, and libntl.a libraries must be linked to compile. But....these files don't exist in Netview for Linux...just libovsnmp.so, libov.so, and libntl.so instead. I was able to compile the application while linking in these libs the same way as I did in AIX:

"-L /usr/OV/lib -lov -lovsnmp -lOVs -lnvot -ltdl -lutil -lntl"


I found the ldd command and when I apply it to my application, I get:

libov.so => /usr/lib/libov.so (0x40033000)
libovsnmp.so => /usr/lib/libovsnmp.so (0x4003f000)
libnvot.so => /usr/lib/libnvot.so (0x4005d000)
libutil.so.1 => /lib/libutil.so.1 (0x400a3000)
libntl.so => /usr/lib/libntl.so (0x400a6000)
libc.so.6 => /lib/i686/libc.so.6 (0x400b2000)
libnsl.so.1 => /lib/libnsl.so.1 (0x401ed000)
libdl.so.2 => /lib/libdl.so.2 (0x40204000)
libovw.so => /usr/lib/libovw.so (0x40208000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x402d4000)
libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x403b2000)
libXp.so.6 => /usr/X11R6/lib/libXp.so.6 (0x403fe000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40406000)
libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x40415000)
libcollection.so => /usr/lib/libcollection.so (0x4042b000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x4044f000)
libems.so => /usr/lib/libems.so (0x40491000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x404df000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x404e8000)
libm.so.6 => /lib/i686/libm.so.6 (0x40500000)
libCMU.so => /usr/lib/libCMU.so (0x40523000)
libmib.so => /usr/lib/libmib.so (0x40557000)

Does this mean that the libs are linked?

Thanks!
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Linux

./configure problem for libsf library due to apparently missing libdb library.

Hello, ./configure script fails to configure libsf. Please check the following last few lines of configure script error. checking for db1/db.h... no checking for db.h... yes checking for dbopen in -ldb1... no configure: error: No libdb? No libsf. But find command shows the following; ... (4 Replies)
Discussion started by: vectrum
4 Replies

2. Shell Programming and Scripting

Help with cp command to copy library files

Hi, I have to copy *.so shared objects filtering out the files having *.debug extension and if symbolic link is present copy only the links excluding the source (i.e) if it is a symbolic link then it should not de-reference the source file. For this I used the "-P" option, but I am not sure,... (4 Replies)
Discussion started by: royalibrahim
4 Replies

3. UNIX for Dummies Questions & Answers

Problem with shared dynamic library files

I am having a major problem. Most of the commands that i am running on my centos 5 system is giving the error of type: <dynamic shared library file>:open failed: No such file or directory For example: libgcc_s.so.1: open failed: No such file or directory How can i solve this? (6 Replies)
Discussion started by: proactiveaditya
6 Replies

4. Solaris

PAM login library files corrupted, have ILOM, can I get root?

I was installing sfw sudo and its dependencies (libiconv, libintl, libgcc)on Solaris 10, running on an x86 x4200 and I corrupted some PAM library files. It's a standard Solaris 10 base install, with some added software & libraries from a vendor. I am on console trying to get root access back,... (1 Reply)
Discussion started by: Mariognarly
1 Replies

5. UNIX for Dummies Questions & Answers

How to obtain list of object files in a shared (dynamic) library?

How can I simply obtain a list of the object files in a shared (dynamic) library. I am looking for the equivalent of "ar -t <lib>" for archived (static) libraries. Thanks in advance. :rolleyes: ---------- Post updated at 01:47 PM ---------- Previous update was at 12:16 PM ---------- The... (1 Reply)
Discussion started by: chatieremerrill
1 Replies

6. Shell Programming and Scripting

How to change a Makefile from building static library to shared library?

Hi: I have a library that it only offers Makefile for building static library. It built libxxx.a file. How do I in any way build a shared library? (either changin the Makefile or direct script or command to build shared library) Thanks. (1 Reply)
Discussion started by: cpthk
1 Replies

7. Programming

GNU C library for parsing of XML files

Hi all, Is there a known GNU C library available for parsing XML files for particular attributes ? (1 Reply)
Discussion started by: vsanjit
1 Replies

8. UNIX for Dummies Questions & Answers

Missing Library Files

Can anyone send me copies via email or allow me to download the following files for Unix 4.0? libmsfs.so libfilsys.so These files were lost due to corruption. All the other library files are fine. I have the files on tape, but without libmsfs.so I am unable to open vrestore. I am open... (5 Replies)
Discussion started by: jays337
5 Replies
Login or Register to Ask a Question