pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/40729: lang/python25 can't build _ctypes module on Solaris 10 x86
>Number: 40729
>Category: pkg
>Synopsis: lang/python25 can't build _ctypes module on Solaris 10 x86
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 23 13:35:00 +0000 2009
>Originator: KAWAKUBO Hiroshi
>Release: pkgsrc-current on Solaris 10 x86
>Organization:
>Environment:
SunOS XXX 5.10 Generic_137138-09 i86pc i386 i86pc
>Description:
lang/python25 can't build _ctypes module on Solaris 10 x86 with the following
error:
gcc -fPIC -fno-strict-aliasing -DNDEBUG -O -I/usr/pkg/include/db4
-I/usr/pkg/gcc34/include
-I/usr/pkg/gcc34/lib/gcc/i386-pc-solaris2.10/3.4.6/include -I/usr/include
-I/usr/pkg/include -I. -I/tmp/pkgsrc/lang/python25/work/Python-2.5.2/./Include
-Ibuild/temp.solaris-2.10-i86pc-2.5/libffi/include
-Ibuild/temp.solaris-2.10-i86pc-2.5/libffi
-I/tmp/pkgsrc/lang/python25/work/Python-2.5.2/Modules/_ctypes/libffi/src -I.
-IInclude -I./Include -I/usr/pkg/include/db4 -I/usr/pkg/gcc34/include
-I/usr/pkg/gcc34/lib/gcc/i386-pc-solaris2.10/3.4.6/include -I/usr/include
-I/usr/pkg/include -I/tmp/pkgsrc/lang/python25/work/Python-2.5.2/Include
-I/tmp/pkgsrc/lang/python25/work/Python-2.5.2 -c
/tmp/pkgsrc/lang/python25/work/Python-2.5.2/Modules/_ctypes/libffi/src/x86/sysv.S
-o
build/temp.solaris-2.10-i86pc-2.5/tmp/pkgsrc/lang/python25/work/Python-2.5.2/Modules/_ctypes/libffi/src/x86/sysv.o
Assembler:
"/var/tmp//ccBactfY.s", line 236 : Syntax error
Near line: ".section .note.GNU-stack,"",%progbits"
>How-To-Repeat:
>Fix:
The following patch should fix the problem.
The #if condition in this patch is the same as that of Python 2.6/3.0.
--- Modules/_ctypes/libffi/src/x86/sysv.S.orig 2006-10-22 10:55:25.000000000
+0000
+++ Modules/_ctypes/libffi/src/x86/sysv.S
@@ -377,6 +377,6 @@
#endif /* ifndef __x86_64__ */
-#ifdef __ELF__
+#if defined __ELF__ && defined __linux__
.section .note.GNU-stack,"",%progbits
#endif
Home |
Main Index |
Thread Index |
Old Index