This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sprof fails to dlopen library


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]