On 20-jun-2006, at 20:50, Ronald Oussoren wrote: > > On 20-jun-2006, at 20:06, Thomas Heller wrote: > >> Trent Mick schrieb: >>> Thomas and others, >>> >>> Has anyone else seen failures in test_ctypes on older Mac OS X/ >>> PowerPC? >>> Results are below. This is running a build of the trunk from last >>> night: >>> >>> ./configure && make && ./python.exe Lib/test/test_ctypes.py >>> >>> Note that the test does NOT fail on the Mac OS X/x86 10.4.6 box >>> that I have. >> >> It also works on 10.4.?? Power PC. I guess the fix has to wait until >> I'm able to install 10.3 on my mac, I have the DVDs already but >> have not >> yet had the time. If anyone is willing to give me ssh access to a >> 10.3 >> box I can try to fix this earlier. > > I had some problems with my 10.3-capable box, but happily enough it > decided to come alive again. I'm currently booted into 10.3.9 and > 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. /* Begin of file */ #include <dlfcn.h> #include <stdio.h> int main(void) { void* lib; lib = dlopen("/usr/lib/libz.dylib", RTLD_LOCAL); if (lib == NULL) { printf("FAIL: %s\n", dlerror()); } else { printf("OK\n"); } return 0; } /* End of file */ > > Ronald > > _______________________________________________ > Python-Dev mailing list > Python-Dev@python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: http://mail.python.org/mailman/options/python-dev/ > ronaldoussoren%40mac.com _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com