[CentOS] Does sprof work on CentOS5?

Thu Jul 10 02:29:54 UTC 2008
Filipe Brandenburger <filbranden at gmail.com>

On Wed, Jul 9, 2008 at 1:57 PM, Hywel Richards <hywelbr at googlemail.com> wrote:
>   LD_LIBRARY_PATH=. LD_PROFILE=libmy.so ./mymain
...
>   $ sprof libmy.so /var/tmp/libmy.so.profile
>   sprof: failed to load shared object `libmy.so'

Acutally I have no idea of what sprof is or does, but from the error
message above it seems sprof cannot find your library because it is
not in the default library search path. Try this:

$ LD_LIBRARY_PATH=.  sprof libmy.so /var/tmp/libmy.so.profile

Let us know how that goes.

HTH,
Filipe