1822143 Members
3515 Online
109640 Solutions
New Discussion

ldd -r Symbol not Found

 
SOLVED
Go to solution
cfeitosa
Frequent Advisor

ldd -r Symbol not Found

Hello guys.

I'm using HPUX 11.11 and I have a doubt:

# ls -l /usr/lib/pa20_64/libc.2
-r-xr-xr-x 1 bin bin 1869096 May 6 2005 /usr/lib/pa20_64/libc.2

# ldd /usr/lib/pa20_64/libc.2
libdl.1 => /usr/lib/pa20_64/libdl.1

# ldd -r /usr/lib/pa20_64/libc.2
libdl.1 => /usr/lib/pa20_64/libdl.1
symbol not found: main (/usr/lib/pa20_64/libc.2)

# ldd -r /usr/lib/pa20_64/libdl.1
symbol not found: memcpy (/usr/lib/pa20_64/libdl.1)
symbol not found: __errno (/usr/lib/pa20_64/libdl.1)
symbol not found: __thread_mutex_unlock (/usr/lib/pa20_64/libdl.1)
symbol not found: __ismt (/usr/lib/pa20_64/libdl.1)
symbol not found: __thread_atfork (/usr/lib/pa20_64/libdl.1)
symbol not found: __thread_mutex_lock (/usr/lib/pa20_64/libdl.1)
symbol not found: __thread_rec_mutex_init (/usr/lib/pa20_64/libdl.1)

Why this message appear: 'Symbol not found" when I try with -r flag???

Please could someone give me a help?

Thanks,
clefeitosa
1 REPLY 1
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: ldd -r Symbol not Found

You are running ldd on a library. Note that a library would never have a main() so what do you expect? Run ldd on the executable and you results will be much better.
If it ain't broke, I can fix that.