I need a non-stripped version of libpthread.so for debugging. How can I compile it from source code? Host is Linux 2.6.
I need a non-stripped version of libpthread.so for debugging. How can I compile it
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re on an RPM based system, use
rpm -qf .../libpthread.soto find out which package installed the file (if that doesn’t produce a result, the .so file is probably a link; then run the command on the file the link points to).If you have the package name, search for the “source package”. How this works depends on the distribution you use. For openSUSE, you must add the Source Repository using Yast. After that, you can install the source package which will give you some entries under
/usr/src/packages. To build the package, go to/usr/src/packages/SPECSand runrpmbuildwith thepthread.specfile as parameter.When the build suceeds, edit the
.specfile and change it so it doesn’t strip the symbols.Alternatively, look if there is a
*-debugpackage (replace “*” with the name of the package) and install that. It should contain the version of the library with the symbols.