This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author okig6xx4wrs3o4goihunqto0tehcipy
Recipients jpc2350, ned.deily, okig6xx4wrs3o4goihunqto0tehcipy
Date 2018-05-11.03:27:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
I am trying to build Python 3.6.5 from source, with Tcl 8.6.8 and Tk 8.6.8, and I get the same issue (Building on Ubuntu 18.04, tried with GCC 7.3 and 8.1 with same results). 
Run 'readelf -d` on 'build/lib.linux-x86_64-3.6/_tkinter.cpython-36m-x86_64-linux-gnu_failed.so' and I get three NEEDED entries:


 0x0000000000000001 (NEEDED)             Shared library: [libpython3.6m.so.1.0]
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]


Tcl and Tk libraries are not listed as needed shared libraries, which explains why settings runpaths (which I tried by setting CFLAGS) does not seem to work.
I'm comparing this to the ELF entries in Ubuntu's Python 3.6.5 tkinter module '/usr/lib/python3.6/lib-dynload/_tkinter.cpython-36m-x86_64-linux-gnu.so', which does have NEEDED entries for tcl8.6.so and tk8.6.so.
History
Date User Action Args
2018-05-11 03:27:10okig6xx4wrs3o4goihunqto0tehcipysetrecipients: + okig6xx4wrs3o4goihunqto0tehcipy, ned.deily, jpc2350
2018-05-11 03:27:10okig6xx4wrs3o4goihunqto0tehcipysetmessageid: <[email protected]>
2018-05-11 03:27:10okig6xx4wrs3o4goihunqto0tehcipylinkissue31817 messages
2018-05-11 03:27:09okig6xx4wrs3o4goihunqto0tehcipycreate