Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 20 May 2015 16:47:45 -0400
From: John Mudd <johnbmudd@...il.com>
To: musl <musl@...ts.openwall.com>
Cc: John Mudd <johnbmudd@...il.com>
Subject: Re: musl xclock?

>
>
> 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

Content of type "text/html" skipped

Powered by blists - more mailing lists

Your e-mail address:

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