From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=HTML_MESSAGE, MAILING_LIST_MULTI,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25077 invoked from network); 7 Mar 2022 06:04:39 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 7 Mar 2022 06:04:39 -0000 Received: (qmail 23811 invoked by uid 550); 7 Mar 2022 06:04:37 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 23773 invoked from network); 7 Mar 2022 06:04:36 -0000 Content-Type: multipart/alternative; boundary=Apple-Mail-D4E80629-1E39-45BF-9917-B4BAFCA992E7 Content-Transfer-Encoding: 7bit From: "A. Wilcox" Mime-Version: 1.0 (1.0) Date: Mon, 7 Mar 2022 00:04:21 -0600 Message-Id: <4CFE6DA7-ED06-4CA4-9CFC-617CBB8387A3@adelielinux.org> References: In-Reply-To: To: musl@lists.openwall.com X-Mailer: iPhone Mail (19D52) Subject: Re: [musl] need help with libGL --Apple-Mail-D4E80629-1E39-45BF-9917-B4BAFCA992E7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mar 6, 2022, at 11:50 PM, naruto canada wrote: >=20 > =EF=BB=BFhi >=20 > 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 >=3D 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 >=20 > I've searched the web and found this thread: > https://bugs.freedesktop.org/show_bug.cgi?id=3D35268 >=20 > 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) >=20 > So, I recompiled mesa with patches from the thread. > but I still get the same error message. >=20 > I also tried this simple code: > #include > #include > int main() > { > void *handle =3D dlopen("/usr/lib/libglapi.so", RTLD_LOCAL | RTLD_NOW);= > if (!handle) { > printf("dlopen failed with message '%s'\n", dlerror()); > } > } >=20 > 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' >=20 > Most of what was discussed in the thread was way over my head. > I could use some help. Thanks. You need to disable TLS in Mesa. Try something like this patch: https://cgit.adelielinux.org/packages/tree/user/mesa/no-tls.patch Hope this helps you. Best, -A. -- A. Wilcox (Sent from my iPhone) Mac, iOS, Linux software engineer= --Apple-Mail-D4E80629-1E39-45BF-9917-B4BAFCA992E7 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On Mar 6, 2022, at 11= :50 PM, naruto canada <narutocanada@gmail.com> wrote:

=EF=BB=BFhi

I've finally managed t= o get xorg-server compiled and running.
I've also managed to= get llvm and mesa compiled.
When I tried to run simple 3d t= est program,
I got "Error: GLX version >=3D 1.3 is requir= ed"
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
isterTMClon= eTable: initial-exec TLS resolves to dynamic definition in
/= usr/lib/libGL.so.1

I've searched the web an= d found this thread:
https://bugs.freedesktop.org/show_bug.c= gi?id=3D35268

It seems musl was fixed 4 yea= rs ago.
I've checked musl-1.2.2 source code, indeed, the fix= seems to be
there. (tlsdesc.s)

<= span>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()
{<= /span>
   void *handle =3D dlopen("/usr/lib/libglap= i.so", RTLD_LOCAL | RTLD_NOW);
   if (!handl= e) {
       printf("dlop= en failed with message '%s'\n", dlerror());
  &nb= sp;}
}

dlopen failed with m= essage 'Error relocating /usr/lib/libglapi.so:
_glapi_tls_Co= ntext: initial-exec TLS resolves to dynamic definition in
/u= sr/lib/libglapi.so'

Most of what was discus= sed in the thread was way over my head.
I could use some hel= p. Thanks.