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 08 May 2016 at 22:11:23 +0200, Joerg Sonnenberger wrote:
> On Sun, May 08, 2016 at 09:48:55PM +0200, Rhialto wrote:
> > 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...

Yes, I use native Xorg. But I'm not sure where the rpath should be
added. The main program is Python itself (/usr/pkg/bin/fs-uae-arcade is
a shell script wrapper that calls /usr/pkg/bin/fs-uae-launcher, which is
a Python3.5 script). And I'm not sure it is practical to add
/usr/X11R7/lib to that rpath.

I just tried "export LD_LIBRARY_PATH=/usr/X11R7/lib". Then I
interestingly get a core dump. So it does make a difference :-/

Reading symbols from /usr/pkg/bin/python3.5...(no debugging symbols found)...done.
[New process 1]
[New process 2]
Core was generated by `python3.5'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f7fd9f77450 in _X11TransWritev () from /usr/X11R7/lib/libX11.so.6
(gdb) bt
#0  0x00007f7fd9f77450 in _X11TransWritev () from /usr/X11R7/lib/libX11.so.6
#1  0x00007f7fd9f75dd8 in _XSend () from /usr/X11R7/lib/libX11.so.6
#2  0x00007f7fd9f6c54f in XQueryExtension () from /usr/X11R7/lib/libX11.so.6
#3  0x00007f7fd9f6c3c4 in XInitExtension () from /usr/X11R7/lib/libX11.so.6
#4  0x00007f7fda406b52 in XRenderFindDisplay ()
   from /usr/X11R7/lib/libXrender.so.1
#5  0x00007f7fda407979 in XRenderQueryExtension ()
   from /usr/X11R7/lib/libXrender.so.1
#6  0x00007f7fda606f44 in _XcursorGetDisplayInfo ()
   from /usr/X11R7/lib/libXcursor.so.1
#7  0x00007f7fda6074c9 in XcursorGetDefaultSize ()
   from /usr/X11R7/lib/libXcursor.so.1
#8  0x00007f7fda603cae in XcursorLibraryLoadCursor ()
   from /usr/X11R7/lib/libXcursor.so.1
#9  0x00007f7fe044791c in QXcbCursor::createFontCursor(int) ()
   from /usr/pkg/qt5/lib/libQt5XcbQpa.so.5
#10 0x00007f7fe0447e2b in QXcbCursor::changeCursor(QCursor*, QWindow*) ()
   from /usr/pkg/qt5/lib/libQt5XcbQpa.so.5
.....much more....

> Joerg
-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl    -- 'this bath is too hot.'

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index