On Wed, 30 Aug 2000, erich oliphant wrote:
> Hi,
> I have a script that bombs under modperl when it tries to 'use POSIX'. I
> get the same message when I try to preload it in the httpd.conf. Here's the
> error:
> --
> [Tue Aug 29 15:59:21 2000] [error] Can't load
> '/usr/local/lib/perl5/5.6.0/sun4-solaris/auto/POSIX/POSIX.so' for module
> POSIX: ld.so.1: httpd: fatal: relocation error: file
> /usr/local/lib/perl5/5.6.0/sun4-solaris/auto/POSIX/POSIX.so:
> symbolPL_stack_sp: referenced symbol not found at
can you post the output of the script below, run like so:
% perl perlnm.pl stack_sp POSIX
and your 'perl -V' too.
use Config;
my $sym = shift;
my @modules;
for (@ARGV) {
my $so;
for my $path (@INC) {
if (-e ($so = "$path/auto/$_/$_.so")) {
push @modules, $so;
last;
}
}
}
for ("$Config{archlibexp}/CORE/libperl.a",
"$Config{archlibexp}/CORE/libperl.so",
$Config{perlpath},
@modules)
{
next unless -e $_;
my $cmd = "nm $_ | grep $sym";
print "$cmd\n";
system $cmd;
}