tech-pkg archive

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

Re: Python ctypes/ netbsd is missing

On Sun, May 08, 2016 at 09:48:55PM +0200, Rhialto wrote:
> I noticed[1] that in $PREFIX/lib/python*/ctypes/ 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/", line 17, in GL
>     mode=ctypes.RTLD_GLOBAL
>   File "/usr/pkg/share/fs-uae-launcher/OpenGL/platform/", line 45, in loadLibrary
>     return dllType( name, mode )
>   File "/usr/pkg/lib/python3.5/ctypes/", 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...


Home | Main Index | Thread Index | Old Index