Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu, 02 Apr 2015 11:53:19 -0400
From: Jean-Marc Pigeon <>
Subject: perl native musl, ldd


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
	ldd (0x7f5d60dd2000) => ldd (0x7f5d60dd2000)
Error relocating Perl_croak: symbol not found
Error relocating Perl_sv_setiv: symbol not found
Error relocating Perl_sv_2pv_flags: symbol not found
Error relocating Perl_av_store: symbol not found

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 (0x00007fff09556000) => /lib64/ (0x00007f25be856000)
	/lib64/ (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?

bash-4.3# readelf -l /usr/bin/perl | grep program
There are 7 program headers, starting at offset 64
      [Requesting program interpreter: /lib/]

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, 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 ->

Many Thanks for help.

A bientôt
Jean-Marc Pigeon                        E-Mail:
SAFE Inc.                             Phone: (514) 493-4280
  Clement, 'a kiss solution' to get rid of SPAM (at last)
     Clement' Home base <"">

Download attachment "smime.p7s" of type "application/pkcs7-signature" (3903 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.