Re: Python 1.2 released

'Dr. GECOS' Donn Cave (donn@u.washington.edu)
14 Apr 1995 16:00:02 GMT

gordo@auntie.bbcnc.org.uk (Gordon Joly) writes:
| Under SunOS 4.1.3, with gcc version 2.4.5, I get this error.
...
| gcc -O -I./../Include -I.. -DHAVE_CONFIG_H -c ./posixmodule.c
| ./posixmodule.c: In function `posix_mkdir':
| ./posixmodule.c:461: `mkdir' undeclared (first use this function)

For posixmodule to build, certain system call functions like mkdir()
need to have been declared. (Because they're passed by reference,
rather than invoked directly.)

I don't have any SunOS 4.1.3 on which to check this, but I bet unistd.h
does in fact declare mkdir(), and the problem is that gcc is using its
own include files, which for some reason don't.

Unless there's some reason why the vendor's C compiler is not able to do
what you want, maybe you should avoid gcc.

Donn Cave, University Computing Services, University of Washington
donn@cac.washington.edu