From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7729 Path: news.gmane.org!not-for-mail From: John Mudd Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl xclock? Date: Wed, 20 May 2015 16:47:45 -0400 Message-ID: References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=90e6ba2121e53f8e220516898bd9 X-Trace: ger.gmane.org 1432154914 30798 80.91.229.3 (20 May 2015 20:48:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 May 2015 20:48:34 +0000 (UTC) Cc: John Mudd To: musl Original-X-From: musl-return-7741-gllmg-musl=m.gmane.org@lists.openwall.com Wed May 20 22:48:27 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YvAug-0007WO-2B for gllmg-musl@m.gmane.org; Wed, 20 May 2015 22:48:26 +0200 Original-Received: (qmail 25616 invoked by uid 550); 20 May 2015 20:48:24 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 24540 invoked from network); 20 May 2015 20:48:17 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=i+7cWXG72kmC9IRvn1mPd3o3yPsxnZjZ4v9ON9GA4j8=; b=arjGeCQ2efKpM+K4FGp+9orRNzd4Bnf0pn5+YCNRCNdcb5hYNinCxugos0nh8O0xcA 3GhvkVRJO9IUdSJa+QZzAUgB19YLT8jyuz3jhpUoMZet7W8EFQP29/t9G00KgADoiS5V 129mt6y6QTozWAc3wWD59KxTwHE0kKGmy3BWc651q26Q+3Qu8j1NAVaW4wKquWCtw8nj 5Fn3MhNZr60d4akx/TLs9GxZ5zujPwkdhMvvJKYlH8Y9IaTQSvz+x++B4yX9FJ75uUgI FgzRE9Sv77i6rqILbKi9fLovcWGNroulms+ey8bTyJHkuXbBFUmD+oGnrRQrDRZukQHP Kjqg== X-Received: by 10.42.135.131 with SMTP id p3mr3994403ict.81.1432154886079; Wed, 20 May 2015 13:48:06 -0700 (PDT) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:7729 Archived-At: --90e6ba2121e53f8e220516898bd9 Content-Type: text/plain; charset=ISO-8859-1 > > > Yes, it's Ubuntu 14.04 > > $ uname -a > Linux john-Precision-WorkStation-T3400 3.13.0-49-generic #83-Ubuntu SMP > Fri Apr 10 20:14:51 UTC 2015 i686 i686 i686 GNU/Linux > > I tried creating an empty ld-linux.so.2 > in /usr/lib/gcc/i686-linux-gnu/4.8/ and also > in /home/mudd/musl/musl-1.1.8.install/lib/. I'm not sure if either is what > Szabolcs Nagy suggested but neither seemed to make a difference. > > I might be on to something... I added --verbose to the collect2 command. It listed this: libz.so.1 needed by /home/mudd/musl/libXft-2.3.2.install/lib/libXft.so found libz.so.1 at //lib/i386-linux-gnu/libz.so.1 libc.so.6 needed by //lib/i386-linux-gnu/libz.so.1 Back to libXft.so... $ readelf -a ./libXft-2.3.2.install/lib/libXft.so | grep NEED 0x00000001 (NEEDED) Shared library: [libfontconfig.so.1] 0x00000001 (NEEDED) Shared library: [libxml2.so.2] 0x00000001 (NEEDED) Shared library: [libfreetype.so.6] 0x00000001 (NEEDED) Shared library: [libz.so.1] 0x00000001 (NEEDED) Shared library: [libXrender.so.1] 0x00000001 (NEEDED) Shared library: [libX11.so.6] 0x00000001 (NEEDED) Shared library: [libxcb.so.1] 0x00000001 (NEEDED) Shared library: [libXau.so.6] 0x00000001 (NEEDED) Shared library: [libc.so] $ /home/mudd/musl/lib/ld-musl-i386.so.1 --list ./libXft-2.3.2.install/lib/libXft.so /home/mudd/musl/lib/ld-musl-i386.so.1 (0xb76b8000) libfontconfig.so.1 => /home/mudd/musl/fontconfig-2.11.93.install/lib/libfontconfig.so.1 (0xb7650000) libxml2.so.2 => /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2.so.2 (0xb7492000) libfreetype.so.6 => /home/mudd/musl/freetype-2.5.5.install/lib/libfreetype.so.6 (0xb73e1000) libz.so.1 => /usr/rx30/musl/zlib-1.2.8.install/lib/libz.so.1 (0xb73c7000) libXrender.so.1 => /home/mudd/musl/libXrender-0.9.8.install/lib/libXrender.so.1 (0xb73bc000) libX11.so.6 => /home/mudd/musl/libX11-1.6.3.install/lib/libX11.so.6 (0xb727a000) libxcb.so.1 => /home/mudd/musl/libxcb-1.11.install/lib/libxcb.so.1 (0xb7258000) libXau.so.6 => /home/mudd/musl/libXau-1.0.8.install/lib/libXau.so.6 (0xb7254000) libc.so => /home/mudd/musl/lib/ld-musl-i386.so.1 (0xb76b8000) $ But... look at this.... $ ln -s /home/mudd/musl/lib/ld-musl-i386.so.1 musl_lib $ musl_lib --list ./libXft-2.3.2.install/lib/libXft.so musl_lib (0xb76d0000) libfontconfig.so.1 => /home/mudd/musl/fontconfig-2.11.93.install/lib/libfontconfig.so.1 (0xb7668000) libxml2.so.2 => /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2.so.2 (0xb74aa000) libfreetype.so.6 => /home/mudd/musl/freetype-2.5.5.install/lib/libfreetype.so.6 (0xb73f9000) Error loading shared library libz.so.1: No such file or directory (needed by ./libXft-2.3.2.install/lib/libXft.so) libXrender.so.1 => /home/mudd/musl/libXrender-0.9.8.install/lib/libXrender.so.1 (0xb73ee000) libX11.so.6 => /home/mudd/musl/libX11-1.6.3.install/lib/libX11.so.6 (0xb72ac000) libxcb.so.1 => /home/mudd/musl/libxcb-1.11.install/lib/libxcb.so.1 (0xb728a000) libXau.so.6 => /home/mudd/musl/libXau-1.0.8.install/lib/libXau.so.6 (0xb7286000) libc.so => musl_lib (0xb76d0000) Error loading shared library libz.so.1: No such file or directory (needed by /home/mudd/musl/fontconfig-2.11.93.install/lib/lib Error loading shared library libz.so.1: No such file or directory (needed by /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2. Error loading shared library libz.so.1: No such file or directory (needed by /home/mudd/musl/freetype-2.5.5.install/lib/libfree Error relocating /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2.so.2: deflateEnd: symbol not found Error relocating /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2.so.2: gzclose: symbol not found Error relocating /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2.so.2: inflate: symbol not found Error relocating /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2.so.2: inflateInit2_: symbol not found Error relocating /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2.so.2: gzread: symbol not found Error relocating /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2.so.2: gzdopen: symbol not found Error relocating /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2.so.2: deflate: symbol not found Error relocating /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2.so.2: gzdirect: symbol not found Error relocating /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2.so.2: inflateEnd: symbol not found Error relocating /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2.so.2: gzwrite: symbol not found Error relocating /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2.so.2: crc32: symbol not found Error relocating /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2.so.2: deflateInit2_: symbol not found Error relocating /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2.so.2: gzopen: symbol not found Error relocating /home/mudd/musl/freetype-2.5.5.install/lib/libfreetype.so.6: inflate: symbol not found Error relocating /home/mudd/musl/freetype-2.5.5.install/lib/libfreetype.so.6: inflateReset: symbol not found Error relocating /home/mudd/musl/freetype-2.5.5.install/lib/libfreetype.so.6: inflateEnd: symbol not found Error relocating /home/mudd/musl/freetype-2.5.5.install/lib/libfreetype.so.6: inflateInit2_: symbol not found $ This (getting errors when using link to ld-musl-i386.so.1 only happens when on ths one X11 lib. Is it significant? John --90e6ba2121e53f8e220516898bd9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Yes, it'= ;s Ubuntu 14.04

=A0$ uname -a
Linux john= -Precision-WorkStation-T3400 3.13.0-49-generic #83-Ubuntu SMP Fri Apr 10 20= :14:51 UTC 2015 i686 i686 i686 GNU/Linux

I tried c= reating an empty=A0ld-linux.so.2 in=A0/usr/lib/gcc/i686-linux-gnu/4.8/ and = also in=A0/home/mudd/musl/musl-1.1.8.install/lib/. I'm not sure if eith= er is what Szabolcs Nagy suggested but neither seemed to make a difference.=




I might be on to som= ething...



I added --verbose to the collect2 command.




It listed this:

libz.so.1 needed by /home/mudd/musl/l= ibXft-2.3.2.install/lib/libXft.so
found lib= z.so.1 at //lib/i386-linux-gnu/libz.so.1
li= bc.so.6 needed by //lib/i386-linux-gnu/libz.so.1

<= br>


Back to libXft.so...
=
$ readelf -a ./libXft-2.3.2.install/lib/libXft.so | gre= p NEED
=A00x00000001 (NEEDED) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 Shared library: [libfontconfig.so.1]
=A00x00000001 (NEEDED) = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Shared library: [libxml2.so.2]
=A00x00000001 (NEEDED) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Shared= library: [libfreetype.so.6]
=A00x00000001 (NEEDED) =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 Shared library: [libz.so.1]
=A00x0000= 0001 (NEEDED) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Shared library: [libX= render.so.1]
=A00x00000001 (NEEDED) =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 Shared library: [libX11.so.6]
=A00x00000001 (NEEDED) = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Shared library: [libxcb.so.1]
=
=A00x00000001 (NEEDED) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Shared = library: [libXau.so.6]
=A00x00000001 (NEEDED) =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 Shared library: [libc.so]



$ /home/mudd/musl/lib/ld-musl-i386.so= .1 --list ./libXft-2.3.2.install/lib/libXft.so
=A0 =A0 =A0 =A0 /h= ome/mudd/musl/lib/ld-musl-i386.so.1 (0xb76b8000)
=A0 =A0 =A0 =A0 = libfontconfig.so.1 =3D> /home/mudd/musl/fontconfig-2.11.93.install/lib/l= ibfontconfig.so.1 (0xb7650000)
=A0 =A0 =A0 =A0 libxml2.so.2 =3D&g= t; /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2.so.2 (0xb7492000)
=A0 =A0 =A0 =A0 libfreetype.so.6 =3D> /home/mudd/musl/freetype-2.5= .5.install/lib/libfreetype.so.6 (0xb73e1000)
=A0 =A0 =A0 =A0 libz= .so.1 =3D> /usr/rx30/musl/zlib-1.2.8.install/lib/libz.so.1 (0xb73c7000)<= /div>
=A0 =A0 =A0 =A0 libXrender.so.1 =3D> /home/mudd/musl/libXrende= r-0.9.8.install/lib/libXrender.so.1 (0xb73bc000)
=A0 =A0 =A0 =A0 = libX11.so.6 =3D> /home/mudd/musl/libX11-1.6.3.install/lib/libX11.so.6 (0= xb727a000)
=A0 =A0 =A0 =A0 libxcb.so.1 =3D> /home/mudd/musl/li= bxcb-1.11.install/lib/libxcb.so.1 (0xb7258000)
=A0 =A0 =A0 =A0 li= bXau.so.6 =3D> /home/mudd/musl/libXau-1.0.8.install/lib/libXau.so.6 (0xb= 7254000)
=A0 =A0 =A0 =A0 libc.so =3D> /home/mudd/musl/lib/ld-m= usl-i386.so.1 (0xb76b8000)
$


<= /div>

But... =A0look at this....

$ ln -s /home/mudd/musl/lib/ld-musl-i386.so.1 musl_lib
$ m= usl_lib --list ./libXft-2.3.2.install/lib/libXft.so
=A0 =A0 =A0 = =A0 musl_lib (0xb76d0000)
=A0 =A0 =A0 =A0 libfontconfig.so.1 =3D&= gt; /home/mudd/musl/fontconfig-2.11.93.install/lib/libfontconfig.so.1 (0xb7= 668000)
=A0 =A0 =A0 =A0 libxml2.so.2 =3D> /home/mudd/musl/libx= ml2-2.9.2.install/lib/libxml2.so.2 (0xb74aa000)
=A0 =A0 =A0 =A0 l= ibfreetype.so.6 =3D> /home/mudd/musl/freetype-2.5.5.install/lib/libfreet= ype.so.6 (0xb73f9000)
Error loading shared library libz.so.1: No = such file or directory (needed by ./libXft-2.3.2.install/lib/libXft.so)
=A0 =A0 =A0 =A0 libXrender.so.1 =3D> /home/mudd/musl/libXrender-0= .9.8.install/lib/libXrender.so.1 (0xb73ee000)
=A0 =A0 =A0 =A0 lib= X11.so.6 =3D> /home/mudd/musl/libX11-1.6.3.install/lib/libX11.so.6 (0xb7= 2ac000)
=A0 =A0 =A0 =A0 libxcb.so.1 =3D> /home/mudd/musl/libxc= b-1.11.install/lib/libxcb.so.1 (0xb728a000)
=A0 =A0 =A0 =A0 libXa= u.so.6 =3D> /home/mudd/musl/libXau-1.0.8.install/lib/libXau.so.6 (0xb728= 6000)
=A0 =A0 =A0 =A0 libc.so =3D> musl_lib (0xb76d0000)
=
Error loading shared library libz.so.1: No such file or directory (nee= ded by /home/mudd/musl/fontconfig-2.11.93.install/lib/lib
Error l= oading shared library libz.so.1: No such file or directory (needed by /home= /mudd/musl/libxml2-2.9.2.install/lib/libxml2.
Error loading share= d library libz.so.1: No such file or directory (needed by /home/mudd/musl/f= reetype-2.5.5.install/lib/libfree
Error relocating /home/mudd/mus= l/libxml2-2.9.2.install/lib/libxml2.so.2: deflateEnd: symbol not found
Error relocating /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2.so= .2: gzclose: symbol not found
Error relocating /home/mudd/musl/li= bxml2-2.9.2.install/lib/libxml2.so.2: inflate: symbol not found
E= rror relocating /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2.so.2: inf= lateInit2_: symbol not found
Error relocating /home/mudd/musl/lib= xml2-2.9.2.install/lib/libxml2.so.2: gzread: symbol not found
Err= or relocating /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2.so.2: gzdop= en: symbol not found
Error relocating /home/mudd/musl/libxml2-2.9= .2.install/lib/libxml2.so.2: deflate: symbol not found
Error relo= cating /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2.so.2: gzdirect: sy= mbol not found
Error relocating /home/mudd/musl/libxml2-2.9.2.ins= tall/lib/libxml2.so.2: inflateEnd: symbol not found
Error relocat= ing /home/mudd/musl/libxml2-2.9.2.install/lib/libxml2.so.2: gzwrite: symbol= not found
Error relocating /home/mudd/musl/libxml2-2.9.2.install= /lib/libxml2.so.2: crc32: symbol not found
Error relocating /home= /mudd/musl/libxml2-2.9.2.install/lib/libxml2.so.2: deflateInit2_: symbol no= t found
Error relocating /home/mudd/musl/libxml2-2.9.2.install/li= b/libxml2.so.2: gzopen: symbol not found
Error relocating /home/m= udd/musl/freetype-2.5.5.install/lib/libfreetype.so.6: inflate: symbol not f= ound
Error relocating /home/mudd/musl/freetype-2.5.5.install/lib/= libfreetype.so.6: inflateReset: symbol not found
Error relocating= /home/mudd/musl/freetype-2.5.5.install/lib/libfreetype.so.6: inflateEnd: s= ymbol not found
Error relocating /home/mudd/musl/freetype-2.5.5.i= nstall/lib/libfreetype.so.6: inflateInit2_: symbol not found
$

This (getting errors when using link to=A0ld-m= usl-i386.so.1 =A0only happens when on ths one X11 lib. Is it significant?

John


--90e6ba2121e53f8e220516898bd9--