pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/31093: python24-2.4.1nb2 Solaris



>Number:         31093
>Category:       pkg
>Synopsis:       python24-2.4.1nb2 Solaris
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 30 09:10:00 +0000 2005
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic i86pc


>Description:


same as python23

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: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

Stop.
bmake: stopped in /usr/pkgsrc/lang/python24/work/Python-2.4.1
*** Error code 1




>How-To-Repeat:





>Fix:


--- /net/redhot/usr/pkgsrc/lang/python24/Makefile.orig  Mon Aug 29 16:06:44 2005
+++ /net/redhot/usr/pkgsrc/lang/python24/Makefile       Tue Aug 30 10:58:42 2005
@@ -19,7 +19,7 @@
 USE_LANGUAGES=         c c++
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --enable-shared
-CONFIGURE_ARGS+=       OPT="${CFLAGS}"
+#CONFIGURE_ARGS+=      OPT="${CFLAGS}"
 
 PTHREAD_OPTS=   require
 .include "../../mk/pthread.buildlink3.mk"
@@ -34,6 +34,14 @@
 
 .include "../../mk/bsd.prefs.mk"
 
+.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
+
 PLIST_SRC=     ${.CURDIR}/../../lang/python24/PLIST.common
 .if exists(${.CURDIR}/../../lang/python24/PLIST.${OPSYS})
 PLIST_SRC+=    ${.CURDIR}/../../lang/python24/PLIST.${OPSYS}






Home | Main Index | Thread Index | Old Index