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

Bug#932834: FTBFS: relocation R_X86_64_32 against symbol `PyVersion_Type' can not be used when making a shared object; recompile with -fPIC



Source: python-apt
Version: 1.8.4
Severity: serious
Justification: FTBFS
User: devel@kali.org
Usertags: origin-kali

Trying to rebuild python-apt in unstable currently fails with:

x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -Wl,-z,now -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wno-write-strings -DDATE="Mar 11 2019" -DTIME="11:49:18" -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.7/python/acquire.o build/temp.linux-x86_64-3.7/python/acquire-item.o build/temp.linux-x86_64-3.7/python/apt_pkgmodule.o build/temp.linux-x86_64-3.7/python/cache.o build/temp.linux-x86_64-3.7/python/cachegroup.o build/temp.linux-x86_64-3.7/python/cdrom.o build/temp.linux-x86_64-3.7/python/configuration.o build/temp.linux-x86_64-3.7/python/depcache.o build/temp.linux-x86_64-3.7/python/generic.o build/temp.linux-x86_64-3.7/python/hashes.o build/temp.linux-x86_64-3.7/python/hashstring.o build/temp.linux-x86_64-3.7/python/hashstringlist.o build/temp.linux-x86_64-3.7/python/indexfile.o build/temp.linux-x86_64-3.7/python/lock.o build/temp.linux-x86_64-3.7/python/metaindex.o build/temp.linux-x86_64-3.7/python/orderlist.o build/temp.linux-x86_64-3.7/python/pkgmanager.o build/temp.linux-x86_64-3.7/python/pkgrecords.o build/temp.linux-x86_64-3.7/python/pkgsrcrecords.o build/temp.linux-x86_64-3.7/python/policy.o build/temp.linux-x86_64-3.7/python/progress.o build/temp.linux-x86_64-3.7/python/python-apt-helpers.o build/temp.linux-x86_64-3.7/python/sourcelist.o build/temp.linux-x86_64-3.7/python/string.o build/temp.linux-x86_64-3.7/python/tag.o -lapt-pkg -o build/lib.linux-x86_64-3.7/apt_pkg.cpython-37m-x86_64-linux-gnu.so
/usr/bin/ld: /tmp/ccZYGg3M.ltrans0.ltrans.o: relocation R_X86_64_32 against symbol `PyVersion_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /tmp/ccZYGg3M.ltrans1.ltrans.o: relocation R_X86_64_32 against symbol `PyPolicy_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /tmp/ccZYGg3M.ltrans2.ltrans.o: relocation R_X86_64_32 against symbol `PyAcquire_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-g++' failed with exit status 1
dh_auto_build: python3.7 setup.py build --force returned exit code 1
make[1]: *** [debian/rules:19: override_dh_auto_build] Error 255
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:16: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2019-07-23T16:52:03Z


-- System Information:
Debian Release: bullseye/sid
  APT prefers oldoldstable
  APT policy: (500, 'oldoldstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- no debconf information


Reply to: