From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7337 Path: news.gmane.org!not-for-mail From: Wermut Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl ldd? Date: Fri, 03 Apr 2015 19:41:08 +0000 Message-ID: References: <20150403145542.GE27899@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c341e04c1a680512d7217b X-Trace: ger.gmane.org 1428090092 20166 80.91.229.3 (3 Apr 2015 19:41:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Apr 2015 19:41:32 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7350-gllmg-musl=m.gmane.org@lists.openwall.com Fri Apr 03 21:41:23 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 1Ye7T0-0005Kp-Hd for gllmg-musl@m.gmane.org; Fri, 03 Apr 2015 21:41:22 +0200 Original-Received: (qmail 7219 invoked by uid 550); 3 Apr 2015 19:41:21 -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 7195 invoked from network); 3 Apr 2015 19:41:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=Cwa6zse0l+OOmoDRdSFJegEOx35NnAScGWH9tcgylhs=; b=Smgh3ktr1gF2oUCv4cqsOEzUqiOZnUlgpExTwYK68yWSnFchMo/7JbIU2kQAAjCo7n z/71HuMWihYPf3TLFV0W1nQl2tVPAZ/H5BDHQDEU49k7ROP9yPexlKiz24MEFUrwVumX /dDHrothzgFMj5WC8MpmYOCqaExOeQE22o+04EnGNJ5fOV64nws+Pn40Si4HRFWbFJHG 7I6rrIxTjWBGOUfgH3Cu152LAoeDMEo5i74vdBDUak4uWBwpt6LDZzNVwWtoPIz7a9+O 5wD3y+J5WyBz+L/loH5p/pRatfn9UTn/05fC9tXYPjZeYs6n4wYxt1RV0bigv1Od7sq7 iY7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; bh=Cwa6zse0l+OOmoDRdSFJegEOx35NnAScGWH9tcgylhs=; b=LQYT3ESGXiOiSCLY0iVz8wrI2VK52LBJCeS6VcnVSUH+ak51zH7iqd58Aam81qbhXN e9xfXzqB01Pn486+aU5G+pACPK2Gw7lc82zsZgFMzK9CLwkzMc5D/q5vAAcTnhmNpQxS lFGvFHug43Z6kCbda1c2Lw27t6uhNeJbZN4I0nkhpxk5xXoMJqRdGQ7IjsCiCCmVI8gw 5rx4ncOvmYFdPeOYebqfXH7Za/6tOA5b3l6HAVzirWi3kUIa8+vXqsZOgL6ZqH9iPeWM 1geHbVt7yv0WUiSFrvN8n5TqWIi0hVfmQLxiMoKsX6f/c/RNrRVALvHG5F1wNU4yCBYX mNbQ== X-Gm-Message-State: ALoCoQnoFLK6FpWdZk1O89uDId8yzlvy5rX1lBQIJQcW1m3Rt3n0RAhln6gpycFK1sj1wSUkpN+E X-Received: by 10.112.140.74 with SMTP id re10mr3458822lbb.80.1428090069451; Fri, 03 Apr 2015 12:41:09 -0700 (PDT) In-Reply-To: <20150403145542.GE27899@port70.net> Xref: news.gmane.org gmane.linux.lib.musl.general:7337 Archived-At: --001a11c341e04c1a680512d7217b Content-Type: text/plain; charset=UTF-8 If there are other ldd providing C libraries installed, you can also make a link with its name ending in *ldd for the musl libc/loader. e.g. # ln -s /usr/local/bin/musl-ldd /lib/ld-musl-x86_64.so.1 On Fri, Apr 3, 2015 at 4:55 PM Szabolcs Nagy wrote: > * John Mudd [2015-04-03 10:16:32 -0400]: > > Is there a substitute for 'ldd' command to list shared library > dependencies > > for musl compiled executables? > > > > $ ldd postgresql-*.install/bin/postgres > > postgresql-9.4.1.install/bin/postgres: error while loading shared > > libraries: /usr/lib/i386-linux-gnu/libc.so: invalid ELF header > > make it a symlink to the libc/loader > > $ readlink /usr/bin/ldd > ../../lib/ld-musl-x86_64.so.1 > $ ldd /usr/bin/python > /lib/ld-musl-x86_64.so.1 (0x72afa0d19000) > libpython2.7.so.1.0 => /usr/lib/libpython2.7.so.1.0 > (0x72afa0786000) > libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x72afa0d19000) > --001a11c341e04c1a680512d7217b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
If there are other ldd providing C libraries installed, yo= u can also make a link with its name ending in *ldd for the musl libc/loade= r.

e.g. # ln -s /usr/local/bin/musl-ldd /lib/ld-musl-x86_64.so.1

On Fri, Apr 3, 2015 at 4:55 PM Szab= olcs Nagy <nsz@port70.net> wrot= e:
* John Mudd <johnbmudd@gmail.com> [2015-04-03 = 10:16:32 -0400]:
> Is there a substitute for 'ldd' command to list shared library= dependencies
> for musl compiled executables?
>
> $ ldd postgresql-*.install/bin/postgres
> postgresql-9.4.1.install/bin/postgres: error while loading shar= ed
> libraries: /usr/lib/i386-linux-gnu/libc.so: invalid ELF header<= br>
make it a symlink to the libc/loader

$ readlink /usr/bin/ldd
../../lib/ld-musl-x86_64.so.1
$ ldd /usr/bin/python
=C2=A0 =C2=A0 =C2=A0 =C2=A0 /lib/ld-musl-x86_64.so.1 (0x72afa0d19000)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 libpython2.7.so.1.0 =3D> /usr/lib/libpython2= .7.so.1.0 (0x72afa0786000)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 libc.musl-x86_64.so.1 =3D> /lib/ld-musl-x86_= 64.so.1 (0x72afa0d19000)
--001a11c341e04c1a680512d7217b--