[ python-Bugs-1276509 ] 2.4.1 make fails on Solaris 10 (complexobject.c/HUGE_VAL)
SourceForge.net
noreply at sourceforge.net
Wed Sep 28 08:54:08 CEST 2005
Bugs item #1276509, was opened at 2005-08-30 12:48
Message generated for change (Comment added) made by chrschaffer
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1276509&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: csmuc (chrschaffer)
Assigned to: Nobody/Anonymous (nobody)
Summary: 2.4.1 make fails on Solaris 10 (complexobject.c/HUGE_VAL)
Initial Comment:
Hi all,
my efforts building Python 2.4.1 on Solaris 10(x386)
failed.
The error mesage reads:
(...)Objects/complexobject.c: In function `complex_pow':
Objects/complexobject.c:479: error: invalid operands to
binary ==
Objects/complexobject.c:479: error: wrong type argument
to unary minus
Objects/complexobject.c:479: error: invalid operands to
binary ==
Objects/complexobject.c:479: error: wrong type argument
to unary minus
*** Error code 1
make: Fatal error: Command failed for target
`Objects/complexobject.o'
I found bug 970334 dealing with that topic, but I
didn't find a solution provided.
I tried with various compilers and libraries, e.g.
/opt/sfw/bin/gcc --version
gcc (GCC) 3.4.2
Copyright (C) 2004 Free Software Foundation, Inc.
/opt/csw/gcc3/bin/gcc --version
gcc (GCC) 3.4.4
Copyright (C) 2004 Free Software Foundation, Inc.
/usr/local/bin/gcc --version
gcc (GCC) 3.3.2
The same result with any of them.
I didn't get the solution provided in
http://mail.python.org/pipermail/python-list/2005-August/293795.html
to work for me, unfortunately.
I'd be glad, if you could have a look into this issue.
Thanks in advance,
Chris
----------------------------------------------------------------------
>Comment By: csmuc (chrschaffer)
Date: 2005-09-28 08:54
Message:
Logged In: YES
user_id=1337267
Hi all,
I found a newsgroup posting which adviced to change a line
in Include/pyport.h
http://mail.python.org/pipermail/patches/2005-February/016881.html
---------------8<-----------------------------------------------------
The fix I used was to make the following change in
pyport.h:
Change
#define Py_HUGE_VAL HUGE_VAL
to
#define Py_HUGE_VAL DBL_MAX.
DBL_MAX is found in float.h
--------------->8-----------------------------------------------------
I did as adviced and the compile worked. I am not sure, if
this is a valid solution, but at least it´s a workaround.
Thanks to Reinhold Birkenfeld for your hint!
Regards,
Chris
----------------------------------------------------------------------
Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-09-22 09:03
Message:
Logged In: YES
user_id=1188172
Looks like HUGE_VAL is defined in a curious way on your
platform. Can you find out what header defines HUGE_VAL and
to what it expands?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1276509&group_id=5470
More information about the Python-bugs-list
mailing list