tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Python ctypes/util.py: netbsd is missing



On Sun, May 08, 2016 at 09:48:55PM +0200, Rhialto wrote:
> I noticed[1] that in $PREFIX/lib/python*/ctypes/util.py there is a check
> for various OSes (such as freebsd and dragonfly), but NetBSD seems to be
> missing. Should it not be included with the *bsd ones?

While the first part is ok, the find_library function is more or less
completely wrong, by design. You don't need to know the runtime search
patch of the interpreter to get dlopen to find a library. You only need
to know (a) name.

> Traceback (most recent call last):
>   File "/usr/pkg/share/fs-uae-launcher/OpenGL/platform/glx.py", line 17, in GL
>     mode=ctypes.RTLD_GLOBAL
>   File "/usr/pkg/share/fs-uae-launcher/OpenGL/platform/ctypesloader.py", line 45, in loadLibrary
>     return dllType( name, mode )
>   File "/usr/pkg/lib/python3.5/ctypes/__init__.py", line 347, in __init__
>     self._handle = _dlopen(self._name, mode)
> OSError: ('Shared object "GL" not found', 'GL', None)

Let me guess, you are using native Xorg and there is no rpath for
X11BASE included...

Joerg


Home | Main Index | Thread Index | Old Index