1
perl Makefile.PL MP_USE_STATIC=1 \
MP_AP_PREFIX=/tmp/https2.2.34 \
MP_AP_CONFIGURE=“—with-mpm=prefork \
—prefix=/tmp/apache-2.2.34 \
-enable-modules=‘ssl rewrite info alias auth_basic usertrack so’”

ERROR from evaluation of /tmp/mod_perl-2.0.10/Apache-Reload/Makefile.PL: Use of uninitialized value in substitution (s///) at Apache-Test/lib/TestRun.pm line 1100.

Os: sun Os 5.10 sun4v sparc SUNW,T5240
cc - /bin/cc
make - /usr/CORE/bin/make - GNU make 3.80
Perl - /bin/perl - v5.8.4
Apache - 2.2.34
Mod_perl - 2.0.10
Itsme
  • 59
  • 6

1 Answers1

0

Looks like the eval fails because of fatal warnings from the undef value.

Can you try this patch in Apache-Test at loc 1100 and report back the output?

Index: lib/Apache/TestRun.pm

my %args = @Apache::TestMM::Argv;
while (my($k, $v) = each %args) {
  unless (defined $v) {
      die "key $k has no value";
  }
  $v =~ s/\|/\\|/g;
  $body .= "\n\$Apache::TestConfig::Argv{'$k'} = q|$v|;\n";
}

If it shows key apxs has no value, then it means either apxs module is not installed or script is not able to find the path where apxs module is installed.

To check if apxs module is installed or not, run following command

which apxs --> shows path where it is installed

If above command doesn't show anything, it means it is not installed, so you can installed it by running following command

sudo apt-get install apache2-dev

Now run which apxs command again and check where it is installed, most probably it will show /usr/bin/apxs

Now run Makefile.PL with addition of following line

MP_APXS=/usr/bin/apxs

So command should be like this

perl Makefile.PL MP_APXS=/usr/bin/apxs

Now it should go properly without any interruption.

Prashant Pokhriyal
  • 3,727
  • 4
  • 28
  • 40