Skip to content

libepoxy looks for libGLX.so.1, which doesn't exist #295

@jhenstridge

Description

@jhenstridge

libepoxy tries to dlopen libGLX.so.1 as a GL implementation:

#define GLVND_GLX_LIB "libGLX.so.1"
#define GLX_LIB "libGL.so.1"

# ifdef GLVND_GLX_LIB
/* prefer the glvnd library if it exists */
if (!api.glx_handle)
get_dlopen_handle(&api.glx_handle, GLVND_GLX_LIB, false, load);
# endif
if (!api.glx_handle)
get_dlopen_handle(&api.glx_handle, GLX_LIB, exit_if_fails, load);
#endif

But glvnd builds libGLX.so.0 (as can be seen e.g. here and here). So the code path is always going to fall back to loading libGL.so.1.

Trying to open a library version that doesn't yet exist seems like a bad idea: what if it eventually does get created and doesn't have the expected ABI?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions