Source: openturns Version: 0.13.2-4 Severity: serious User: debian-pyt...@lists.debian.org Usertags: python2.6 Tags: patch Justification: FTBFS
Hello, openturns fails to build from source. The relevant bits of the build log: […] | checking for python... /usr/bin/python | checking for python version... 2.6 | checking for python platform... linux2 | checking for python script directory... ${prefix}/lib/python2.6/dist-packages | checking for python extension module directory... ${exec_prefix}/lib/python2.6/dist-packages | checking whether Python has package PyQt4... no | checking whether Python has package rpy2... yes | checking for python2.6... (cached) /usr/bin/python | checking for a version of Python >= '2.1.0'... yes | checking for the distutils Python package... yes | checking for Python include path... -I/usr/include/python2.6 | checking for Python library path... -L/usr/lib/python2.6 -lpython2.6 | checking for Python site-packages path... /usr/lib/python2.6/dist-packages | checking python extra libraries... -lssl -lcrypto -lssl -lcrypto -L/usr/lib -lz -lpthread -ldl -lutil | checking python extra linking flags... -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions | checking consistency of all components of python development environment... no | configure: error: | Could not link test program to Python. Maybe the main Python library has been | installed in some non-standard library path. If so, pass it to configure, | via the LDFLAGS environment variable. | Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib" | ============================================================================ | ERROR! | You probably have to install the development version of the Python package | for your distribution. The exact name of this package varies among them. | ============================================================================LOCALMODLIBS, which is expanded here to "-lssl -lcrypto -lssl -lcrypto -L/usr/lib -lz", is not supposed to be used for linking Python extensions; see the attached patch.
-- Jakub Wilk
--- openturns-0.13.2.orig/python/configure +++ openturns-0.13.2/python/configure @@ -18120,7 +18120,7 @@ if test -z "$PYTHON_EXTRA_LIBS"; then PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \ conf = distutils.sysconfig.get_config_var; \ - print conf('LOCALMODLIBS'), conf('LIBS')"` + print conf('LIBS')"` fi { $as_echo "$as_me:$LINENO: result: $PYTHON_EXTRA_LIBS" >&5 $as_echo "$PYTHON_EXTRA_LIBS" >&6; } only in patch2: unchanged: --- openturns-0.13.2.orig/python/m4/ac_python_devel.m4 +++ openturns-0.13.2/python/m4/ac_python_devel.m4 @@ -196,7 +196,7 @@ if test -z "$PYTHON_EXTRA_LIBS"; then PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \ conf = distutils.sysconfig.get_config_var; \ - print conf('LOCALMODLIBS'), conf('LIBS')"` + print conf('LIBS')"` fi AC_MSG_RESULT([$PYTHON_EXTRA_LIBS]) AC_SUBST(PYTHON_EXTRA_LIBS)
signature.asc
Description: Digital signature