[Python-Dev] test_ctypes failure on Mac OS X/PowerPC 10.3.9(Panther)

Ronald Oussoren ronaldoussoren at mac.com
Wed Jun 21 10:01:21 CEST 2006

On Wednesday, June 21, 2006, at 09:43AM, Thomas Heller <theller at python.net> wrote:

>Ronald Oussoren schrieb:
>>> will have a look.
>> It is a platform bug, RTLD_LOCAL doesn't work on 10.3. The following C 
>> snippet fails with the same error as ctypes: FAIL: dlcompat: unable to 
>> open this file with RTLD_LOCAL. This seems to be confirmed by this 
>> sourcet test file from darwin: 
>> http://darwinsource.opendarwin.org/10.4.1/dyld-43/unit-tests/test-cases/dlopen-RTLD_LOCAL/main.c. 
>What does this mean?  Would it work with RTLD_GLOBAL, is there any other 
>way to repair it, or does loading dylibs not work at all on Panther?

Using RTLD_GLOBAL does work. This should also be fairly save as RTLD_GLOBAL seems to be the same as RTLD_LOCAL when using two-level namespaces (which is the default on OSX and used by Python).


More information about the Python-Dev mailing list