sprof fails to dlopen library
Daniel Jacobowitz
drow@mvista.com
Wed Apr 10 19:56:00 GMT 2002
On Wed, Apr 10, 2002 at 09:59:42PM +0100, John Levon wrote:
>
> 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).
Hmm... if the dlopen() failed, could it be that libAiksaurus depends on
some other symbols being evailable? What was the printed error
message?
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
More information about the Libc-alpha
mailing list