I am trying to compile mod_perl-2.0.2 with httpd-2.0.55. These are the compilation options I used for mod_perl:

  # perl Makefile.PL MP_APXS=/path/to/bin/apxs

When finished compiling and installing, this is the error message I get when attempting to start httpd:

  Syntax error on line 235 of /path/to/etc/apache/httpd.conf:
  Cannot load /path/to/modules/mod_perl.so into server:
    /path/to/modules/mod_perl.so: undefined symbol: perl_get_cv

Of course, line 235 of httpd.conf loads the mod_perl module:

  LoadModule perl_module        modules/mod_perl.so

When I run ldd on mod_perl.so, I get the following dynamic libraries:

  # ldd /path/to/modules/mod_perl.so
libperl.so => /path/to/lib/perl5/5.6.1/i686-linux/CORE/libperl.so (0x002e8000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x00e89000)
        libdl.so.2 => /lib/libdl.so.2 (0x00413000)
        libm.so.6 => /lib/i686/libm.so.6 (0x00888000)
        libc.so.6 => /lib/i686/libc.so.6 (0x00654000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x00f68000)
        libutil.so.1 => /lib/libutil.so.1 (0x00111000)
        /lib/ld-linux.so.2 (0x00a1e000)

And then, when I run nm on libperl.so, I get the following symbol:

  # nm /path/to/lib/perl5/5.6.1/i686-linux/CORE/libperl.so \
    | grep -i perl_get_cv
  0001cbe4 T Perl_get_cv

So, there seems to be a discrepancy between the expected case in the perl library. I noticed other people have encountered the same problem on this mailing list and the proposed solution was to add the EVERYTHING=1 argument when configuring mod_perl. I have tried adding this argument but to no avail. Can anyone propose another solution?

--
Marc Tardif
Sitepak

Reply via email to