Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 07 Mar 2022 09:15:34 -0500
From: "Alex Xu (Hello71)" <alex_y_xu@...oo.ca>
To: naruto canada <narutocanada@...il.com>
Cc: musl@...ts.openwall.com
Subject: Re: need help with libGL

Excerpts from naruto canada's message of March 7, 2022 12:43 am:
> hi
> 
> I've finally managed to get xorg-server compiled and running.
> I've also managed to get llvm and mesa compiled.
> When I tried to run simple 3d test program,
> I got "Error: GLX version >= 1.3 is required"
> I've checked /var/log/Xorg.log, and got:
> Failed to load /usr/lib/xorg/modules/extensions/libglx.so: Error
> relocating /usr/lib/libGL.so.1: _ITM_dereg
> isterTMCloneTable: initial-exec TLS resolves to dynamic definition in
> /usr/lib/libGL.so.1
> 
> I've searched the web and found this thread:
> https://bugs.freedesktop.org/show_bug.cgi?id=35268
> 
> It seems musl was fixed 4 years ago.
> I've checked musl-1.2.2 source code, indeed, the fix seems to be
> there. (tlsdesc.s)
> 
> So, I recompiled mesa with patches from the thread.
> but I still get the same error message.
> 
> I also tried this simple code:
> #include <dlfcn.h>
> #include <stdio.h>
> int main()
> {
>     void *handle = dlopen("/usr/lib/libglapi.so", RTLD_LOCAL | RTLD_NOW);
>     if (!handle) {
>         printf("dlopen failed with message '%s'\n", dlerror());
>     }
> }
> 
> dlopen failed with message 'Error relocating /usr/lib/libglapi.so:
> _glapi_tls_Context: initial-exec TLS resolves to dynamic definition in
> /usr/lib/libglapi.so'
> 
> Most of what was discussed in the thread was way over my head.
> I could use some help. Thanks.
> 

The short answer is that I have submitted a fix which is included in 
Mesa 22. It seems that Mesa 22 has been delayed several times; -rc2 is 
out, but I don't know when the final will be released.

In general, I would suggest using a full Linux distribution instead of 
compiling packages individually. If for some reason you insist on 
compiling packages individually, the various musl-based Linux 
distributions are still a good reference for which patches and 
other adjustments are required for musl compatibility.

Cheers,
Alex.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.