[Python-Dev] test_ctypes failure on Mac OS X/PowerPC 10.3.9(Panther)
theller at python.net
Thu Jun 22 22:07:09 CEST 2006
Ronald Oussoren schrieb:
> 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:
>>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).
This sounds like RTLD_GLOBAL should be the default mode on OS X.
More information about the Python-Dev