This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Installing python for gdb


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]