mailing list of musl libc
 help / color / mirror / code / Atom feed
* perl native musl, ldd
@ 2015-04-02 15:53 Jean-Marc Pigeon
  2015-04-02 16:18 ` Rich Felker
  0 siblings, 1 reply; 13+ messages in thread
From: Jean-Marc Pigeon @ 2015-04-02 15:53 UTC (permalink / raw)
  To: musl

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

Hello,


I compiled perl (native, under gcc-musl) and I have
a non expected result with ldd.

Example: (with a musl system tree chroot)
bash=4/3# cd /usr/lib/perl5/5.20.2/auto/IPC/SysV/
bash-4.3# ldd SysV.so
	ldd (0x7f5d60dd2000)
	libc.so => 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.

While with glibc (with a glibc system tree chroot)
bash-4.3# cd /usr/lib/perl5/5.20.2/auto/IPC/SysV
bash-4.3# ldd SysV.so
	linux-vdso.so.1 (0x00007fff09556000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f25be856000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f25bee00000)

I am puzzled about those "Error relocating"
native (within musl) perl make didn't return error,
so I am assuming everything went well.

Advices...? hints? do we have a real problem
with musl ldd or I goofed somehow?

;------------------------
Note:
bash-4.3# readelf -l /usr/bin/perl | grep program
There are 7 program headers, starting at offset 64
      [Requesting program interpreter: /lib/ld-musl-x86_64.so.1]

bash-4.3# /usr/bin/perl -v

This is perl 5, version 20, subversion 2 (v5.20.2) built for x86_64-linux

Copyright 1987-2015, Larry Wall

Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

bash-4.3# ls -ails /usr/bin/ldd
4325457 0 lrwxrwxrwx 1 root root 29 Apr  2 15:11 /usr/bin/ldd ->
../../lib/ld-musl-x86_64.so.1
;-------------------------

Many 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">
===========================================================


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

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

end of thread, other threads:[~2015-04-03  2:15 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-02 15:53 perl native musl, ldd Jean-Marc Pigeon
2015-04-02 16:18 ` Rich Felker
2015-04-02 18:17   ` Jean-Marc Pigeon
2015-04-02 18:48     ` u-wsnj
2015-04-02 20:40       ` Jean-Marc Pigeon
2015-04-02 20:48         ` Laurent Bercot
2015-04-02 21:08         ` Nathan McSween
2015-04-02 21:09         ` u-wsnj
2015-04-02 21:26         ` Rich Felker
2015-04-02 21:34         ` Szabolcs Nagy
2015-04-03  0:57           ` Jean-Marc Pigeon
2015-04-03  1:18             ` bug? in musl libc failed to preserve ownership for Jean-Marc Pigeon
2015-04-03  2:15               ` Rich Felker

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