mailing list of musl libc
 help / color / mirror / code / Atom feed
* musl ldd?
@ 2015-04-03 14:16 John Mudd
  2015-04-03 14:55 ` Szabolcs Nagy
  0 siblings, 1 reply; 10+ messages in thread
From: John Mudd @ 2015-04-03 14:16 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 285 bytes --]

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
$

John

[-- Attachment #2: Type: text/html, Size: 394 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: musl ldd?
  2015-04-03 14:16 musl ldd? John Mudd
@ 2015-04-03 14:55 ` Szabolcs Nagy
  2015-04-03 19:41   ` Wermut
  0 siblings, 1 reply; 10+ messages in thread
From: Szabolcs Nagy @ 2015-04-03 14:55 UTC (permalink / raw)
  To: musl

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: musl ldd?
  2015-04-03 14:55 ` Szabolcs Nagy
@ 2015-04-03 19:41   ` Wermut
  2015-04-03 19:58     ` Rich Felker
  0 siblings, 1 reply; 10+ messages in thread
From: Wermut @ 2015-04-03 19:41 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 974 bytes --]

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 <nsz@port70.net> wrote:

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

[-- Attachment #2: Type: text/html, Size: 1374 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: musl ldd?
  2015-04-03 19:41   ` Wermut
@ 2015-04-03 19:58     ` Rich Felker
  2015-04-04 23:40       ` Matias A. Fonzo
  0 siblings, 1 reply; 10+ messages in thread
From: Rich Felker @ 2015-04-03 19:58 UTC (permalink / raw)
  To: musl

On Fri, Apr 03, 2015 at 07:41:08PM +0000, Wermut wrote:
> 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

Or you can invoke it as:

/lib/ld-musl-x86_64.so.1 --list a.out

This form is the nicest in many ways since it does not depend on
argv[0].

Rich


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: musl ldd?
  2015-04-03 19:58     ` Rich Felker
@ 2015-04-04 23:40       ` Matias A. Fonzo
  2015-04-13  8:00         ` musl, netdb.h rcmd inetutils? Jean-Marc Pigeon
  0 siblings, 1 reply; 10+ messages in thread
From: Matias A. Fonzo @ 2015-04-04 23:40 UTC (permalink / raw)
  To: musl

Hi there,

There's a special reason why "[libc_name-]ldd -> libc/loader" is not
generated when musl is configured/installed?.

El Fri, 3 Apr 2015 15:58:00 -0400
Rich Felker <dalias@libc.org> escribió:
> On Fri, Apr 03, 2015 at 07:41:08PM +0000, Wermut wrote:
> > 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
> 
> Or you can invoke it as:
> 
> /lib/ld-musl-x86_64.so.1 --list a.out
> 
> This form is the nicest in many ways since it does not depend on
> argv[0].
> 
> Rich



^ permalink raw reply	[flat|nested] 10+ messages in thread

* musl, netdb.h rcmd inetutils?
  2015-04-04 23:40       ` Matias A. Fonzo
@ 2015-04-13  8:00         ` Jean-Marc Pigeon
  2015-04-13  9:52           ` Justin Cormack
  2015-04-13 13:44           ` Rich Felker
  0 siblings, 2 replies; 10+ messages in thread
From: Jean-Marc Pigeon @ 2015-04-13  8:00 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 1760 bytes --]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,


Trying to compile inetutils within native musl.

Trouble with src/rpc.c using function "rcmd"

Within glibc, rcmd is defined inside
/usr/include/netdb.h.

I was not able to locate rcmd (or an alternative)
within musl library.

Could someone suggest a way to bypass this problem?

(rcmd is used twithin rpc,
 rpc - library routines for remote procedure calls)

Thanks for help.


- -- 

A bientôt
===========================================================
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">
===========================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJVK3eyAAoJEAtgwJ4bBQU5QOIP/RrdaYHYNZmXHTF919ra5Gju
D1QBi/ZMlECR80DzD/FIVKiaqMZehN+JTAPpFpbvjl2ueuLnTXPPLWG8kzle8t/M
SyvjQ1RlS/Kc4fP+SG+89AjrGM+yyht4cMrxA1ib452JESP/z8EJMwSjX0zNOLYR
6tz++IQ/cWqAoHlXnpIqjImtapsIqAVtqeoDcMgEDdX1G7WT5nIQCbv6Q9yOAjAs
H19w1YPoHwfWdD5+3craHinHwVWdkdyEvjI7yE2xZHGlxKn7/RvipX8gIPB/eSu/
7ENEoCLZbB0p4Pc0RCANN9cwLf44m/gwlmVADblZgnTayXH8UFMDgAqDq0C913+a
696SPzMupjh+o9vXHnrMI683IRHmJq/AbDGlzn7r5tVpsYlfhn1IamkBKP/3soEs
yP0FOIdcLQEvO09CEbGMRkBc+j60qbbXuecqByjjUz4ojspm06XtV5hqnJdvlwo6
tHElsQMA7lnGAyZKm++AJIkLbNp2732I/rwBxO9e/N2Qb1DlmoAmKD7AfYdTjk3D
AOUDTgQpoiBWeO4gkIbx6JzM5T3oL6CxF/1YtTJ3PkEbnJd6AKQWkE4VwEgjUFV/
VWwQv2991o05/jkH40xNK6wHfNC5DktGLvIPJRFUxD32pZW5K9e0XHfNa2BmjKZ/
lAr6OePSbdV5UiG79IfJ
=HzV7
-----END PGP SIGNATURE-----


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4242 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: musl, netdb.h rcmd inetutils?
  2015-04-13  8:00         ` musl, netdb.h rcmd inetutils? Jean-Marc Pigeon
@ 2015-04-13  9:52           ` Justin Cormack
  2015-04-13 13:28             ` Jean-Marc Pigeon
  2015-04-13 13:44           ` Rich Felker
  1 sibling, 1 reply; 10+ messages in thread
From: Justin Cormack @ 2015-04-13  9:52 UTC (permalink / raw)
  To: musl

On 13 April 2015 at 09:00, Jean-Marc Pigeon <jmp@safe.ca> wrote:
> Trying to compile inetutils within native musl.
>
> Trouble with src/rpc.c using function "rcmd"
>
> Within glibc, rcmd is defined inside
> /usr/include/netdb.h.
>
> I was not able to locate rcmd (or an alternative)
> within musl library.
>
> Could someone suggest a way to bypass this problem?
>
> (rcmd is used twithin rpc,
>  rpc - library routines for remote procedure calls)

rcmd is obsolete - it is the unencrypted insecure "predecessor" to
ssh. There must be an option to compile inetutils without it.

Justin


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: musl, netdb.h rcmd inetutils?
  2015-04-13  9:52           ` Justin Cormack
@ 2015-04-13 13:28             ` Jean-Marc Pigeon
  0 siblings, 0 replies; 10+ messages in thread
From: Jean-Marc Pigeon @ 2015-04-13 13:28 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 2202 bytes --]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On 04/13/2015 05:52 AM, Justin Cormack wrote:
> On 13 April 2015 at 09:00, Jean-Marc Pigeon <jmp@safe.ca> wrote:
>> Trying to compile inetutils within native musl.
>> 
>> Trouble with src/rpc.c using function "rcmd"
>> 
>> Within glibc, rcmd is defined inside /usr/include/netdb.h.
>> 
>> I was not able to locate rcmd (or an alternative) within musl
>> library.
>> 
>> Could someone suggest a way to bypass this problem?
>> 
>> (rcmd is used twithin rpc, rpc - library routines for remote
>> procedure calls)
> 
> rcmd is obsolete - it is the unencrypted insecure "predecessor" to 
> ssh. There must be an option to compile inetutils without it.
> 
> Justin

Good point!, forgot to double check the configure option...
configure --disable-rlogin --disable-rcp  etc...
compiling fine now...

Many thanks.

> 


- -- 

A bientôt
===========================================================
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">
===========================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJVK8RtAAoJEAtgwJ4bBQU5alAP/iorkV50WoNKEV87exgZRzxy
aSXgde1fgR4xc7wbwmncgdVFcM0f7QARKjejuUNDeRgYb/GUrcUEvQ5jO/ur5t51
UezGCBGUcKzsn8gN6qfgO/VTJuGMjwW+suQhO5zXhUHDcRM/z23/GewZzKD7vdXd
GVNkOj58qZfy0zSE6nfDhwZKn4nBVdm1ZpHiPCLDJRxGQP1aqmhZv6AfBrngcIrz
6VEWHOj4KxUYUgzlqbwH8M16ixcpBaelLpv0WLLw3fXAO8+HpjlSSDij6XLcPBG4
OLpVYmPEMxZzwvU04uNl0SPzSy4hDVlIrKYlVXQj4F5r82t8utFbdsbxTdbDmYva
87iyibNRK87itzETQV4p2RzQhYqUs68cTsIDZXD7IlnWHe6Erert2tgGQOXx7Gn0
zC/+dWlBW/A4WcWRcuBijHwwaetNAlVa8+OLKaG8cobPmbMrULiOTt1VsSSho+yM
X81UABeLnHkKzdHXu0RmthFsEquCS81m1tAvRBKvrTvpN28Br2oAyg0ME4/3hVcc
Qj0UvajoNhe7B2u/R1L4RlmuP4RCFR0PKktFFho9vMt2ZeULQcOeU83YOoDrkHPx
J4mm8ggaUVnw5rftyZsfjPNnH+BP7rBNPkyV4dk4RB2UkflRIsuQAWmQG5dA3Gzq
CYgq8KGTf1l9t3fSHoX3
=lTSi
-----END PGP SIGNATURE-----


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4242 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: musl, netdb.h rcmd inetutils?
  2015-04-13  8:00         ` musl, netdb.h rcmd inetutils? Jean-Marc Pigeon
  2015-04-13  9:52           ` Justin Cormack
@ 2015-04-13 13:44           ` Rich Felker
  2015-04-13 14:09             ` Jean-Marc Pigeon
  1 sibling, 1 reply; 10+ messages in thread
From: Rich Felker @ 2015-04-13 13:44 UTC (permalink / raw)
  To: musl

On Mon, Apr 13, 2015 at 04:00:50AM -0400, Jean-Marc Pigeon wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hello,
> 
> 
> Trying to compile inetutils within native musl.
> 
> Trouble with src/rpc.c using function "rcmd"
> 
> Within glibc, rcmd is defined inside
> /usr/include/netdb.h.
> 
> I was not able to locate rcmd (or an alternative)
> within musl library.
> 
> Could someone suggest a way to bypass this problem?
> 
> (rcmd is used twithin rpc,
>  rpc - library routines for remote procedure calls)
> 
> Thanks for help.

As an aside, could you please refrain from replying to an existing
thread with a new question? This is usually referred to as hijacking
threads and it makes it much harder to manage email. I suspect this is
unintentional (lots of 'modern' mail software gives a false impression
that changing the subject line starts a new thread) but I just want to
make you aware of it.

Rich


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: musl, netdb.h rcmd inetutils?
  2015-04-13 13:44           ` Rich Felker
@ 2015-04-13 14:09             ` Jean-Marc Pigeon
  0 siblings, 0 replies; 10+ messages in thread
From: Jean-Marc Pigeon @ 2015-04-13 14:09 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 2494 bytes --]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/13/2015 09:44 AM, Rich Felker wrote:
> On Mon, Apr 13, 2015 at 04:00:50AM -0400, Jean-Marc Pigeon wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>> 
>> Hello,
>> 
>> 
>> Trying to compile inetutils within native musl.
>> 
>> Trouble with src/rpc.c using function "rcmd"
>> 
>> Within glibc, rcmd is defined inside /usr/include/netdb.h.
>> 
>> I was not able to locate rcmd (or an alternative) within musl
>> library.
>> 
>> Could someone suggest a way to bypass this problem?
>> 
>> (rcmd is used twithin rpc, rpc - library routines for remote
>> procedure calls)
>> 
>> Thanks for help.
> 
> As an aside, could you please refrain from replying to an existing 
> thread with a new question? This is usually referred to as
> hijacking threads and it makes it much harder to manage email. I
> suspect this is unintentional (lots of 'modern' mail software gives
> a false impression that changing the subject line starts a new
> thread) but I just want to make you aware of it.
> 
> Rich
> 
Sorry, was unintentional, I'll be more careful next time, NOT
taking previous email, changing subject...

- -- 

A bientôt
===========================================================
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">
===========================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJVK84FAAoJEAtgwJ4bBQU5G/4QAJvpM1xbo6IycY83jnt4cnKe
rZiPyU1CThOAqxDMpTvLbuzE3qFJLG6KdO2rfOeygJmXx+AOfgxgAj8L1dz97uQf
9Evw5O/2j9nzg+8/y1oCmCfqDIP8jSk1BuRAHkAfeZRYzQENtT/Jq8vSn02zdVla
trrKyrr+Gf01KARh1UfVB8Y3qyU6CN/vHsBvLFCqMpQskgHyXpVtEwWp1MaN1kqK
7DqgW+gd7XD6O5b2Q5ffz/Z7fhPmnRHJyI8q4lzsQJOnwSpxFUlZ0P4aZxkXJhVV
mb8H5bDIQC8Kn9o+yB7CLNAuGUGeXZnwUgdG9kGKqFzR30sR0bfVPz7FE0TuHZiA
aXcsDkXJgB1/7jbeSqbaVIVAn3LxWwIPL3pNIb0slm5VoksNKjWPQZX3cCNGTaKe
AgSR/LKVoMYk8PKIQTrWPtzty+PuCp+FhMMIPQ6g0yyUIMLdsKYjsJtNl8uI0t6S
1Jcwt7bf4kucAVKcV3fUsvdO4ZmdBQvRTd+Rr030i7bxcgBemtCZAbd5fMTnhEv6
sH8zZQ4RVApdrsrT1t5SAKdIHoSK0FyZHoLoby5qKRZpIw2tXPF+IUwGYdYTYxnB
CgwS+6rrCuCvSfKQXfJcRB1oYnEAwa6KdBciYWvuMPBBZt1uXO7rdXkDEjpSRvwv
0mMgs91ECljM0HhUdrZP
=3xBz
-----END PGP SIGNATURE-----


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4242 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-04-13 14:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-03 14:16 musl ldd? John Mudd
2015-04-03 14:55 ` Szabolcs Nagy
2015-04-03 19:41   ` Wermut
2015-04-03 19:58     ` Rich Felker
2015-04-04 23:40       ` Matias A. Fonzo
2015-04-13  8:00         ` musl, netdb.h rcmd inetutils? Jean-Marc Pigeon
2015-04-13  9:52           ` Justin Cormack
2015-04-13 13:28             ` Jean-Marc Pigeon
2015-04-13 13:44           ` Rich Felker
2015-04-13 14:09             ` Jean-Marc Pigeon

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).