classification
Title: Issues linking with ncurses and tinfo (cannot resolve symbols)
Type: compile error Stage:
Components: Build Versions: Python 3.6, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: skrah, twouters, veremitz
Priority: normal Keywords: patch

Created on 2019-09-30 02:05 by veremitz, last changed 2019-10-02 23:57 by veremitz.

Files
File name Uploaded Description Edit
file_692128.txt veremitz, 2019-09-30 02:05 build.log -- Gentoo linux armv7a python 2.7.15
build-x86_64-uclibc.log veremitz, 2019-09-30 02:29 build.log -- Gentoo linux x86_64 python 2.7.15
fix-tinfo-probably-python-2_7.patch veremitz, 2019-10-02 23:56 possible fix for python-2.7
fix-tinfo-probably-python-3_6.patch veremitz, 2019-10-02 23:57 possible fix for python-3.6
Messages (4)
msg353523 - (view) Author: Michael Everitt (veremitz) Date: 2019-09-30 02:05
tinfo library detection as part of ncurses is inconsistent, and causes build failure when expected symbols aren't found at link-time.
This breaks compilation of the 'readline' module as the attached log shows.
It seems to work in some configurations and not others, different arches and libc's seem to be affected differently (suspect linker variations).
It would appear that uclibc-ng triggers this failure consistently, as I have verified on both x86_64 and armv7a Arches.

See https://bugs.gentoo.org/692128 for further details.
msg353525 - (view) Author: Michael Everitt (veremitz) Date: 2019-09-30 02:29
May have confused the '_readline' extension with the '_ncurses' extension .. apologies!

attaching build.log from x86_64.
msg353788 - (view) Author: Michael Everitt (veremitz) Date: 2019-10-02 23:56
Attached patch seems to fix build failure for python2.7 with uclibc-ng.
msg353789 - (view) Author: Michael Everitt (veremitz) Date: 2019-10-02 23:57
Attached patch seems to fix build with python3.6 withh uclibc-ng.

Tested on x86_64 and ARMv6zk.
History
Date User Action Args
2019-10-02 23:57:38veremitzsetfiles: + fix-tinfo-probably-python-3_6.patch

messages: + msg353789
2019-10-02 23:56:23veremitzsetfiles: + fix-tinfo-probably-python-2_7.patch
keywords: + patch
messages: + msg353788
2019-09-30 02:52:15ammar2setnosy: + twouters, skrah
2019-09-30 02:29:43veremitzsetfiles: + build-x86_64-uclibc.log

messages: + msg353525
2019-09-30 02:05:56veremitzcreate