473,385 Members | 1,523 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

_tkinter fails when installing Python 2.4.4

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
Mar 25 '08 #1
5 2188
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
Mar 25 '08 #2
On Mar 25, 5:52 pm, "Diez B. Roggisch" <de...@nospam.web.dewrote:
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
Mar 25 '08 #3
jgelfand wrote:
On Mar 25, 5:52 pm, "Diez B. Roggisch" <de...@nospam.web.dewrote:
>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
Mar 26 '08 #4
On Mar 26, 7:02 am, "Diez B. Roggisch" <de...@nospam.web.dewrote:
>
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
Mar 26 '08 #5
jgelfand schrieb:
On Mar 26, 7:02 am, "Diez B. Roggisch" <de...@nospam.web.dewrote:
>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?
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
Mar 26 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Berthold Höllmann | last post by:
Hello, I'm trying to compile Python 2.3 on Solaris 8, but can't get _tkinter to work. I got errors about the ancient tcl/tk installed under /usr/local and installed an new one into the path...
2
by: Sebastian Stelzer | last post by:
Hi, I'am a beginner in Python and I have got a problem with the TKInter module. When I want to start e.g. pysol, I get following output: Traceback (most recent call last): File...
2
by: gaool | last post by:
Hello, I try to launch a Python script on SunOS system but I have this error: """Traceback (most recent call last): File "ihm1_1.py", line 3, in ? from Tkinter import * File...
0
by: mg | last post by:
Hello, First, I installed Python on a traditionnal default linux-x86 platform (tk.h is located in /usr/include) and I did not meet any problem. I can write the following instruction without...
1
by: Sorin Schwimmer | last post by:
Hi All, After a disaster in which I lost my whole harddrive, I decided to install the newest everything that I use. I put the latest Gentoo Linux, with gcc 4.1.1, installed tcl/tk 8.4.14 and...
1
by: Sue Velutty | last post by:
Hi, I'm having this errror when I try to run "import _tkinter" in python Python 2.2.2 (#1, Apr 5 2007, 12:58:53) on linux2 Type "help", "copyright", "credits" or "license" for more...
9
by: wyleu | last post by:
I'm running on Mandriva 2007 (2.6.17-5mdv) and thus have python2.4.3 installed by default, I'm running code requiring yield(), so need python2.5 and have installed this sucessfully, and linked...
0
by: akineko | last post by:
Hello, I spent time today to investigate this. If you install Python with Tkinter from source, _tkinter is built into the Python executable and _tkinter.so is not generated *unless* "shared"...
3
by: Mario Ruggier | last post by:
Hi, i had the following problem when installing py3.0rc1 on a Mac OS X 10.5.5. On this system, the default locale values are: $ locale LANG= LC_COLLATE="C" LC_CTYPE="UTF-8" LC_MESSAGES="C"
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.