How to make a program static (for bug regression)?
michal at harddata.com
Thu Nov 11 22:27:20 UTC 2010
On Thu, Nov 11, 2010 at 11:42:12AM -0800, Chuck Forsberg WA7KGX N2469R wrote:
> I would like to compile pan(1) with completely static libraries
> so I can tell if the breakage I've reported is from some library
> that got hosed in an update vs. something in the kernel itself.
> Adding -static results in 52 undefined libraries.
Instead of doing all of that, which is bound to create for you a
long list of troubles, install pan-debuginfo
('debuginfo-install pan' should do it) and run pan under gdb. If
there will still some "debuginfo" stuff missing for the task then
gdb will show you command(s) needed to complete this.
If you are running a 64-bit system then check if
will not give you any clues for what you are observing.
describes a cheap workaround so before doing anything above you may
want to check if this does not change what you observe. If yes then
something has a memcpy() bug and this nicely narrows your search
More information about the test