From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7730 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: musl xclock? Date: Wed, 20 May 2015 23:08:02 +0200 Message-ID: <20150520210801.GK11258@port70.net> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1432156112 17614 80.91.229.3 (20 May 2015 21:08:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 May 2015 21:08:32 +0000 (UTC) Cc: John Mudd To: musl@lists.openwall.com Original-X-From: musl-return-7742-gllmg-musl=m.gmane.org@lists.openwall.com Wed May 20 23:08:17 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 1YvBDs-0001Ur-0j for gllmg-musl@m.gmane.org; Wed, 20 May 2015 23:08:16 +0200 Original-Received: (qmail 3744 invoked by uid 550); 20 May 2015 21:08:14 -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 3721 invoked from network); 20 May 2015 21:08:13 -0000 Mail-Followup-To: musl@lists.openwall.com, John Mudd Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:7730 Archived-At: * John Mudd [2015-05-20 16:47:45 -0400]: > > 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 > ok so you probably forgot to add libz to the -L path and then ld went ahead and found the wrong one > $ 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] > this is ok (in general you may also want to look at rpath too) > $ /home/mudd/musl/lib/ld-musl-i386.so.1 --list > ./libXft-2.3.2.install/lib/libXft.so ... > libz.so.1 => /usr/rx30/musl/zlib-1.2.8.install/lib/libz.so.1 > (0xb73c7000) ... > $ ln -s /home/mudd/musl/lib/ld-musl-i386.so.1 musl_lib > $ musl_lib --list ./libXft-2.3.2.install/lib/libXft.so ... > Error loading shared library libz.so.1: No such file or directory (needed > by ./libXft-2.3.2.install/lib/libXft.so) you probably have an /home/mudd/musl/etc/ld-musl-i386.path that is visible to the first command but not to the second (nor to ld). you may also want to figure out why ld tried the system paths (it either uses hard coded paths or gets them from some ld.so.conf, you can figure out what it's doing by using strace -f on the build command)