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.

Title: Rebuilding from source on RH9 fails ( missing)
Type: Stage:
Components: Build Versions: Python 2.4
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, green-ghost, loewis, mheyman, sf-robot
Priority: normal Keywords:

Created on 2005-04-22 18:21 by mheyman, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (6)
msg25097 - (view) Author: Marty Heyman (mheyman) Date: 2005-04-22 18:21
On a Red Hat 9 system, I downloaded the python2.4-2.4.
1-1pydotorg.src.rpm and, following the web page ran "rpm --rebuild .
..". It went a long for a good long while with no apparent errors and 
then said:


RPM build errors:
   File not found by glob: /var/tmp/python2.4-2.4.

I looked in the directory and there is, in fact, no file(s) 

Marty Heyman
msg25098 - (view) Author: Marty Heyman (mheyman) Date: 2005-04-22 18:42
Logged In: YES 

---Snip from rebuild output follows
In file included from
/usr/include/tk.h:83:29: X11/Xlib.h: No such file or directory
In file included from
/usr/include/tk.h:581: parse error before "Bool"
/usr/include/tk.h:583: parse error before "event"
/usr/include/tk.h:584: parse error before "root"
/usr/include/tk.h:585: parse error before "subwindow"
/usr/include/tk.h:586: parse error before "time"
/usr/include/tk.h:586: `time' redeclared as different kind
of symbol
/usr/include/time.h:184: previous declaration of `time'
/usr/include/tk.h:591: parse error before "same_screen"
--- snip ends
many more "parse error lines occurred after this. I doubt
they're interesting .
A bit later, another group of failures begins
--Snip starts
In file included from /usr/include/tk.h:1361,
/usr/include/tkDecls.h:37: parse error before '*' token
/usr/include/tkDecls.h:39: parse error before "Tk_3DBorderGC"
/usr/include/tkDecls.h:45: parse error before "Drawable"
/usr/include/tkDecls.h:50: parse error before "Drawable"
/usr/include/tkDecls.h:58: parse error before "XEvent"
--Snip ends
   Again, there are many more similar messages following
those and then:
--Snip starts
/usr/include/tkDecls.h:843: `GC' declared as function
returning a function
... [parse errors]
/usr/include/tkDecls.h:906: `Font' declared as function
returning a function
--Snip ends
There are many such embedded in that group. Then the
messages stop followed by a line that says: "running
build_scripts" ... and things proceed as if all was OK for
hundreds more lines of output before the failure copied into
the original report.

I captured the complete log and can upload it if needed on
request. I'd need to trim it and it doesn't look all that
interesting otherwise but then, what do I know :-)
msg25099 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2005-05-02 21:16
Logged In: YES 

Ah, so it seems you are lacking the X11 header files. They
should have been installed as a dependency on the Tk
headers. So this is either a Redhat bug (for not including a
dependency of the -dev packages) or a local misconfiguration
of some kind (e.g. forcefully installing Tk headers without
all prerequisites present).
msg25100 - (view) Author: green-ghost (green-ghost) Date: 2005-07-30 15:35
Logged In: YES 

I had a similar problem compiling python from source on a
(nominally) redhat8 system.  For whatever reason, X11
headers were not installed (probably because it's a server I
only use from an ssh console). YMMV

apt-get install XFree86-devel
rpm -i XFree86-devel-<correct version for your dist>.rpm
msg25101 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-02-20 10:25
Logged In: YES 

This looks like it is not Python's fault.
msg25102 - (view) Author: SourceForge Robot (sf-robot) Date: 2006-03-07 03:25
Logged In: YES 

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 41889
2005-04-22 18:21:19mheymancreate