This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients Arfrever, BreamoreBoy, agoode, dmalcolm, flox, lukasz.langa, mark.dickinson, pitrou, ronaldoussoren, srid, theller
Date 2010-09-05.13:44:44
SpamBayes Score 7.342987e-05
Marked as misclassified No
Message-id <1283694286.89.0.107146705576.issue5504@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2010-09-05 13:44:47ronaldoussorensetrecipients: + ronaldoussoren, theller, mark.dickinson, pitrou, Arfrever, agoode, srid, flox, dmalcolm, BreamoreBoy, lukasz.langa
2010-09-05 13:44:46ronaldoussorensetmessageid: <1283694286.89.0.107146705576.issue5504@psf.upfronthosting.co.za>
2010-09-05 13:44:45ronaldoussorenlinkissue5504 messages
2010-09-05 13:44:44ronaldoussorencreate