pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/39377: python24 extensions fail to configure on Ubuntu Linux

>Number:         39377
>Category:       pkg
>Synopsis:       python24 extensions fail to configure on Ubuntu Linux
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 19 03:25:00 +0000 2008
>Originator:     David Sainty
Linux 2.6.24-19-generic #1 SMP Fri Jul 11 23:41:49 UTC 2008 i686 GNU/Linux

This is really a lang/python24 problem, but I see it from py-Orbit, as part of 
installing meta-pkgs/gnome.  net/py-ORBit fails to configure with:

checking for headers required to compile python extensions... found
checking for python libraries... not found
configure: error: could not find Python headers
*** Error code 1

From config.log:

configure:20120: gcc -pthread -o conftest -O2 -I/usr/pkgroot1/include 
-I/usr/pkgroot1/include/python2.4 -I/usr/include -I/usr/pkgroot1/include 
-I/usr/pkgroot1/include/python2.4 -I/usr/include 
-I/usr/pkgroot1/include/python2.4 -L/usr/pkgroot1/lib -Wl,-R/usr/pkgroot1/lib 
-L/usr/pkgroot1/lib/python2.4/config -Wl,-R/usr/pkgroot1/lib/python2.4/config 
-L/usr/lib -Wl,-R/usr/lib conftest.c  -L/usr/pkgroot1/lib -lm -lpthread -ldl 
-ldb4 -lutil -lpython2.4  -pthread -lpthread -lrt >&5
/usr/bin/ld: cannot find -ldb4
collect2: ld returned 1 exit status
configure:20126: $? = 1

Build net/py-ORBit (or probably any other Python strap-on) where the Python 
libraries link with that isn't natively available.
This patch is a workaround, but it isn't correct.  The correct fix needs to 
determine whether Python used at build time before doing 
something like this.

OR, maybe the -ldb4 shouldn't be here:

fgrep -- -ldb4 /usr/pkg/lib/python2.4/config/Makefile 
LIBS=           -lpthread -ldl -ldb4 -lutil

That seems to be what is causing the link time error in py-Orbit, but it isn't 
really necessary:

ldd /usr/pkg/lib/|fgrep db4 => /usr/pkgroot1/lib/ (0xb7d4c000)

--- pkgsrc/lang/python24/    2006-07-09 19:02:27.000000000 +1200
+++ pkgsrc/lang/python24/    2008-08-18 17:07:05.000000000 +1200
@@ -28,6 +28,7 @@


+.include "../../mk/"
 .include "../../mk/"
 .include "../../mk/"
 .include "../../devel/gettext-lib/"

Home | Main Index | Thread Index | Old Index