This is the mail archive of the gdb-patches@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: 7.2 branch, configure problem, --with-python


> >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.

-- 
Joel


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