From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7323 Path: news.gmane.org!not-for-mail From: Nathan McSween Newsgroups: gmane.linux.lib.musl.general Subject: Re: perl native musl, ldd Date: Thu, 2 Apr 2015 14:08:08 -0700 Message-ID: References: <551D65EF.9030802@safe.ca> <20150402161837.GA6817@brightrain.aerifal.cx> <551D87C0.4010409@safe.ca> <20150402184810.GF4456@example.net> <551DA936.2070302@safe.ca> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bacc0f8883a580512c43ab8 X-Trace: ger.gmane.org 1428008912 21183 80.91.229.3 (2 Apr 2015 21:08:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Apr 2015 21:08:32 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7336-gllmg-musl=m.gmane.org@lists.openwall.com Thu Apr 02 23:08:22 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 1YdmLd-0003w7-St for gllmg-musl@m.gmane.org; Thu, 02 Apr 2015 23:08:22 +0200 Original-Received: (qmail 30120 invoked by uid 550); 2 Apr 2015 21:08:20 -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 30097 invoked from network); 2 Apr 2015 21:08:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=73Mu8GDgpPVxQiMfbVtGZoGfQtRryDRtiNcIF/Kh6Zg=; b=t4zA/AWqEd14L3Kqew8dl3iJAGygvVB0Vojt1kp/nktTjmRtXUGbDsB4Pcp38bO/nN eHR6ZADnKNHXDUUmD1TXxZm2/wY1z4mYXjVaVWhSN0MFmRwAIplZxRf+3xKfPg2DRkOQ 0vSONLzjUzbub41WmZoDB5My6M0JqHGmPCifPovr2bI2vqYXJQSN8UmF907CTYzG4uxj 1XbgmJ2F3xRhtiCgphFJ2kzgVLXkH6MVkLmuwPz2FwBGz72Ociz7RzZxSbW1ha1dMb52 wcS5E39pwvv+teokkVIJEWj12a7TYIzCTOCrTwovbAkU7wwmsyM8AfstHFovzcK2kkDj AtLQ== X-Received: by 10.194.59.199 with SMTP id b7mr98756447wjr.26.1428008888448; Thu, 02 Apr 2015 14:08:08 -0700 (PDT) In-Reply-To: <551DA936.2070302@safe.ca> Xref: news.gmane.org gmane.linux.lib.musl.general:7323 Archived-At: --047d7bacc0f8883a580512c43ab8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Analyse the source, if you can't do that analyse the binary. This is a big project though, assuming apis are the same (no runtime tests) a sufficiently useful package manager would be able to find packages that could say work with a partial compat api and those that could not. The alternative is to have the gentoo style 1000 monkeys. On Apr 2, 2015 1:41 PM, "Jean-Marc Pigeon" wrote: > On 04/02/2015 02:48 PM, u-wsnj@aetey.se wrote: > > On Thu, Apr 02, 2015 at 02:17:36PM -0400, Jean-Marc Pigeon wrote: > >>>> bash-4.3# ldd SysV.so > >>>> ldd (0x7f5d60dd2000) > >>>> libc.so =3D> ldd (0x7f5d60dd2000) > >>>> Error relocating SysV.so: Perl_croak: symbol not found > >>>> Error relocating SysV.so: Perl_sv_setiv: symbol not found > >>>> Error relocating SysV.so: Perl_sv_2pv_flags: symbol not found > >>>> Error relocating SysV.so: Perl_av_store: symbol not found > >>>> etc. > > > >> I am using a packager using ldd to establish > >> dependencies list. > > > > I would not say reporting the symbols is a bug, rather that the package= r > > is kind of relying on UB. Is there a specification of how a program > called > > "ldd" shall format its output and which data shall be present? > > > > Rune > > > Packager Relying on ldd UB, sure!. > Using ldd was the best way I found to list one package all > dependencies (looking at ELF file type ans searching for > required external components). > If you have a better way (more standard) to propose not using > ldd that will be a good thing. idea? > > > -- > > A bient=C3=B4t > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Jean-Marc Pigeon E-Mail: jmp@safe.ca > SAFE Inc. Phone: (514) 493-4280 > Clement, 'a kiss solution' to get rid of SPAM (at last) > Clement' Home base <"http://www.clement.safe.ca"> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > --047d7bacc0f8883a580512c43ab8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Analyse the source, if you can't do that analyse the bin= ary. This is a big project though, assuming apis are the same (no runtime t= ests) a sufficiently useful package manager would be able to find packages = that could say work with a partial compat api and those that could not. The= alternative is to have the gentoo style 1000 monkeys.

On Apr 2, 2015 1:41 PM, "Jean-Marc Pigeon&q= uot; <jmp@safe.ca> wrote:
On 04/02/2015 02:48 PM, u-wsnj@aetey.se wrote:
> On Thu, Apr 02, 2015 at 02:17:36PM -0400, Jean-Marc Pigeon wrote:
>>>> bash-4.3# ldd SysV.so
>>>>=C2=A0 =C2=A0 ldd (0x7f5d60dd2000)
>>>>=C2=A0 =C2=A0 libc.so =3D> ldd (0x7f5d60dd2000)
>>>> Error relocating SysV.so: Perl_croak: symbol not found
>>>> Error relocating SysV.so: Perl_sv_setiv: symbol not found<= br> >>>> Error relocating SysV.so: Perl_sv_2pv_flags: symbol not fo= und
>>>> Error relocating SysV.so: Perl_av_store: symbol not found<= br> >>>> etc.
>
>> I am using a packager using ldd to establish
>> dependencies list.
>
> I would not say reporting the symbols is a bug, rather that the packag= er
> is kind of relying on UB. Is there a specification of how a program ca= lled
> "ldd" shall format its output and which data shall be presen= t?
>
> Rune
>
Packager Relying on ldd UB, sure!.
Using ldd was the best way I found to list one package all
dependencies (looking at ELF file type ans searching for
required external components).
If you have a better way (more standard) to propose not using
ldd that will be a good thing. idea?


--

A bient=C3=B4t
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D
Jean-Marc Pigeon=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 E-Mail: jmp@safe.ca=
SAFE Inc.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Phone: (514) 493-4280
=C2=A0 Clement, 'a kiss solution' to get rid of SPAM (at last)
=C2=A0 =C2=A0 =C2=A0Clement' Home base <"http://www.clement.safe.ca">=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D

--047d7bacc0f8883a580512c43ab8--