Subject: pkg/24075: lang/perl5 Shared object "libperl.so" not found
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <Kai.Puolamaki@iki.fi>
List: netbsd-bugs
Date: 01/13/2004 07:11:16
>Number:         24075
>Category:       pkg
>Synopsis:       lang/perl5 Shared object "libperl.so" not found
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 13 07:12:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Kai Puolamaki
>Release:        1.6.1
>Organization:
-
>Environment:
NetBSD winnie.localdomain 1.6.1 NetBSD 1.6.1 (WINNIE) #0: Thu Oct  9 21:55:34 EEST 2003     root@winnie.localdomain:/usr/src/sys/arch/i386/compile/WINNIE i386
>Description:
I tried rebuilding some software, including perl-5.6.1nb9, from
current pkgsrc.

perl-5.6.1nb9 builds fine, but the Perl module Dumper.so does not 
work due to a linker problem:

kaip@winnie ~ % ldd /usr/pkg/lib/perl5/5.6.1/i386-netbsd/auto/Data/Dumper/Dumper.so
/usr/pkg/lib/perl5/5.6.1/i386-netbsd/auto/Data/Dumper/Dumper.so:
         -lperl => not found

libperl.so is in /usr/pkg/lib/perl5/5.6.1/i386-netbsd/CORE,
which is not found by the linker. E.g. setting LD_LIBRARY_PATH
helps to find the library:

kaip@winnie ~ % env LD_LIBRARY_PATH=/usr/pkg/lib/perl5/5.6.1/i386-netbsd/CORE ldd /usr/pkg/lib/perl5/5.6.1/i386-netbsd/auto/Data/Dumper/Dumper.so
/usr/pkg/lib/perl5/5.6.1/i386-netbsd/auto/Data/Dumper/Dumper.so:
         -lperl => /usr/pkg/lib/perl5/5.6.1/i386-netbsd/CORE/libperl.so

Because of this perl problem, the build of e.g. devel/autoconf
(and thus many other packages) fails:

[clip]
Can't load '/usr/pkg/lib/perl5/5.6.1/i386-netbsd/auto/Data/Dumper/Dumper.so' for module Data::Dumper: Shared object "libperl.so" not found at /usr/pkg/lib/perl5/5.6.1/i386-netbsd/XSLoader.pm line 75.
 at /usr/pkg/lib/perl5/5.6.1/i386-netbsd/Data/Dumper.pm line 27
Compilation failed in require at /usr/pkgsrc/devel/autoconf/work.i386/autoconf-2.59/tests/../lib/Autom4te/C4che.pm line 35.
BEGIN failed--compilation aborted at /usr/pkgsrc/devel/autoconf/work.i386/autoconf-2.59/tests/../lib/Autom4te/C4che.pm line 35.
Compilation failed in require at /usr/pkgsrc/devel/autoconf/work.i386/autoconf-2.59/tests/.././bin/autom4te line 39.
BEGIN failed--compilation aborted at /usr/pkgsrc/devel/autoconf/work.i386/autoconf-2.59/tests/.././bin/autom4te line 39.
*** Error code 255
[clip]



>How-To-Repeat:
See above.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: