How to build .deb with debugging symbols, without stripping.

Need help with C, C++, perl, python, etc?

How to build .deb with debugging symbols, without stripping.

Postby draemon » 2006-11-28 23:34

I'm getting a SEGV inside libxmlrpc++ when I connect using SSL. I want to debug what the problem is, but to do that I need the lib compiled with debugging symbols.

Code: Select all
apt-get source libxmlrpc++-dev
apt-get build-dep lixmlrpc++-dev
debuild -us -uc


rebuilds the library fine, but still without debugging symbols. Also, it looks like the package uses cdbs which means that debian/rules is devoid of clues.

Can anyone help?
draemon
 
Posts: 2
Joined: 2006-11-28 23:23

Postby thamarok » 2006-11-29 12:59

I would help but I would like to know what is the help of having debugging symbols? Not that I want to be l33t, but I just don't know. Thanks.
thamarok
 

Postby draemon » 2006-11-29 13:37

I means that when it segfaults, I can get the line-number using gdb. Then I can look at the sourcecode to the library and figure out why it's segfaulting.

As it happens, I found the answer (and the bug).

adding "nostrip" to DEB_BUILD_OPTIONS works.

The bug was that libxmlrpc++ frees its SSL ptr without checking it was successfully allocated.

I'd still like to know where DEB_BUILD_OPTIONS is actually documented.
draemon
 
Posts: 2
Joined: 2006-11-28 23:23


Return to Programming

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable