pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/31092: Python-2.3.5 Solaris
>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"
Home |
Main Index |
Thread Index |
Old Index