On Fri, Nov 09, 2018 at 11:22:05AM -0300, Lisandro Damián Nicanor Pérez Meyer 
wrote:
> Check https://codereview.qt-project.org/#/c/245064/ and it's comments.
>
> The code seems to support linking, but somehow we don't do it.

Interesting that we *do* link to libGL:

  $ ldd 
/usr/lib/x86_64-linux-gnu/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so
 | grep libGL.so
          libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 
(0x00007ffade5aa000)

Also the code does *not* support linking.

The code first tries dlopen(NULL, RTLD_LAZY). According to dlopen(3) manpage,
if filename is NULL, then the returned handle is for the main program.

This does not work when the main program is Python — python interpreter is
not linked against libGL.so.

When the first dlopen() call does not find the needed GL symbols, it tries to
dlopen() libGL.so, via the QLibrary wrapper. That almost always succeeds,
the patch in linked codereview should fix the remaining problems.

I think there is nothing for us to fix in *this* bug, and it can be closed.

--
Dmitry Shachnev

Attachment: signature.asc
Description: PGP signature

Reply via email to