sprof fails to dlopen library
John Levon
levon@movementarian.org
Wed Apr 10 14:06:00 GMT 2002
I have built a shared object with -pg -g and installed it (ldconfig etc.)
LD_PROFILE=libAiksaurus.so.0 ./myprog
This generates the /var/tmp/libAiksaurus.so.0.profile as expected, but
sprof cannot dlopen the library :
# ltrace sprof /usr/lib/libAiksaurus.so.0
/var/tmp/libAiksaurus.so.0.profile
__libc_start_main(0x08048dcc, 3, 0xbffff564, 0x08048a24, 0x0804b19c
<unfinished ...>
__register_frame_info(0x0804cca0, 0x0804ce34, 0xbffff508, 0x08048cfe, 0)
= 0x40030f00
setlocale(6, "") = "en_US"
textdomain("libc") = "libc"
argp_parse(0x0804cc84, 3, 0xbffff564, 0, 0xbffff4e8) = 0
getpagesize(0, 0, 0, 0, 0) = 4096
dlopen("/usr/lib/libAiksaurus.so.0", 1) = NULL
__dcgettext("libc", "failed to load shared object `%s"..., 5)
# ls -l /usr/lib/libAiksaurus.so.0
lrwxrwxrwx 1 root root 22 Apr 10 21:33 /usr/lib/libAiksaurus.so.0 -> libAiksaurus.so.0.0.15
(which exists).
# ldconfig -p | grep libAik
libAiksaurus.so.0 (libc6) => /usr/lib/libAiksaurus.so.0
libAiksaurus.so (libc6) => /usr/lib/libAiksaurus.so
Setting it as libAiksaurus.so.0.0[.15] didn't produce output at all.
Any ideas on what might be going wrong ?
glibc-2.2-12 on RH 7.0 x86
regards
john
--
"I never understood what's so hard about picking a unique
first and last name - and not going beyond the 6 character limit."
- Toon Moene
More information about the Libc-alpha
mailing list