Subject: pkg/31092: Python-2.3.5 Solaris
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 08/30/2005 08:38:00
>Number: 31092
>Category: pkg
>Synopsis: Python-2.3.5 Solaris
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Aug 30 08:38:00 +0000 2005
>Originator: Gilles Dauphin
>Release: SunOS 5.10 i86pc
>Organization:
ENST
>Environment:
System: SunOS bi.enst.fr 5.10 Generic i86pc
>Description:
gcc -c -fno-strict-aliasing -DNDEBUG -O -I/usr/include -I/usr/pkg/include/db4 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/pkg/include -I. -I./Include -fPIC -DPy_BUILD_CORE -o Objects/complexobject.o Objects/complexobject.c
Objects/complexobject.c: In function `complex_pow':
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
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/lang/python23/work/Python-2.3.5
*** Error code 1
>How-To-Repeat:
>Fix:
--- /net/redhot/usr/pkgsrc/lang/python23/Makefile.common.orig Sun Jul 3 21:49:06 2005
+++ /net/redhot/usr/pkgsrc/lang/python23/Makefile.common Tue Aug 30 10:25:35 2005
@@ -13,10 +13,19 @@
USE_LANGUAGES= c c++
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-shared
+
+.if ${OPSYS} == "SunOS"
+# workaround for bug in Solaris 8,9,10 , HUGE_VAL is a function in some case...
+#
+CONFIGURE_ARGS+= OPT="${CFLAGS} -D\"Py_HUGE_VAL=HUGE_VAL()\""
+.else
CONFIGURE_ARGS+= OPT="${CFLAGS}"
+.endif
# fdatasync()
LIBS.SunOS= -lrt
+#CFLAGS.SunOS= -DPy_HUGE_VAL=HUGE_VAL()
+#CFLAGS="-DPy_HUGE_VAL=HUGE_VAL()"
.include "../../mk/bsd.prefs.mk"