Problems installing 2.2.1 and 2.2.2

RVD lornak at rogers.com
Wed Jan 1 00:05:15 CET 2003


Gents, 

I have a problem with installing both Python 2.2.2 (prefered) as well
as 2.2.1.

I have installed 1.6 successfully and have been using it for some time
now -- I've never needed anything newer until the new 

Mailman 2.1 got released today.

With Python 2.2.2, I'm getting a major break right off the bat:

(configure output removed for space reasons - if you want to see it,
I'll provide it)

[webmaster at apollo ~/Python-2.2.2]$ make
gcc -c -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include
-DHAVE_CONFIG_H  -o Modules/python.o Modules/python.c
In file included from /usr/include/sys/select.h:31,
                 from Include/pyport.h:119,
                 from Include/Python.h:62,
                 from Modules/python.c:3:
/usr/include/selectbits.h:30: warning: `__FD_ZERO' redefined
/usr/include/asm/posix_types.h:61: warning: this is the location of
the previous definition
/usr/include/selectbits.h:35: warning: `__FD_SET' redefined
/usr/include/asm/posix_types.h:41: warning: this is the location of
the previous definition
/usr/include/selectbits.h:40: warning: `__FD_CLR' redefined
/usr/include/asm/posix_types.h:46: warning: this is the location of
the previous definition
/usr/include/selectbits.h:49: warning: `__FD_ISSET' redefined
/usr/include/asm/posix_types.h:54: warning: this is the location of
the previous definition
In file included from Include/pyport.h:119,
                 from Include/Python.h:62,
                 from Modules/python.c:3:
/usr/include/sys/select.h:60: warning: `FD_SET' redefined
/usr/include/linux/time.h:30: warning: this is the location of the
previous definition
/usr/include/sys/select.h:61: warning: `FD_CLR' redefined
/usr/include/linux/time.h:31: warning: this is the location of the
previous definition
/usr/include/sys/select.h:62: warning: `FD_ISSET' redefined
/usr/include/linux/time.h:32: warning: this is the location of the
previous definition
/usr/include/sys/select.h:63: warning: `FD_ZERO' redefined
/usr/include/linux/time.h:33: warning: this is the location of the
previous definition
In file included from Include/pyport.h:119,
                 from Include/Python.h:62,
                 from Modules/python.c:3:
/usr/include/sys/select.h:45: syntax error before `fd_mask'
/usr/include/sys/select.h:45: warning: empty declaration
/usr/include/sys/select.h:48: conflicting types for `fd_set'
/usr/include/linux/types.h:9: previous declaration of `fd_set'
/usr/include/sys/select.h:73: conflicting types for `__select'
/usr/include/sys/time.h:55: previous declaration of `__select'
/usr/include/sys/select.h:76: conflicting types for `select'
/usr/include/sys/time.h:58: previous declaration of `select'
make: *** [Modules/python.o] Error 1
[webmaster at apollo ~/Python-2.2.2]$


Python 2.2.1 gets considerably further through the build.... up to the
point of building the extentions.

For each of the extentions, it disables them... making a less than
useful python executable.

Ie;

running build_ext
building 'struct' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I.
-I/home/webmaster/Python-2.2.1/./Include -I/usr/local/include
-IInclude/ 

-c
/home/webmaster/Python-2.2.1/Modules/structmodule.c -o
build/temp.linux-i686-2.2/structmodule.o
gcc -shared build/temp.linux-i686-2.2/structmodule.o -L/usr/local/lib
-o build/lib.linux-i686-2.2/struct.so
WARNING: removing "struct" since importing it failed
building 'regex' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I.
-I/home/webmaster/Python-2.2.1/./Include -I/usr/local/include
-IInclude/ 

-c
/home/webmaster/Python-2.2.1/Modules/regexmodule.c -o
build/temp.linux-i686-2.2/regexmodule.o
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I.
-I/home/webmaster/Python-2.2.1/./Include -I/usr/local/include
-IInclude/ 

-c
/home/webmaster/Python-2.2.1/Modules/regexpr.c -o
build/temp.linux-i686-2.2/regexpr.o
gcc -shared build/temp.linux-i686-2.2/regexmodule.o
build/temp.linux-i686-2.2/regexpr.o -L/usr/local/lib -o 

build/lib.linux-i686-2.2
/regex.so
WARNING: removing "regex" since importing it failed

etc....

Again, this does produce a python executable, but all the WARNING
messages have me worried (and the fact that make test fails as 

soon as it -unsuccessfully- tries to build the missing extentions)

[webmaster at apollo ~/Python-2.2.1]$ ./python
Python 2.2.1 (#5, Dec 31 2002, 17:41:15)
[GCC 2.7.2.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

[webmaster at apollo ~/Python-2.2.1]$ make test

...numerous rebuild attempts for the extentions...

not copying /home/webmaster/Python-2.2.1/Tools/scripts/pydoc
(up-to-date)
./python -E -c 'import sys ; from distutils.util import get_platform ;
print get_platform()+"-"+sys.version[0:3]' >platform
find ./Lib -name '*.py[co]' -print | xargs rm -f
./python -E -tt ./Lib/test/regrtest.py -l
Traceback (most recent call last):
  File "./Lib/test/regrtest.py", line 54, in ?
    import random
  File "/home/webmaster/Python-2.2.1/Lib/random.py", line 76, in ?
    from math import log as _log, exp as _exp, pi as _pi, e as _e
ImportError: No module named math
make: [test] Error 1 (ignored)
./python -E -tt ./Lib/test/regrtest.py -l
Traceback (most recent call last):
  File "./Lib/test/regrtest.py", line 54, in ?
    import random
  File "/home/webmaster/Python-2.2.1/Lib/random.py", line 76, in ?
    from math import log as _log, exp as _exp, pi as _pi, e as _e
ImportError: No module named math
make: *** [test] Error 1
[webmaster at apollo ~/Python-2.2.1]$




Other info you'll probably be asking for:

GCC version 2.7.2.1
Redhat Kernel 2.0.36  (ya, it's old, but I cant upgrade without 
    	breaking other stuff)








More information about the Python-list mailing list