I'm trying to compile Python 3.5 on a CentOS 7.1, with TCL 8.6.4, but make always give me the following message: *** WARNING: renaming "_tkinter" since importing it failed: build/lib.linux-x86_64-3.5/_tkinter.cpython-35m-x86_64-linux-gnu.so: undefined symbol: Tcl_GetCharLength Following modules built successfully but were removed because they could not be imported: _tkinter The configure command was the following (both, Tcl and Tk are installed under /usr/local/lib/tcl8.6.4): CXX=g++ ./configure --prefix=/usr/local/python3 --enable-shared --enable-loadable-sqlite-extensions --enable-ipv6 --with-tcltk-includes="-I/usr/local/lib/tcl8.6.4/include" --with-tcltk-libs="-L/usr/local/lib/tcl8.6.4/lib" I could not found a solution for this issue, and I do not know if this is a bug.
No, I do not have any other Tcl version on my system, and my LD_LIBRARY_PATH alredy points to Tcl directory. The problem with tkinter persist even if I explicity export LD_LIBRARY_PATH before the compilation. Any other ideas? Thanks!
It looks like this is the same issue that has been discussed in later Issue31817. Since there has been more discussion there, let's close this as a duplicate of that one.