Installing Python > 2.1: make fails in posixmodule.c

Elmar Höfner elmar.hoefner at uibk.ac.at
Wed Nov 28 06:05:21 EST 2001


Hi all,

When I try to compile Python, version 2.1.1 and up, 'make' stops in 
posixmodule.c with following message:

gcc -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H   -c 
./Modules/posixmodule.c -o Modules/posixmodule.o
./Modules/posixmodule.c: In function `posix_nice':
./Modules/posixmodule.c:1145: warning: implicit declaration of function 
`getpriority'
./Modules/posixmodule.c:1145: `PRIO_PROCESS' undeclared (first use in this 
function)
./Modules/posixmodule.c:1145: (Each undeclared identifier is reported only 
once
./Modules/posixmodule.c:1145: for each function it appears in.)
make: *** [Modules/posixmodule.o] Fehler 1

I use gcc 2.95.3 on Linux glibc2, kernel 2.4.15-pre2 and I use configure 
with no special options, just --prefix=/usr

Rerunning make after 'make clean' didn't help.
I also couldn't find a bug report on sourceforge concerning this.

Has anybody any hint or tip on how to get around this?

Thanks,

Elmar

-- 
| Elmar W. Hoefner<elmar.hoefner at uibk.ac.at>            
| See http://home.pages.at/oeller/pubkey.txt 
| for my PGP public key.



More information about the Python-list mailing list