[MacPorts] #22418: py-ctypes won't build on Snow Leopard (libffi related?)

MacPorts noreply at macports.org
Sun Nov 8 02:33:13 PST 2009


#22418: py-ctypes won't build on Snow Leopard (libffi related?)
--------------------------------+-------------------------------------------
 Reporter:  optilude@…          |       Owner:  macports-tickets@…                   
     Type:  defect              |      Status:  new                                  
 Priority:  Normal              |   Milestone:                                       
Component:  ports               |     Version:  1.8.1                                
 Keywords:                      |        Port:                                       
--------------------------------+-------------------------------------------
 I get the following error:

 {{{
 $ sudo port install py-ctypes
 Password:
 --->  Computing dependencies for py-ctypes
 --->  Building py-ctypes
 Error: Target org.macports.build returned: shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_python_py-ctypes/work/ctypes-1.0.1" &&
 /opt/local/bin/python2.4 setup.py build " returned error 1
 Command output: running build
 running build_py
 running build_ext
 building '_ctypes' extension
 /usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -DNDEBUG -g -O3 -Wall
 -Wstrict-prototypes -Isource/darwin
 -Ibuild/temp.macosx-10.6-i386-2.4/libffi/include
 -Ibuild/temp.macosx-10.6-i386-2.4/libffi
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_python_py-ctypes/work/ctypes-1.0.1/source/libffi/src
 -I/opt/local/include/python2.4 -c source/_ctypes.c -o
 build/temp.macosx-10.6-i386-2.4/source/_ctypes.o
 In file included from source/_ctypes.c:110:
 build/temp.macosx-10.6-i386-2.4/libffi/include/ffi.h:161: error: expected
 specifier-qualifier-list before 'ffi_abi'
 build/temp.macosx-10.6-i386-2.4/libffi/include/ffi.h:183: error: expected
 specifier-qualifier-list before 'ffi_sarg'
 build/temp.macosx-10.6-i386-2.4/libffi/include/ffi.h:267: error: expected
 declaration specifiers or '...' before 'ffi_abi'
 In file included from source/_ctypes.c:126:
 source/ctypes.h:71: error: expected specifier-qualifier-list before
 'ffi_closure'
 source/_ctypes.c: In function 'CDataType_in_dll':
 source/_ctypes.c:304: warning: format not a string literal and no format
 arguments
 source/_ctypes.c: In function 'CFuncPtr_FromDll':
 source/_ctypes.c:2790: warning: format not a string literal and no format
 arguments
 source/_ctypes.c: In function 'CFuncPtr_clear':
 source/_ctypes.c:3417: error: 'ffi_info' has no member named 'pcl'
 error: command '/usr/bin/gcc-4.2' failed with exit status 1

 Error: Status 1 encountered during processing.
 }}}

 libffi installed fine.

-- 
Ticket URL: <http://trac.macports.org/ticket/22418>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list