[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#499801: sprof fails to load shared object



Package: libc6-dev
Version: 2.7-13

When I invoke `sprof' it says that it can not
open the shared library I want to profile.

$gcc --shared -fPIC mylib.c -o libmy.so
$gcc myprog.c -L. -lmy -o myprog
$LD_LIBRARY_PATH=. LD_PROFILE=libmy.so LD_PROFILE_OUTPUT=. ./myprog
[program output skipped]
$ls
libmy.so  libmy.so.profile  mylib.c  myprog	myprog.c
$LD_LIBRARY_PATH=. sprof libmy.so libmy.so.profile
sprof: failed to load shared object `libmy.so'

I have libc6 2.7-13, gcc 4.3.2-1, and binutils 2.8.1~cvs20080103-7.

Regards,
                                   Dmitry



Reply to: