7.2 branch, configure problem, --with-python

Michael Snyder msnyder@vmware.com
Thu Jul 29 21:45:00 GMT 2010


Joel Brobecker wrote:
>>> The bottom line, IMO, is that you python install is simply broken.
>> It works fine with gdb-7.1 (dynamically linked)...
> 
> If it works with 7.1, I think it was by accident (IMO).
> 
>> Um, no, it appears to be linked statically.
>> What about yours (the 2.7 version that you built)?
> 
> Exactly what I thought. Mine shows a dynamic dependency on libpython.so.
> 
> I really think that the problem is with your Python install. If you want
> to be able to link dynamically with your python install, you'll have to
> add a link to libpython.so in your lib/python-<version>/config directory.
> The problem is that your python binary was built without --enable-shared
> and thus Python itself believes that there is no libpython.so.  And
> because of that, it is telling the GDB configure to use the static
> archive.  The Ubuntu python install is equally broken (IMO), but it
> happens to work because there is a copy of the the libpython.so in
> the config/ directory as well.
> 

OK, I'm on the same page.  Thanks!



More information about the Gdb-patches mailing list