[Python-Dev] Problems compiling Python 2.3.3 on Solaris 10 with gcc 3.4.1 (original) (raw)

Eirik Mikkelsen eirik.mikkelsen at unix.net
Thu Dec 16 14:03:55 CET 2004


On Thu, 2004-12-16 at 12:30 +0000, Johan Carlstedt wrote:

Hello,

I am having problems compiling Python 2.3.3 on Solaris 10 X86 using gcc 3.4.1. The error message below is generated. [SNIP] Objects/complexobject.c Objects/complexobject.c: In function `complexpow': Objects/complexobject.c:469: error: invalid operands to binary == Objects/complexobject.c:469: error: wrong type argument to unary minus Objects/complexobject.c:469: error: invalid operands to binary == Objects/complexobject.c:469: error: wrong type argument to unary minus

Solaris 10 doesn't correctly define HUGE_VAL (I think it's called HUGE in their header files) - so you may want to change the #define in Include/pyport.h from

#define Py_HUGE_VAL HUGE_VAL

to

#define Py_HUGE_VAL HUGE

-- Eirik Mikkelsen <eirik.mikkelsen at unix.net>



More information about the Python-Dev mailing list