Mailing List Archive

problem compiling 1.5.2 with egcs-1.1.2 on Solaris 2.6
I get the following error when compiling Modules/signalmodule.c on
Solaris 2.6 with egcs 1.1.2. It works fine with the Sun SunPro compiler.

Bill

gcc -ansi -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./signalmodule.c
./signalmodule.c:104: `SIGMAX' undeclared here (not in a function)
./signalmodule.c:104: size of array `Handlers' has non-integer type
./signalmodule.c: In function `signal_signal':
./signalmodule.c:230: `SIGMAX' undeclared (first use in this function)
./signalmodule.c:230: (Each undeclared identifier is reported only once
./signalmodule.c:230: for each function it appears in.)
./signalmodule.c: In function `signal_getsignal':
./signalmodule.c:281: `SIGMAX' undeclared (first use in this function)
./signalmodule.c: In function `initsignal':
./signalmodule.c:367: `SIGMAX' undeclared (first use in this function)
./signalmodule.c:381: storage size of `act' isn't known
./signalmodule.c: In function `finisignal':
./signalmodule.c:592: `SIGMAX' undeclared (first use in this function)
./signalmodule.c: In function `PyErr_CheckSignals':
./signalmodule.c:628: `SIGMAX' undeclared (first use in this function)
*** Error code 1
make: Fatal error: Command failed for target `signalmodule.o'
problem compiling 1.5.2 with egcs-1.1.2 on Solaris 2.6 [ In reply to ]
When I remove the "-ansi" switch to the compiler, everything compiles OK.

Bill