Installing python for gdb

Daniel Jacobowitz dan@codesourcery.com
Fri Jan 29 20:26:00 GMT 2010


My trick with autoconf is to first figure out which check is supposed
to fail (not always easy....).  Here it is:

On Fri, Jan 29, 2010 at 12:15:21PM -0800, Michael Snyder wrote:
> /usr/local/lib/libpython2.6.a(dynload_shlib.o)(.text+0x19f):Python/dynload_shlib.c:141: undefined reference to `dlsym'
> /usr/local/lib/libpython2.6.a(dynload_shlib.o)(.text+0x1f6):Python/dynload_shlib.c:133: undefined reference to `dlerror'

Try either building python as a shared library or adding -ldl to
CFLAGS.  You've found a bug in the configure check - we should add
-ldl explicitly if linking to Python.

This fight's just impossible to win with static libraries.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb mailing list