Error trying to instal 1.0.2 on Solaris 10

Skip Montanaro <[email protected]> Mon, 24 Dec 2007 15:16:48 +0000 (UTC)
Newsgroups gmane.comp.python.ctypes.devel
Message-ID <[email protected]>
I'm new to ctypes.  While trying to install ctypes 1.0.2
via 'easy_install ctypes' I got this error (line wrapped to keep
gmane happy):

configure: creating ./config.status
config.status: creating include/ffi.h
config.status: creating fficonfig.py
config.status: creating fficonfig.h
config.status: linking
/tmp/easy_install-ejNvV2/ctypes-1.0.2/source/libffi/src/x86/ffitarget.h \
  to include/ffitarget.h
config.status: linking
/tmp/easy_install-ejNvV2/ctypes-1.0.2/source/libffi/include/ffi_common.h \
  to include/ffi_common.h
config.status: executing include commands
config.status: executing src commands
source/callproc.c: In function `_CallProc':
source/callproc.c:921: warning: implicit declaration of function `alloca'
/tmp/easy_install-ejNvV2/ctypes-1.0.2/source/libffi/src/x86/ffi.c:177: \
  warning: function declaration isn't a prototype
/tmp/easy_install-ejNvV2/ctypes-1.0.2/source/libffi/src/x86/ffi.c:194: \
  warning: function declaration isn't a prototype
Assembler:
        "/var/tmp//ccJuqoE8.s", line 236 : Syntax error
        Near line: ".section .note.GNU-stack,"",%progbits"
error: Setup script exited with error: command 'gcc' failed with exit \
  status 1

Gcc is:

% gcc -v
Reading specs from /opt/app/g++lib6/gcc-3.4/lib/gcc/i386-pc-solaris2.10/3.4.1\
/specs
Configured with: ../configure --prefix=/opt/app/g++lib6/gcc-3.4 \
  --enable-languages=c,c++,objc,f77 --disable-nls --with-included-gettext
Thread model: posix
gcc version 3.4.1

If this isn't a ctypes-devel issue, let me know where I should be asking
for help.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/