On 25/08/15 21:26, David Naylor wrote:
I have found the root cause of this problem (from the FreeBSD-Python team):
"""
Because dlopen symbol is magic. It is provided by the shared libc.so
to satisfy the static linker, but real definition comes from the dynamic
linker. The libc.so dlopen() is a null stub.
You are asking for the dlopen symbol from libc, which is returned to
you in faith, and which cannot load a library for real. While in the C
example, you use normal symbol resolution and get the dlopen from the
loader.
To get a handle to real dlopen with dlopen/dlsym, you should do in C:
dlopenX = dlsym(RTLD_DEFAULT, "dlopen");
""" - Konstantin Belousov
Please find attached for a patch that fixes this issue. Would you like me to
submit a bug report for this patch?
I have not translation tested this patch as yet.
Regards
I committed your patches as c2f97b8c2415, the last chunk looks
strange (why standard_c_lib.__error.restype ? ) , but let's give it
a shot and see what happens.
Matti
|
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev