_tkinter fails when installing Python 2.4.4

J

jgelfand

I'm installing Python 2.4.4 on a CentOS release 4.6 (Final) [RedHat
Enterprise Linux 4.6] 64-bit machine. Running "./configure --prefix="/
usr/local/yosi/ciao-4.0/ots" --enable-shared" appears to be fine, but
I get the following error message when I run "make":

building '_tkinter' extension
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/
local/yosi/Python-2.5.2/./Include -I/usr/local/yosi/ciao-4.0/ots/
include -I. -IInclude -I./Include -I/usr/local/include -I/usr/local/
yosi/Python-2.5.2/Include -I/usr/local/yosi/Python-2.5.2 -c /usr/local/
yosi/Python-2.5.2/Modules/_tkinter.c -o build/temp.linux-x86_64-2.5/
usr/local/yosi/Python-2.5.2/Modules/_tkinter.o
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/
local/yosi/Python-2.5.2/./Include -I/usr/local/yosi/ciao-4.0/ots/
include -I. -IInclude -I./Include -I/usr/local/include -I/usr/local/
yosi/Python-2.5.2/Include -I/usr/local/yosi/Python-2.5.2 -c /usr/local/
yosi/Python-2.5.2/Modules/tkappinit.c -o build/temp.linux-x86_64-2.5/
usr/local/yosi/Python-2.5.2/Modules/tkappinit.o
gcc -pthread -shared build/temp.linux-x86_64-2.5/usr/local/yosi/
Python-2.5.2/Modules/_tkinter.o build/temp.linux-x86_64-2.5/usr/local/
yosi/Python-2.5.2/Modules/tkappinit.o -L/usr/X11R6/lib64 -L/usr/X11R6/
lib -L/usr/local/yosi/ciao-4.0/ots/lib -L/usr/local/lib -L. -ltk8.5 -
ltcl8.5 -lX11 -lpython2.5 -o build/lib.linux-x86_64-2.5/_tkinter.so
*** WARNING: renaming "_tkinter" since importing it failed: build/
lib.linux-x86_64-2.5/_tkinter.so: undefined symbol: XftGlyphExtents

Any suggestions / ideas as to what is going wrong? I don't get any
other warnings or errors on the other modules. Thanks -- Yosi
 
D

Diez B. Roggisch

jgelfand said:
I'm installing Python 2.4.4 on a CentOS release 4.6 (Final) [RedHat
Enterprise Linux 4.6] 64-bit machine. Running "./configure --prefix="/
usr/local/yosi/ciao-4.0/ots" --enable-shared" appears to be fine, but
I get the following error message when I run "make":

building '_tkinter' extension
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/
local/yosi/Python-2.5.2/./Include -I/usr/local/yosi/ciao-4.0/ots/
include -I. -IInclude -I./Include -I/usr/local/include -I/usr/local/
yosi/Python-2.5.2/Include -I/usr/local/yosi/Python-2.5.2 -c /usr/local/
yosi/Python-2.5.2/Modules/_tkinter.c -o build/temp.linux-x86_64-2.5/
usr/local/yosi/Python-2.5.2/Modules/_tkinter.o
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/
local/yosi/Python-2.5.2/./Include -I/usr/local/yosi/ciao-4.0/ots/
include -I. -IInclude -I./Include -I/usr/local/include -I/usr/local/
yosi/Python-2.5.2/Include -I/usr/local/yosi/Python-2.5.2 -c /usr/local/
yosi/Python-2.5.2/Modules/tkappinit.c -o build/temp.linux-x86_64-2.5/
usr/local/yosi/Python-2.5.2/Modules/tkappinit.o
gcc -pthread -shared build/temp.linux-x86_64-2.5/usr/local/yosi/
Python-2.5.2/Modules/_tkinter.o build/temp.linux-x86_64-2.5/usr/local/
yosi/Python-2.5.2/Modules/tkappinit.o -L/usr/X11R6/lib64 -L/usr/X11R6/
lib -L/usr/local/yosi/ciao-4.0/ots/lib -L/usr/local/lib -L. -ltk8.5 -
ltcl8.5 -lX11 -lpython2.5 -o build/lib.linux-x86_64-2.5/_tkinter.so
*** WARNING: renaming "_tkinter" since importing it failed: build/
lib.linux-x86_64-2.5/_tkinter.so: undefined symbol: XftGlyphExtents

Any suggestions / ideas as to what is going wrong? I don't get any
other warnings or errors on the other modules. Thanks -- Yosi

You are aware that the above shows python 2.5 as the version that is
being used for compilation?

Diez
 
J

jgelfand

jgelfand schrieb:


I'm installing Python 2.4.4 on a CentOS release 4.6 (Final) [RedHat
Enterprise Linux 4.6] 64-bit machine. Running "./configure --prefix="/
usr/local/yosi/ciao-4.0/ots" --enable-shared" appears to be fine, but
I get the following error message when I run "make":
building '_tkinter' extension
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/
local/yosi/Python-2.5.2/./Include -I/usr/local/yosi/ciao-4.0/ots/
include -I. -IInclude -I./Include -I/usr/local/include -I/usr/local/
yosi/Python-2.5.2/Include -I/usr/local/yosi/Python-2.5.2 -c /usr/local/
yosi/Python-2.5.2/Modules/_tkinter.c -o build/temp.linux-x86_64-2.5/
usr/local/yosi/Python-2.5.2/Modules/_tkinter.o
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/
local/yosi/Python-2.5.2/./Include -I/usr/local/yosi/ciao-4.0/ots/
include -I. -IInclude -I./Include -I/usr/local/include -I/usr/local/
yosi/Python-2.5.2/Include -I/usr/local/yosi/Python-2.5.2 -c /usr/local/
yosi/Python-2.5.2/Modules/tkappinit.c -o build/temp.linux-x86_64-2.5/
usr/local/yosi/Python-2.5.2/Modules/tkappinit.o
gcc -pthread -shared build/temp.linux-x86_64-2.5/usr/local/yosi/
Python-2.5.2/Modules/_tkinter.o build/temp.linux-x86_64-2.5/usr/local/
yosi/Python-2.5.2/Modules/tkappinit.o -L/usr/X11R6/lib64 -L/usr/X11R6/
lib -L/usr/local/yosi/ciao-4.0/ots/lib -L/usr/local/lib -L. -ltk8.5 -
ltcl8.5 -lX11 -lpython2.5 -o build/lib.linux-x86_64-2.5/_tkinter.so
*** WARNING: renaming "_tkinter" since importing it failed: build/
lib.linux-x86_64-2.5/_tkinter.so: undefined symbol: XftGlyphExtents
Any suggestions / ideas as to what is going wrong? I don't get any
other warnings or errors on the other modules. Thanks -- Yosi

You are aware that the above shows python 2.5 as the version that is
being used for compilation?

Diez

Sorry. I get the same error messages for Python 2.4.4, Python 2.4.5,
and Python 2.5. The software package I'm trying to build from source
requests that I install Python 2.4.4, so I'm interesting in solutions
for that particular distribution.

Thanks -- Yosi
 
D

Diez B. Roggisch

jgelfand said:
jgelfand schrieb:


I'm installing Python 2.4.4 on a CentOS release 4.6 (Final) [RedHat
Enterprise Linux 4.6] 64-bit machine. Running "./configure --prefix="/
usr/local/yosi/ciao-4.0/ots" --enable-shared" appears to be fine, but
I get the following error message when I run "make":
building '_tkinter' extension
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/
local/yosi/Python-2.5.2/./Include -I/usr/local/yosi/ciao-4.0/ots/
include -I. -IInclude -I./Include -I/usr/local/include -I/usr/local/
yosi/Python-2.5.2/Include -I/usr/local/yosi/Python-2.5.2 -c /usr/local/
yosi/Python-2.5.2/Modules/_tkinter.c -o build/temp.linux-x86_64-2.5/
usr/local/yosi/Python-2.5.2/Modules/_tkinter.o
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/
local/yosi/Python-2.5.2/./Include -I/usr/local/yosi/ciao-4.0/ots/
include -I. -IInclude -I./Include -I/usr/local/include -I/usr/local/
yosi/Python-2.5.2/Include -I/usr/local/yosi/Python-2.5.2 -c /usr/local/
yosi/Python-2.5.2/Modules/tkappinit.c -o build/temp.linux-x86_64-2.5/
usr/local/yosi/Python-2.5.2/Modules/tkappinit.o
gcc -pthread -shared build/temp.linux-x86_64-2.5/usr/local/yosi/
Python-2.5.2/Modules/_tkinter.o build/temp.linux-x86_64-2.5/usr/local/
yosi/Python-2.5.2/Modules/tkappinit.o -L/usr/X11R6/lib64 -L/usr/X11R6/
lib -L/usr/local/yosi/ciao-4.0/ots/lib -L/usr/local/lib -L. -ltk8.5 -
ltcl8.5 -lX11 -lpython2.5 -o build/lib.linux-x86_64-2.5/_tkinter.so
*** WARNING: renaming "_tkinter" since importing it failed: build/
lib.linux-x86_64-2.5/_tkinter.so: undefined symbol: XftGlyphExtents
Any suggestions / ideas as to what is going wrong? I don't get any
other warnings or errors on the other modules. Thanks -- Yosi

You are aware that the above shows python 2.5 as the version that is
being used for compilation?

Diez

Sorry. I get the same error messages for Python 2.4.4, Python 2.4.5,
and Python 2.5. The software package I'm trying to build from source
requests that I install Python 2.4.4, so I'm interesting in solutions
for that particular distribution.

I think the actual problem is that the linking doesn't find the
XftGlyphExtends. I can only guess, but it might be related to
64-bit-problems. Make sure you have the library that contains the
XftGlyphExtends is available in the lib64 dirs and so forth.

Diez
 
J

jgelfand

I think the actual problem is that the linking doesn't find the
XftGlyphExtends. I can only guess, but it might be related to
64-bit-problems. Make sure you have the library that contains the
XftGlyphExtends is available in the lib64 dirs and so forth.

I tried running configure with --x-include="/usr/X11R6/include" --x-
libraries="/usr/X11R6/lib" (in addition to the flags above) and got
the same error. I believe XftGlyphExtends is defined in "Xft.h" which
is located in the directory "/usr/X11R6/include/X11/Xft". Based on
the output below, python looks in "/usr/X11R6/include" but not in this
directory:

building '_tkinter' extension
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -fno-
strict-aliasing -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/local/
yosi/Python-2.4.4/./Include -I/usr/local/yosi/ciao-4.0/ots/include -I/
usr/local/include -I/usr/local/yosi/Python-2.4.4/Include -I/usr/local/
yosi/Python-2.4.4 -c /usr/local/yosi/Python-2.4.4/Modules/_tkinter.c -
o build/temp.linux-x86_64-2.4/_tkinter.o
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -fno-
strict-aliasing -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/local/
yosi/Python-2.4.4/./Include -I/usr/local/yosi/ciao-4.0/ots/include -I/
usr/local/include -I/usr/local/yosi/Python-2.4.4/Include -I/usr/local/
yosi/Python-2.4.4 -c /usr/local/yosi/Python-2.4.4/Modules/tkappinit.c -
o build/temp.linux-x86_64-2.4/tkappinit.o
gcc -pthread -shared build/temp.linux-x86_64-2.4/_tkinter.o build/
temp.linux-x86_64-2.4/tkappinit.o -L/usr/X11R6/lib64 -L/usr/X11R6/lib -
L/usr/local/yosi/ciao-4.0/ots/lib -L/usr/local/lib -ltk8.5 -ltcl8.5 -
lX11 -o build/lib.linux-x86_64-2.4/_tkinter.so

When I try setting CFLAGS="-I/usr/X11R6/include/X11/Xft" and re-
running configure, I get the same error message regardless if I tell
python to it to use the 32 bit of 64 bit X-Windows libraries. How
should I force python to look in this directory?

Thanks a lot -- Yosi
 
D

Diez B. Roggisch

jgelfand said:
I tried running configure with --x-include="/usr/X11R6/include" --x-
libraries="/usr/X11R6/lib" (in addition to the flags above) and got
the same error. I believe XftGlyphExtends is defined in "Xft.h" which
is located in the directory "/usr/X11R6/include/X11/Xft". Based on
the output below, python looks in "/usr/X11R6/include" but not in this
directory:

building '_tkinter' extension
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -fno-
strict-aliasing -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/local/
yosi/Python-2.4.4/./Include -I/usr/local/yosi/ciao-4.0/ots/include -I/
usr/local/include -I/usr/local/yosi/Python-2.4.4/Include -I/usr/local/
yosi/Python-2.4.4 -c /usr/local/yosi/Python-2.4.4/Modules/_tkinter.c -
o build/temp.linux-x86_64-2.4/_tkinter.o
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -fno-
strict-aliasing -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/local/
yosi/Python-2.4.4/./Include -I/usr/local/yosi/ciao-4.0/ots/include -I/
usr/local/include -I/usr/local/yosi/Python-2.4.4/Include -I/usr/local/
yosi/Python-2.4.4 -c /usr/local/yosi/Python-2.4.4/Modules/tkappinit.c -
o build/temp.linux-x86_64-2.4/tkappinit.o
gcc -pthread -shared build/temp.linux-x86_64-2.4/_tkinter.o build/
temp.linux-x86_64-2.4/tkappinit.o -L/usr/X11R6/lib64 -L/usr/X11R6/lib -
L/usr/local/yosi/ciao-4.0/ots/lib -L/usr/local/lib -ltk8.5 -ltcl8.5 -
lX11 -o build/lib.linux-x86_64-2.4/_tkinter.so

When I try setting CFLAGS="-I/usr/X11R6/include/X11/Xft" and re-
running configure, I get the same error message regardless if I tell
python to it to use the 32 bit of 64 bit X-Windows libraries. How
should I force python to look in this directory?

The above is a LINKER error, not a compiler-error. You need to find the
library which contains the missing symbol, and trace where it get's
picked up wrong. Not something (I at least) can do from here.

Diez
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top