Ronald Oussoren <ronaldousso...@mac.com> added the comment:

Fixing the alloc_closure error is easy enough:


Index: ../setup.py
===================================================================
--- ../setup.py (revision 84528)
+++ ../setup.py (working copy)
@@ -1653,7 +1653,9 @@
                    '_ctypes/callbacks.c',
                    '_ctypes/callproc.c',
                    '_ctypes/stgdict.c',
-                   '_ctypes/cfield.c']
+                   '_ctypes/cfield.c',
+                   '_ctypes/malloc_closure.c',
+                   ]
         depends = ['_ctypes/ctypes.h']
 
         if sys.platform == 'darwin':


That's not enough to make it possible to build ctypes on OSX though, I now get 
the same error for a different symbol:


*** WARNING: renaming "_ctypes" since importing it failed: 
dlopen(build/lib.macosx-10.6-fat-3.2/_ctypes.so, 2): Symbol not found: 
_ffi_prep_closure_loc
  Referenced from: 
/Users/ronald/Projects/python/python-3.x/build/build/lib.macosx-10.6-fat-3.2/_ctypes.so
  Expected in: flat namespace
 in 
/Users/ronald/Projects/python/python-3.x/build/build/lib.macosx-10.6-fat-3.2/_ctypes.so

----------
nosy: +ronaldoussoren

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5504>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to