successful build of 1.0.0 on 3.0 NeXT

George White 6-8509 (gwhite@trevnx.bio.dfo.ca)
Sat, 5 Feb 94 15:42:17 -0400

I had only 1 small problem building 1.0.0 on a 3.0 NeXT. Here are
the details in case someone else wants to do this. With the indicated
change, "make test" succeeds.

$ CC=cc ./configure
$ make
...
make[1]: Entering directory `/local/Users/gwhite/NeXT/src/Python-1.0.0/Modules'
cc -O -I./../Include -I.. -DHAVE_CONFIG_H -c ./arraymodule.c
cc -O -I./../Include -I.. -DHAVE_CONFIG_H -c ./mathmodule.c
cc -O -I./../Include -I.. -DHAVE_CONFIG_H -c ./parsermodule.c
cc -O -I./../Include -I.. -DHAVE_CONFIG_H -c ./posixmodule.c
./posixmodule.c:889: undefined type, found `clock_t'
make[1]: *** [posixmodule.o] Error 1
make[1]: Leaving directory `/local/Users/gwhite/NeXT/src/Python-1.0.0/Modules'
make: *** [python] Error 1
$

Diagnosis and repair:

clock_t is defined in sys/time.h
add block for sys/time.h in Modules/posixmodule
$ diff -c posixmodule.c posixmodule.c.dist
*** posixmodule.c Sat Feb 5 15:20:43 1994
--- posixmodule.c.dist Sat Feb 5 15:19:01 1994
***************
*** 73,83 ****
#include <utime.h>
#endif

- #ifdef HAVE_SYS_TIME_H
- #include <sys/time.h>
- #endif
-
-
#ifdef HAVE_SYS_TIMES_H
#include <sys/times.h>
#endif
--- 73,78 ----

/George White <GWhite@BIOnet.BIO.DFO.ca> Bedford Inst. of Oceanography