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]

Failed to compile GDB 7.2 with python support


Hi all,

I tried to compile GDB 7.2 with python support (2.6.6) under Linux and it fails during the configure phase.
Python was compile like with:

> ./configure --prefix=/tmp/python-2.6.6-install --enable-shared make 
> make install

And GDB with

> ./configure --with-python=/tmp/python-2.6.6-install 
> --prefix=/tmp/gdb-7.2-install make

It fails during the execution of gdb/configure with the following message:

-------------------------------------------------------------
[...]
checking whether to use python... /tmp/python-2.6.6-install/ checking for python2.6... no
configure: error: no usable python found at /tmp/python-2.6.6-install/
make[1]: *** [configure-gdb] Error 1
-------------------------------------------------------------

The gdb/config.log tells me that configure failed to compile a test program to set up python.
From what I understand, the faulty compilation command line is: 

--------------------------------------------------------------
[...]
configure:10682: gcc -o conftest -g -O2   -I/tmp/python-2.6.6-install/include -I/tmp/python-2.6.6-install/include    conftest.c -lncurses -lz -lm    -lpthread -ldl -lutil -lm -lpython2.6 >&5
/usr/bin/ld: cannot find -lpython2.6
[...]
--------------------------------------------------------------

Apparently the -L/tmp/Python-2.6.6-install/lib is missing.

What am I doing wrong?

Best regards,

Michel Metzger.


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