This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: sprof fails to dlopen library
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Wed, 10 Apr 2002 20:51:51 -0400
- Subject: Re: sprof fails to dlopen library
- References: <20020410205941.GC27749@compsoc.man.ac.uk>
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