Python 2.2.1 Build Trouble

Beej Jørgensen beej at piratehaven.org
Wed Jul 17 14:24:00 EDT 2002


In article <ah49bt$e0s at newton.cc.rl.ac.uk>, Peter Chiu <P.Chiu at rl.ac.uk> wrote:
>Modules/posixmodule.c:1310: `stat' undeclared (first use in this function)
>Modules/posixmodule.c:2227: warning: implicit declaration of function
>`plock'
>Modules/posixmodule.c:3380: `lstat' undeclared (first use in this function)
>Modules/posixmodule.c:4118: warning: implicit declaration of function
>`unsetenv'

Sounds like includes are missing.  The Right Thing would be to fix up
the configure scripts and sources so it works properly with your
platform.  Instead, do the easy thing:

1) Check the man page for stat (man stat) and see what include files
   it wants.
   
2) Then edit Modules/posixmodule.c and make sure you #include
   all of them at the top of the file.  (Some will be there, and some
   won't, is my guess.)

3) Do the same for plock, lstat, and unsetenv.

Then try make again.

YMMV, as I don't use this platform.

-Beej




More information about the Python-list mailing list