04-15-2018
libhello.so has to be in the LD_LIBIRARY_PATH variable for ldd to find it. You should NOT put personal directories in the path.
This User Gave Thanks to jim mcnamara For This Post:
10 More Discussions You Might Find Interesting
1. Programming
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
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. UNIX for Dummies Questions & Answers
I have a doubt about the shared libraries. Where do you set the path for the shared libaries, for the dynamic loader to locate. Any suggestion would be of great help. thanks (3 Replies)
Discussion started by: ramkumar_gr
3 Replies
4. Linux
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
5. Programming
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
6. UNIX for Advanced & Expert Users
Hi,
I am trying to create a shared library from a .c file using
gcc -c -fpic -I/usr/local/include Chksum.C -o Chksum.o
gcc -shared -o libtclcksum.so Chksum.o
when i try to load this shared library libtclcksum.so in tclsh
% load libtclcksum.so
I get the following error:
couldn't load... (1 Reply)
Discussion started by: archana485
1 Replies
7. UNIX for Advanced & Expert Users
Hello,
I'm wondering what is the naming conventions for *.so shared libraries in linux. For example, a library in /lib, say libcrypt-2.7.so has a symbolic link called libcrypt.so.1 pointing to it, yet libncursesw.so.5.6 has a symbolic link called libncursesw.so.5 pointing to it. What is the... (2 Replies)
Discussion started by: neked
2 Replies
8. AIX
Hi,
I have a problem about loaded shared libraries. I'm issuing ‘procldd' for a process and AIX shows me the loaded shared libraries. I'm collecting these libraries and counting their size. They were 350MB. After this, I'm issuing ‘ps vx' and I'm seeing that the process takes 130MB from AIX's... (1 Reply)
Discussion started by: jhatzics
1 Replies
9. Red Hat
hi,
while running the below query it gives the shared libraries prmblem,
$ cd /oracle/app/product/fmw/asinst_1/bin/
$ ./opmnctl status
/oracle/app/product/fmw/Oracle_IDM1/opmn/bin/opmn: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: Permission... (0 Replies)
Discussion started by: rahulsword
0 Replies
10. Solaris
Does anyone know whether it is possible to make self contained shared libraries ? (.so files). If so, what is the way to do it ?
---------- Post updated at 08:03 AM ---------- Previous update was at 07:56 AM ----------
On Solaris that is. (6 Replies)
Discussion started by: lkb
6 Replies
LDD(1) BSD General Commands Manual LDD(1)
NAME
ldd -- list dynamic object dependencies
SYNOPSIS
ldd [-o] [-f format] program ...
DESCRIPTION
ldd displays all shared objects that are needed to run the given program. Contrary to nm(1), the list includes ``indirect'' dependencies
that are the result of needed shared objects which themselves depend on yet other shared objects. Zero, one or two -f options may be given.
The argument is a format string passed to rtld(1) and allows customization of ldd's output. The first format argument is used for library
objects and defaults to " -l%o.%m => %p
". The second format argument is used for non-library objects and defaults to " %o => %p
".
These arguments are interpreted as format strings a la printf(3) to customize the trace output and allow ldd to be operated as a filter more
conveniently. The following conversions can be used:
%a The main program's name (also known as ``__progname'').
%A The value of the environment variable LD_TRACE_LOADED_OBJECTS_PROGNAME in a.out and the program name from the argument vector from elf.
%o The library name.
%m The library's major version number.
%n The library's minor version number (a.out only, ignored in elf).
%p The full pathname as determined by rtld's library search rules.
%x The library's load address
Additionally,
and are recognized and have their usual meaning.
The -o option is an alias for -f %a:-l%o.%m => %p
, which makes ldd behave analogously to nm -o.
SEE ALSO
ld(1), ld.elf_so(1), nm(1), rtld(1)
HISTORY
A ldd utility first appeared in SunOS 4.0, it appeared in its current form in NetBSD 0.9A.
BUGS
The a.out ldd actually runs the program it has been requested to analyze which in specially constructed environments can have security impli-
cations.
BSD
September 7, 2009 BSD