From owner-freebsd-perl@FreeBSD.ORG Tue Dec 9 17:02:30 2014 Return-Path: Delivered-To: perl@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8CB8689A; Tue, 9 Dec 2014 17:02:30 +0000 (UTC) Received: from prod2.absolight.net (mx3.absolight.net [IPv6:2a01:678:2:100::25]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "plouf.absolight.net", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B85E51; Tue, 9 Dec 2014 17:02:30 +0000 (UTC) Received: from prod2.absolight.net (localhost [127.0.0.1]) by prod2.absolight.net (Postfix) with ESMTP id 7C4CABDC2E; Tue, 9 Dec 2014 18:02:28 +0100 (CET) Received: from gw.in.absolight.net (gw-ecl.in.absolight.net [79.143.241.69]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "gw.in.absolight.net", Issuer "CA Cert Signing Authority" (not verified)) by prod2.absolight.net (Postfix) with ESMTPSA id 42C3BBDC1D; Tue, 9 Dec 2014 18:02:28 +0100 (CET) Received: from ogg.in.absolight.net (ogg.in.absolight.net [79.143.241.239]) by gw.in.absolight.net (Postfix) with ESMTP id 28E1760E8; Tue, 9 Dec 2014 18:02:25 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by ogg.in.absolight.net (Postfix) with ESMTP id F381C7959533; Tue, 9 Dec 2014 18:02:23 +0100 (CET) Date: Tue, 09 Dec 2014 18:02:23 +0100 From: Mathieu Arnold To: Chris H , ports@FreeBSD.org, perl@FreeBSD.org Subject: =?UTF-8?Q?Re:_Next_Perl_update,_and_plans_beyo_nd=E2=80=A6?= Message-ID: In-Reply-To: <7c516f31c076f6e921cda93641ccb236@ultimatedns.net> References: <20141209163038.GA49302@prod2.absolight.net> <7c516f31c076f6e921cda93641ccb236@ultimatedns.net> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2014 17:02:30 -0000 +--On 9 d=C3=A9cembre 2014 08:53:13 -0800 Chris H wrote: |> $ readelf -d |> /usr/local/lib/perl5/site_perl/mach/5.18/auto/DateTime/DateTime.so|grep |> perl $ |>=20 |> So what the patch[1] does, is force linking with libperl.so.x.yy. After |> the patch, a compiled Perl module will look like this: |>=20 |> $ readelf -d |> /usr/local/lib/perl5/site_perl/mach/5.18/auto/DateTime/DateTime.so | = grep |> perl 0x0000000000000001 (NEEDED) Shared library: |> [libperl.so.5.18] 0x000000000000000f (RPATH) Library = rpath: |> [/usr/local/lib/perl5/5.18/mach/CORE] 0x000000000000001d (RUNPATH) |> Library runpath: [/usr/local/lib/perl5/5.18/mach/CORE] $ | Apologies if I seem a bit obtuse. But as I read this, it appears | that Perl modules go from being text based (DateTime.pm) to becoming | compiled? | I *must* be missing something obvious. Huhu, yes, DateTime.so is already compiled: $ readelf -d /usr/local/lib/perl5/site_perl/mach/5.18/auto/DateTime/DateTime.so Dynamic section at offset 0x3d70 contains 21 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libc.so.7] 0x000000000000000c (INIT) 0x958 0x000000000000000d (FINI) 0x3878 0x0000000000000004 (HASH) 0x158 0x000000006ffffef5 (GNU_HASH) 0x218 0x0000000000000005 (STRTAB) 0x518 0x0000000000000006 (SYMTAB) 0x260 0x000000000000000a (STRSZ) 446 (bytes) 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000003 (PLTGOT) 0x203f28 0x0000000000000002 (PLTRELSZ) 384 (bytes) 0x0000000000000014 (PLTREL) REAL 0x0000000000000017 (JMPREL) 0x7d8 0x0000000000000007 (REAL) 0x730 0x0000000000000008 (RELASZ) 168 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x000000006ffffffe (VERNEED) 0x710 0x000000006fffffff (VERNEEDNUM) 1 0x000000006ffffff0 (VERSYM) 0x6d6 0x000000006ffffff9 (RELACOUNT) 2 0x0000000000000000 (NULL) 0x0 But it's not linked with libperl.so right now. --=20 Mathieu Arnold