Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 19 May 2015 18:13:54 -0400
From: Rich Felker <dalias@...c.org>
To: musl <musl@...ts.openwall.com>
Subject: Re: musl xclock?

On Tue, May 19, 2015 at 05:51:24PM -0400, John Mudd wrote:
> I'm trying to build a musl version of xclock. If I can build xclock then I
> hope to be able to build my app which is more complicated. I'm getting the
> following error.
> 
> /usr/bin/ld: h_errno: TLS definition in //lib/i386-linux-gnu/libc.so.6
> section .tbss mismatches non-TLS definition in
> /home/mudd/musl/musl-1.1.8.install/lib/libc.so section .bss
> 
> Here's what the make was trying to execute. It looks good to me. Do you see
> a problem?

Yes, you're linking to glibc, or to something that was linked with
glibc. You should look though the X11 .so files you've built using
readelf and see if any of them have dependencies on libc.so.6. It
looks like you're using the host system's gcc and passing the
musl-gcc.specs file to it manually rather than using the musl-gcc
script or a real musl-targetted compiler toolchain, so it might be
something to do with that too. Adding -v to the command line and
seeing what gets passed to the linker command could be helpful.

Rich

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.