problem building 2.1 on SunOS 5.7

Garry Hodgson garry at sage.att.com
Fri Jun 22 11:22:55 EDT 2001


Garry Hodgson wrote:
> 
> i'm trying to download python 2.1 on a new machine, and having
> some problems.  i do a configure, then a make, and get:
> 
> ->make
> gcc -c -g -O2 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H
> -o Modules/python.o Modules/python.c
> In file included from
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2/include/time.h:90,
>                  from /usr/include/sys/time.h:405,
>                  from /usr/include/sys/select.h:17,
>                  from
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2/include/sys/types.h:274,
>                  from /usr/include/sys/wait.h:20,
>                  from
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2/include/stdlib.h:17,
>                  from Include/Python.h:50,
>                  from Modules/python.c:3:
> /usr/include/sys/siginfo.h:74: parse error before `pthread_attr_t'
> /usr/include/sys/siginfo.h:74: warning: no semicolon at end of struct or
> union
> /usr/include/sys/siginfo.h:76: parse error before `}'
> *** Error code 1
> make: Fatal error: Command failed for target `Modules/python.o'
> 
> the same thing happens with 1.6.1
> 
> it works ok on another machine running SunOS 5.6.
> does anyone know of a fix/workaround?

okay, i'm answering my own question.  but just in case anyone else trips
over this, i got it to work using ./configure --without-gcc

the regular sun c compiler built it without a hiccough.

-- 
Garry Hodgson                   sometimes we ride on your horses
Senior Hacker                   sometimes we walk alone
Software Innovation Services    sometimes the songs that we hear
AT&T Labs                       are just songs of our own
garry at sage.att.com



More information about the Python-list mailing list