[Bug 1522606] [NEW] Unable to rebuild this package from Source - FTBFS
Pascal Mons
1522606 at bugs.launchpad.net
Thu Dec 3 22:17:28 UTC 2015
Public bug reported:
I am trying to compile on my Ubuntu Trusty 14.04 the latest source
cffi-1.3.1 in order to build the python-cffi package.
The source and debian folder are available at:
https://launchpad.net/ubuntu/+source/python-cffi
Here are the steps I took:
$ wget -P ~/Downloads/cffi https://launchpad.net/ubuntu/+archive/primary/+files/python-cffi_1.3.1.orig.tar.gz
$ wget -P ~/Downloads/cffi https://launchpad.net/ubuntu/+archive/primary/+files/python-cffi_1.3.1-1ubuntu1.debian.tar.xz
$ cd cffi
$ tar zxf python-cffi_1.3.1.orig.tar.gz
$ XZ_OPT=-9 tar Jcf python-cffi_1.3.1.orig.tar.xz cffi-1.3.1/
$ rm python-cffi_1.3.1.orig.tar.gz
$ tar xf python-cffi_1.3.1-1ubuntu1.debian.tar.xz -C cffi-1.3.1/
$ cd cffi-1.3.1/
$ dpkg-checkbuilddeps
$ dpkg-buildpackage -rfakeroot -us -uc -Zxz -z9
Then I stumble on this error:
running build_ext
failed to import Cython: /usr/lib/python2.7/dist-packages/Cython/Compiler/Scanning.so: undefined symbol: Py_InitModule4_64
error: Cython does not appear to be installed
[81526 refs]
E: pybuild pybuild:256: build: plugin distutils failed with: exit code=1: /usr/bin/python-dbg setup.py build
dh_auto_build: pybuild --build -i python{version}-dbg -p 2.7 --dir . returned exit code 13
make: *** [build] Error 13
dpkg-buildpackage: error: debian/rules build gave error exit status 2
The symbol Py_InitModule4_64 is not defined in the shared library
Scanning.so, as the following cmd. confirms:
$ nm -gl /usr/lib/python2.7/dist-packages/Cython/Compiler/Scanning.so | grep Py_InitModule4_64
nm: /usr/lib/python2.7/dist-packages/Cython/Compiler/Scanning.so: no symbols
$
However from the Python environment the import seems to succeed:
$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from Cython.Compiler import Scanning
>>>
As I was unable to recompile the latest source, I tried to recompile the "official" Trusty 14.04 source python-cffi_0.8.2.orig.tar.gz
And I stumbled on the very same error ...
What is wrong here ? Why can't we recompile the package from source ?
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: python-cffi (not installed)
ProcVersionSignature: Ubuntu 3.19.0-37.42~14.04.1-generic 3.19.8-ckt9
Uname: Linux 3.19.0-37-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.19
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Dec 3 16:47:27 2015
InstallationDate: Installed on 2014-12-19 (348 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
ProcEnviron:
LANGUAGE=en_US
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: python-cffi
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: python-cffi (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug trusty
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to python-cffi in Ubuntu.
https://bugs.launchpad.net/bugs/1522606
Title:
Unable to rebuild this package from Source - FTBFS
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-cffi/+bug/1522606/+subscriptions
More information about the Ubuntu-server-bugs
mailing list