Compile-time search path of "ld.so" the run-time dynamic linker, not the program you're trying to run. Do this at the command line:
Replace "/bin/true" with the full path of the program you intend to run. You will see the paths that the dynamic linker searches for the dependencies.
a program on linux uses three libs: libutil.a libtermcap.a libpthread.a.
If I want to transplant this program to Solaris, where can I get the three libs?
Thanks. (2 Replies)
Hi Friends !
Where can I get free ct-lib for Lynix ??
My problem is something like this--
Sybase server is running on a Solaris machine.
Now I trying to access the Sybase from a Lynix machine for which i need ct-lib. I tried by downloading some free ct-libs for Lynix on the net, but they... (2 Replies)
Hi, I am new to unix. But, I write programs in progress that run on an HP-UX.
We are running a program and it is looking for the file /lib/libz.so.1
Naturally, we do have ZLIB 1.2.3 installed, and I can only find files called
libz.sl.1
libz.a
libz.sl.1.2.3
None of these files are... (2 Replies)
A good day to you, dear experts,
I am a newbie, I noticed in binutils or gcc there are lib and lib32 and lib64, to take binutils as an example,
My system is sgi IRIX6.5, which is suggested to use "n32" flag during the compiling and linking, is that mean that I need to use lib32?
Q1. which one... (2 Replies)
Hi,
I am on Fedora9 and need to do some simple 2D graphics (for game development). I am looking for an ideal 2D library/package to be used with GCC.
I have come accross GRX, libmxi and some OpenGL (The 3D), but none of which seems to be ok.
I could not find any tutorial or support material... (1 Reply)
Hello,
I'm trying to use gd with c++ in linux. Previously, I had already succeed using the gd lib in windows through gdwin32. Now I would like to run the program in linux but i'm not sure how to do it. I'm currently try running it in cygwin, but I couldn't compiled it. Any suggestion? (3 Replies)
Hello,
I'm experimenting a problem on my rh server.
Red Hat Enterprise Linux AS release 3 (Taroon Update 8)
2.4.21-47.ELsmp #1 SMP i686 i686 i386 GNU/Linux
It started with a segmentation fault on
#id root
To resolve it, I've installed
coreutils-4.5.3-28.4.i386.rpm
But, I... (6 Replies)
Hai dear,
I am installing some application on linux RedHat 9
It gives me following discrepancies
lib.so.6 (GLIBC_2.3.4) needed
lib.so.6 (GLIBC_2.4) needed
libpthread.so.0(GLIBC_2.3.3) needed
rtld(GNU_HASH) needed
i tried to search a lot on internet to find relative rpm for these libs... (3 Replies)
Hi...please help with command to find the library version on AIX server
---------- Post updated at 12:50 PM ---------- Previous update was at 12:31 PM ----------
AIX version is 6.1.Please (4 Replies)
Hi,
I have root access and user name called prod. but it doesn't matter which user I log in as. But I can't CD to the directory. Can you advise.
dr-xr-xr-x 1 root root 1 Sep 12 15:40 lib
$id
uid=4902(prod) gid=50(develop)
$cd lib
-bash: cd: lib: Permission... (7 Replies)
Discussion started by: samnyc
7 Replies
LEARN ABOUT PLAN9
ldd
LDD(1) Linux Programmer's Manual LDD(1)NAME
ldd - print shared object dependencies
SYNOPSIS
ldd [option]... file...
DESCRIPTION
ldd prints the shared objects (shared libraries) required by each program or shared object specified on the command line. An example of
its use and output is the following:
$ ldd /bin/ls
linux-vdso.so.1 (0x00007ffcc3563000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f87e5459000)
libcap.so.2 => /lib64/libcap.so.2 (0x00007f87e5254000)
libc.so.6 => /lib64/libc.so.6 (0x00007f87e4e92000)
libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f87e4c22000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f87e4a1e000)
/lib64/ld-linux-x86-64.so.2 (0x00005574bf12e000)
libattr.so.1 => /lib64/libattr.so.1 (0x00007f87e4817000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f87e45fa000)
In the usual case, ldd invokes the standard dynamic linker (see ld.so(8)) with the LD_TRACE_LOADED_OBJECTS environment variable set to 1.
This causes the dynamic linker to inspect the program's dynamic dependencies, and find (according to the rules described in ld.so(8)) and
load the objects that satisfy those dependencies. For each dependency, ldd displays the location of the matching object and the (hexadeci-
mal) address at which it is loaded. (The linux-vdso and ld-linux shared dependencies are special; see vdso(7) and ld.so(8).)
Security
Be aware that in some circumstances (e.g., where the program specifies an ELF interpreter other than ld-linux.so), some versions of ldd may
attempt to obtain the dependency information by attempting to directly execute the program, which may lead to the execution of whatever
code is defined in the program's ELF interpreter, and perhaps to execution of the program itself. (In glibc versions before 2.27, the
upstream ldd implementation did this for example, although most distributions provided a modified version that did not.)
Thus, you should never employ ldd on an untrusted executable, since this may result in the execution of arbitrary code. A safer alterna-
tive when dealing with untrusted executables is:
$ objdump -p /path/to/program | grep NEEDED
Note, however, that this alternative shows only the direct dependencies of the executable, while ldd shows the entire dependency tree of
the executable.
OPTIONS --version
Print the version number of ldd.
-v, --verbose
Print all information, including, for example, symbol versioning information.
-u, --unused
Print unused direct dependencies. (Since glibc 2.3.4.)
-d, --data-relocs
Perform relocations and report any missing objects (ELF only).
-r, --function-relocs
Perform relocations for both data objects and functions, and report any missing objects or functions (ELF only).
--help Usage information.
BUGS
ldd does not work on a.out shared libraries.
ldd does not work with some extremely old a.out programs which were built before ldd support was added to the compiler releases. If you
use ldd on one of these programs, the program will attempt to run with argc = 0 and the results will be unpredictable.
SEE ALSO pldd(1), sprof(1), ld.so(8), ldconfig(8)COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
2017-09-15 LDD(1)