Solaris 2.6 Build Fails

Dieter Maurer dieter at handshake.de
Thu Jun 8 17:48:22 EDT 2000


Sara Fowler <Sara.Fowler at usa.alcatel.com> writes on Wed, 07 Jun 2000 15:13:02 -0500:
> I downloaded the source for the Python Interpreter from
> http://www.python.org/download/download_source.html.  When trying to
> build it on Solaris 2.6 (SunOS 5.6),
> using gcc for Solaris 2.6, I get the following errors:
> 
> ---------------------------------------------------------------------
> ../posixmodule.c: In function `posix_listdir':
> ../posixmodule.c:944: `DIR' undeclared (first use in this function)
> ../posixmodule.c:944: (Each undeclared identifier is reported only once
> ../posixmodule.c:944: for each function it appears in.)
> ../posixmodule.c:944: `dirp' undeclared (first use in this function)
> ../posixmodule.c:945: parse error before `struct'
> ../posixmodule.c:958: `ep' undeclared (first use in this function)
> make: *** [posixmodule.o] Error 1
> ----------------------------------------------------------------------
Did you run "./configure" before "make"?

We compiled Python on Solaris 2.4/5/6/7 without any problems.

"DIR" usually is defined in "sys/dir.h" or "ndir.h" or "sys/ndir.h".

If you did run "configure", then maybe you "gcc" is not
properly installed.


Dieter



More information about the Python-list mailing list