Re: os.listdir bug on a NeXT

Thomas Neumann (tom@smart.ruhr.de)
Wed, 31 Aug 94 15:45 GMT+0100

>>>>> "Robert" == Robert F Tobler <rft@raven.cg.tuwien.ac.at> writes:

Robert> I have tried to use the os.listdir(path) function on a
Robert> NeXT (NeXTstep 3.2, m68k) and found out, that it does not
Robert> work right: The first four characters of each directory
Robert> entry are cut off. Somehow the direct or dirent structures
Robert> are not correctly defined. Does anybody have a fix for
Robert> that?

This typically results of a problem with the configure script and
NeXT's somewhat braindamaged cpp (if you want the details, mail me,
I'm not going into details on this here). To fix this, try running
configure like so (asuming some Bourne'ish shell)

$ CPP="cc -E" ./configure

and recompile python. This should fix it. Alternatively, if you
have a "real" gcc (other then NeXT's crippeled version) installed,
try

$ CC=gcc ./configure

this will give you other minor problems, like missing prototypes for
chdir() and other stuff from unistd.h, but this is trivial to fix.

bye -- Thomas