Subject: adding support for BSD/OS for perl5 and libperl.so not found
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 10/03/2003 17:26:58
Building lang/perl5 under BSD/OS appears to work fine, but the
post-install fails with Error 16. This happens when the installation tries
to run /usr/pkg/bin/perl.

So I tried it manually and it said:
/usr/pkg/bin/perl: can't load library 'libperl.so'

$ ldd /usr/pkg/bin/perl5.6.1
        libperl.so => not found
        libdl.so => /shlib/libdl.so (0x48053000)
        libm.so => /shlib/libm.so.0.0 (0x48056000)
        libc.so.2 => /shlib/libc.so.2 (0x48067000)
        libgcc.so.1 => /shlib/libgcc.so.1 (0x4813d000)

The .so file exists:

$ file /usr/pkg/lib/perl5/5.6.1/i386-bsdos/CORE/libperl.so
/usr/pkg/lib/perl5/5.6.1/i386-bsdos/CORE/libperl.so: ELF 32-bit LSB shared
object, Intel 80386, version 1, not stripped
$ ls -l /usr/pkg/lib/perl5/5.6.1/i386-bsdos/CORE/libperl.so
-r-xr-xr-x  1 root  wheel  836551 Oct  3 20:04
/usr/pkg/lib/perl5/5.6.1/i386-bsdos/CORE/libperl.so

I see on Linux and NetBSD that it does not use libperl.so for running
perl.

Can someone look at the build log?
   http://www.reedmedia.net/misc/netbsd/bsdos-perl-build-log (96332 bytes)

Any ideas?

Thank you,

   Jeremy C. Reed
   http://www.isp-faq.com/