You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Faith Bazley <fa...@gmail.com> on 2012/09/10 14:53:52 UTC

Error on install of mod_perl2: Cannot load mod_perl.so into server: Symbol not found: _modperl_handler_name

Hi,

I'm having trouble installing mod_perl-2.0.7 and for the life of me I can't
get it to work. I have had no problems installing other modules.

>From the source directory /usr/local/src, unpack the mod_perl-2.0.7 source,
enter the directory and run the following

perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs
then "make"
then "make test", which is where I am getting the error below. Some kind of
syntax error. Please help.


/usr/local/apache2/bin/httpd  -d /usr/local/src/mod_perl-2.0.7/t -f
/usr/local/src/mod_perl-2.0.7/t/conf/httpd.conf -D APACHE2
using Apache/2.2.22 (prefork MPM)

waiting 120 seconds for server to start: .[Mon Sep 10 20:16:25 2012] [warn]
module apreq_module is already loaded, skipping
*httpd: Syntax error on line 22 of
/usr/local/src/mod_perl-2.0.7/t/conf/httpd.conf: Cannot load
/usr/local/src/mod_perl-2.0.7/src/modules/perl/mod_perl.so into server:
dlopen(/usr/local/src/mod_perl-2.0.7/src/modules/perl/mod_perl.so, 10):
Symbol not found: _modperl_handler_name\n  Referenced from:
/usr/local/src/mod_perl-2.0.7/src/modules/perl/mod_perl.so\n  Expected in:
dynamic lookup\n*
.........................................................................................................................
waiting 120 seconds for server to start: not ok
[  error] giving up after 121 secs. If you think that your system
is slow or overloaded try again with a longer timeout value.
by setting the environment variable APACHE_TEST_STARTUP_TIMEOUT
to a high value (e.g. 420) and repeat the last command.

[  error] server failed to start! (t/logs/error_log wasn't created, start
the server in the debug mode)
+--------------------------------------------------------+
| Please file a bug report: http://perl.apache.org/bugs/ |
+--------------------------------------------------------+
make: *** [run_tests] Error 1



Below is the bug report

-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:

  [DESCRIBE THE PROBLEM HERE]

2. Used Components and their Configuration:

*** mod_perl version 2.000007

*** using /usr/local/src/mod_perl-2.0.7/lib/Apache2/BuildConfig.pm

*** Makefile.PL options:
  MP_APR_LIB     => aprext
  MP_APXS        => /usr/local/apache2/bin/apxs
  MP_COMPAT_1X   => 1
  MP_GENERATE_XS => 1
  MP_LIBNAME     => mod_perl
  MP_USE_DSO     => 1


*** /usr/local/apache2/bin/httpd -V
Server version: Apache/2.2.22 (Unix)
Server built:   Sep 10 2012 19:15:49
Server's Module Magic Number: 20051115:30
Server loaded:  APR 1.4.2, APR-Util 1.3.10
Compiled using: APR 1.4.2, APR-Util 1.3.10
Architecture:   64-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_FLOCK_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/usr/local/apache2"
 -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

*** /usr/bin/otool -L /usr/local/apache2/bin/httpd
/usr/local/apache2/bin/httpd:
/usr/lib/libaprutil-1.0.dylib (compatibility version 4.0.0, current version
4.10.0)
 /usr/lib/libexpat.1.dylib (compatibility version 7.0.0, current version
7.2.0)
/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version
7.0.0)
 /usr/lib/libpq.5.dylib (compatibility version 5.0.0, current version 5.3.0)
/usr/lib/libsqlite3.dylib (compatibility version 9.0.0, current version
9.6.0)
 /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP (compatibility
version 1.0.0, current version 2.2.0)
/usr/lib/libapr-1.0.dylib (compatibility version 5.0.0, current version
5.2.0)
 /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
159.1.0)


*** (apr|apu)-config linking info

 -L/usr/lib -laprutil-1 -lldap -llber -llber    -lexpat -liconv -L/usr/lib
-lpq    -lsqlite3        -lldap -llber -llber
 -L/usr/lib -lapr-1 -lpthread



*** /usr/local/bin/perl -V
Summary of my perl5 (revision 5 version 16 subversion 1) configuration:

  Platform:
    osname=darwin, osvers=11.4.0, archname=darwin-2level
    uname='darwin faiths-macbook-pro.local 11.4.0 darwin kernel version
11.4.0: mon apr 9 19:32:15 pdt 2012; root:xnu-1699.26.8~1release_x86_64
x86_64 '
    config_args='-de'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include',
    optimize='-O3',
    cppflags='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.2.1 Compatible Apple Clang 4.0
((tags/Apple/clang-421.0.60))', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -fstack-protector
-L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib
    libs=-ldbm -ldl -lm -lutil -lc
    perllibs=-ldl -lm -lutil -lc
    libc=, so=dylib, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup
-L/usr/local/lib -fstack-protector'


Characteristics of this binary (from libperl):
  Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
                        PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT_ALL
                        USE_64_BIT_INT USE_LARGE_FILES USE_LOCALE
                        USE_LOCALE_COLLATE USE_LOCALE_CTYPE
                        USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
  Built under darwin
  Compiled at Sep 10 2012 19:53:28
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /usr/local/lib/perl5/site_perl/5.16.1/darwin-2level
    /usr/local/lib/perl5/site_perl/5.16.1
    /usr/local/lib/perl5/5.16.1/darwin-2level
    /usr/local/lib/perl5/5.16.1
    .

*** Packages of interest status:

Apache2            : -
Apache2::Request   : 2.12
CGI                : 3.59
ExtUtils::MakeMaker: 6.63_02
LWP                : 6.04
mod_perl           : -
mod_perl2          : 2.000007


3. This is the core dump trace: (if you get a core dump):

  [CORE TRACE COMES HERE]

This report was generated by /usr/local/bin/mp2bug on Mon Sep 10 12:35:34
2012 GMT.

-------------8<---------- End Bug Report --------------8<----------

Re: Error on install of mod_perl2: Cannot load mod_perl.so into server: Symbol not found: _modperl_handler_name

Posted by pangj <pa...@riseup.net>.
what's the OS? On a debian/Ubuntu Linux you don't have the need  to 
compile modperl from the souce, there are the deb packages, just apt-get 
install them from online sources.

于 12-9-10 下午8:53, Faith Bazley 写道:
>
> I'm having trouble installing mod_perl-2.0.7 and for the life of me I 
> can't get it to work. I have had no problems installing other modules.


Re: Error on install of mod_perl2: Cannot load mod_perl.so into server: Symbol not found: _modperl_handler_name

Posted by Doug Hunt <dh...@ucar.edu>.
Hi Andy:  I fiddled with this for a long time before getting it right.

Finally I ended up using a dynamic build with Apache 2.2.22, including the 
APR from that Apache.

With perl 5.16.1 already installed, I did this for the Apache compile:

# unpack apache 2.2.22, then:
CFLAGS='-fPIC' ./configure --with-mpm=prefork --with-included-apr
make
make install

and then for mod_perl 2.0.8, I did this:

# unpack mod_perl 2.0.8, then:
perl Makefile.PL MP_APXS=/full/path/to/apache/bin/apxs
make
make test 
make install

Good luck!

--Doug

dhunt@ucar.edu
Software Engineer
UCAR - COSMIC, Tel. (303) 497-2611

On Mon, 10 Sep 2012, Andy Colson wrote:

> On 9/10/2012 10:16 AM, Doug Hunt wrote:
>> Hi Andy:  Right.  We were working with the mod_perl from subversion.
>> 
>> --Doug
>> 
>
> Humm.. no, that didn't quite work.
>
> make test gives me a bunch of stuff like:
>
> ulimit -c unlimited; /usr/bin/perl5.16.1 /pub/apps/mod_perl-2.0/t/TEST 
> -bugreport -verbose=0
> Not a CODE reference at /usr/lib/perl5/DynaLoader.pm line 213.
> END failed--call queue aborted at 
> /pub/apps/mod_perl-2.0/blib/lib/ModPerl/Const.pm line 213.
> Compilation failed in require at 
> /pub/apps/mod_perl-2.0/blib/lib/Apache2/Const.pm line 18.
> BEGIN failed--compilation aborted at 
> /pub/apps/mod_perl-2.0/blib/lib/Apache2/Const.pm line 18.
> Compilation failed in require at 
> /pub/apps/mod_perl-2.0/t/response/TestApache/subprocess.pm line 13.
>
>
> And then:
>
> /usr/sbin/httpd  -d /pub/apps/mod_perl-2.0/t -f 
> /pub/apps/mod_perl-2.0/t/conf/httpd.conf -D APACHE2 -D PERL_USEITHREADS
> using Apache/2.2.22 (prefork MPM)
>
> waiting 120 seconds for server to start: .[Mon Sep 10 10:31:20 2012] [warn] 
> PassEnv variable LD_LIBRARY_PATH was undefined
> [  error] oh darn, server dumped core
> [  error] for stacktrace, run: gdb /usr/sbin/httpd -core 
> /pub/apps/mod_perl-2.0/core
> [  error]
> server has died with status 255 (t/logs/error_log wasn't created, start the 
> server in the debug mode)
> [  error] oh shucks, server dumped core
> [  error] for stacktrace, run: gdb /usr/sbin/httpd -core 
> /pub/apps/mod_perl-2.0/core
> sh: line 1: 23479 Terminated              /usr/bin/perl5.16.1 
> /pub/apps/mod_perl-2.0/t/TEST -bugreport -verbose=0
> make: *** [run_tests] Error 143
>
>
>
> But..  I had to down grade my apache from 2.4 to 2.2.22, but I left the apr 
> alone.  I have apr-1.4.6, and apr-util-1.4.1.  (I'm running Slackware 14). 
> Think the apr version would make a difference?
>
> -Andy
>

Re: Error on install of mod_perl2: Cannot load mod_perl.so into server: Symbol not found: _modperl_handler_name

Posted by Andy Colson <an...@squeakycode.net>.
On 9/10/2012 10:16 AM, Doug Hunt wrote:
> Hi Andy:  Right.  We were working with the mod_perl from subversion.
>
> --Doug
>

Humm.. no, that didn't quite work.

make test gives me a bunch of stuff like:

ulimit -c unlimited; /usr/bin/perl5.16.1 /pub/apps/mod_perl-2.0/t/TEST 
-bugreport -verbose=0
Not a CODE reference at /usr/lib/perl5/DynaLoader.pm line 213.
END failed--call queue aborted at 
/pub/apps/mod_perl-2.0/blib/lib/ModPerl/Const.pm line 213.
Compilation failed in require at 
/pub/apps/mod_perl-2.0/blib/lib/Apache2/Const.pm line 18.
BEGIN failed--compilation aborted at 
/pub/apps/mod_perl-2.0/blib/lib/Apache2/Const.pm line 18.
Compilation failed in require at 
/pub/apps/mod_perl-2.0/t/response/TestApache/subprocess.pm line 13.


And then:

/usr/sbin/httpd  -d /pub/apps/mod_perl-2.0/t -f 
/pub/apps/mod_perl-2.0/t/conf/httpd.conf -D APACHE2 -D PERL_USEITHREADS
using Apache/2.2.22 (prefork MPM)

waiting 120 seconds for server to start: .[Mon Sep 10 10:31:20 2012] 
[warn] PassEnv variable LD_LIBRARY_PATH was undefined
[  error] oh darn, server dumped core
[  error] for stacktrace, run: gdb /usr/sbin/httpd -core 
/pub/apps/mod_perl-2.0/core
[  error]
server has died with status 255 (t/logs/error_log wasn't created, start 
the server in the debug mode)
[  error] oh shucks, server dumped core
[  error] for stacktrace, run: gdb /usr/sbin/httpd -core 
/pub/apps/mod_perl-2.0/core
sh: line 1: 23479 Terminated              /usr/bin/perl5.16.1 
/pub/apps/mod_perl-2.0/t/TEST -bugreport -verbose=0
make: *** [run_tests] Error 143



But..  I had to down grade my apache from 2.4 to 2.2.22, but I left the 
apr alone.  I have apr-1.4.6, and apr-util-1.4.1.  (I'm running 
Slackware 14).  Think the apr version would make a difference?

-Andy

Re: Error on install of mod_perl2: Cannot load mod_perl.so into server: Symbol not found: _modperl_handler_name

Posted by Doug Hunt <dh...@ucar.edu>.
Hi Andy:  Right.  We were working with the mod_perl from subversion.

--Doug

dhunt@ucar.edu
Software Engineer
UCAR - COSMIC, Tel. (303) 497-2611

On Mon, 10 Sep 2012, Andy Colson wrote:

>>> On 9/10/2012 7:53 AM, Faith Bazley wrote:
>>>> Hi,
>>>> 
>>>> I'm having trouble installing mod_perl-2.0.7 and for the life of me I
>>>> can't get it to work. I have had no problems installing other modules.
>>>>
>>>>  From the source directory /usr/local/src, unpack the mod_perl-2.0.7
>>>> source, enter the directory and run the following
>>>> 
>>>> perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs
>>>> 
>>>> then "make"
>>>> then "make test", which is where I am getting the error below. Some kind
>>>> of syntax error. Please help.
>>>> 
>>>> 
>>>> /usr/local/apache2/bin/httpd  -d /usr/local/src/mod_perl-2.0.7/t -f
>>>> /usr/local/src/mod_perl-2.0.7/t/conf/httpd.conf -D APACHE2
>>>> using Apache/2.2.22 (prefork MPM)
>>>> 
>>>> waiting 120 seconds for server to start: .[Mon Sep 10 20:16:25 2012]
>>>> [warn] module apreq_module is already loaded, skipping
>>>> *httpd: Syntax error on line 22 of
>>>> /usr/local/src/mod_perl-2.0.7/t/conf/httpd.conf: Cannot load
>>>> /usr/local/src/mod_perl-2.0.7/src/modules/perl/mod_perl.so into server:
>>>> dlopen(/usr/local/src/mod_perl-2.0.7/src/modules/perl/mod_perl.so, 10):
>>>> Symbol not found: _modperl_handler_name\n  Referenced from:
>>>> /usr/local/src/mod_perl-2.0.7/src/modules/perl/mod_perl.so\n  Expected
>>>> in: dynamic lookup\n*
>>>> 
>>>> *** /usr/local/bin/perl -V
>>>> Summary of my perl5 (revision 5 version 16 subversion 1) configuration:
>>>>    Platform:
>>>>      osname=darwin, osvers=11.4.0, archname=darwin-2level
>>>>      uname='darwin faiths-macbook-pro.local 11.4.0 darwin kernel version
>>>> 11.4.0: mon apr 9 19:32:15 pdt 2012; root:xnu-1699.26.8~1release_x86_64
>>> 
>>> 
>>> Yeah.. I can't get mod_perl to work with 5.16.1 either.  The release
>>> notes said 5.16... but I'm betting 5.16.1 broke something.
>>> 
>>> -Andy
>>> 
>
> On 9/10/2012 10:00 AM, Doug Hunt wrote:> Hi Andy:  I just got a dynamic 
> mod_perl to build (and work properly)
>> under Linux:
>>
>> perl 5.16.1
>> mod_perl 2.0.8
>> apache 2.2.22
>>
>> So I don't think that perl 5.16.X broke all mod_perl builds.
>>
>> Regards,
>>
>>    Doug Hunt
>>
>> dhunt@ucar.edu
>> Software Engineer
>> UCAR - COSMIC, Tel. (303) 497-2611
>>
>> On Mon, 10 Sep 2012, Andy Colson wrote:
>>
>
>
> 2.0.8?  Is that in subversion?  I'll check it out and give it a try.
>
> -Andy
>
>

Re: Error on install of mod_perl2: Cannot load mod_perl.so into server: Symbol not found: _modperl_handler_name

Posted by Andy Colson <an...@squeakycode.net>.
>> On 9/10/2012 7:53 AM, Faith Bazley wrote:
>>> Hi,
>>>
>>> I'm having trouble installing mod_perl-2.0.7 and for the life of me I
>>> can't get it to work. I have had no problems installing other modules.
>>>
>>>  From the source directory /usr/local/src, unpack the mod_perl-2.0.7
>>> source, enter the directory and run the following
>>>
>>> perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs
>>>
>>> then "make"
>>> then "make test", which is where I am getting the error below. Some kind
>>> of syntax error. Please help.
>>>
>>>
>>> /usr/local/apache2/bin/httpd  -d /usr/local/src/mod_perl-2.0.7/t -f
>>> /usr/local/src/mod_perl-2.0.7/t/conf/httpd.conf -D APACHE2
>>> using Apache/2.2.22 (prefork MPM)
>>>
>>> waiting 120 seconds for server to start: .[Mon Sep 10 20:16:25 2012]
>>> [warn] module apreq_module is already loaded, skipping
>>> *httpd: Syntax error on line 22 of
>>> /usr/local/src/mod_perl-2.0.7/t/conf/httpd.conf: Cannot load
>>> /usr/local/src/mod_perl-2.0.7/src/modules/perl/mod_perl.so into server:
>>> dlopen(/usr/local/src/mod_perl-2.0.7/src/modules/perl/mod_perl.so, 10):
>>> Symbol not found: _modperl_handler_name\n  Referenced from:
>>> /usr/local/src/mod_perl-2.0.7/src/modules/perl/mod_perl.so\n  Expected
>>> in: dynamic lookup\n*
>>>
>>> *** /usr/local/bin/perl -V
>>> Summary of my perl5 (revision 5 version 16 subversion 1) configuration:
>>>    Platform:
>>>      osname=darwin, osvers=11.4.0, archname=darwin-2level
>>>      uname='darwin faiths-macbook-pro.local 11.4.0 darwin kernel version
>>> 11.4.0: mon apr 9 19:32:15 pdt 2012; root:xnu-1699.26.8~1release_x86_64
>>
>>
>> Yeah.. I can't get mod_perl to work with 5.16.1 either.  The release
>> notes said 5.16... but I'm betting 5.16.1 broke something.
>>
>> -Andy
>>

On 9/10/2012 10:00 AM, Doug Hunt wrote:> Hi Andy:  I just got a dynamic 
mod_perl to build (and work properly)
 > under Linux:
 >
 > perl 5.16.1
 > mod_perl 2.0.8
 > apache 2.2.22
 >
 > So I don't think that perl 5.16.X broke all mod_perl builds.
 >
 > Regards,
 >
 >    Doug Hunt
 >
 > dhunt@ucar.edu
 > Software Engineer
 > UCAR - COSMIC, Tel. (303) 497-2611
 >
 > On Mon, 10 Sep 2012, Andy Colson wrote:
 >


2.0.8?  Is that in subversion?  I'll check it out and give it a try.

-Andy



Re: Error on install of mod_perl2: Cannot load mod_perl.so into server: Symbol not found: _modperl_handler_name

Posted by Doug Hunt <dh...@ucar.edu>.
Hi Andy:  I just got a dynamic mod_perl to build (and work properly) under 
Linux:

perl 5.16.1
mod_perl 2.0.8
apache 2.2.22

So I don't think that perl 5.16.X broke all mod_perl builds.

Regards,

   Doug Hunt

dhunt@ucar.edu
Software Engineer
UCAR - COSMIC, Tel. (303) 497-2611

On Mon, 10 Sep 2012, Andy Colson wrote:

> On 9/10/2012 7:53 AM, Faith Bazley wrote:
>> Hi,
>> 
>> I'm having trouble installing mod_perl-2.0.7 and for the life of me I
>> can't get it to work. I have had no problems installing other modules.
>>
>>  From the source directory /usr/local/src, unpack the mod_perl-2.0.7
>> source, enter the directory and run the following
>> 
>> perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs
>> 
>> then "make"
>> then "make test", which is where I am getting the error below. Some kind
>> of syntax error. Please help.
>> 
>> 
>> /usr/local/apache2/bin/httpd  -d /usr/local/src/mod_perl-2.0.7/t -f
>> /usr/local/src/mod_perl-2.0.7/t/conf/httpd.conf -D APACHE2
>> using Apache/2.2.22 (prefork MPM)
>> 
>> waiting 120 seconds for server to start: .[Mon Sep 10 20:16:25 2012]
>> [warn] module apreq_module is already loaded, skipping
>> *httpd: Syntax error on line 22 of
>> /usr/local/src/mod_perl-2.0.7/t/conf/httpd.conf: Cannot load
>> /usr/local/src/mod_perl-2.0.7/src/modules/perl/mod_perl.so into server:
>> dlopen(/usr/local/src/mod_perl-2.0.7/src/modules/perl/mod_perl.so, 10):
>> Symbol not found: _modperl_handler_name\n  Referenced from:
>> /usr/local/src/mod_perl-2.0.7/src/modules/perl/mod_perl.so\n  Expected
>> in: dynamic lookup\n*
>> 
>> *** /usr/local/bin/perl -V
>> Summary of my perl5 (revision 5 version 16 subversion 1) configuration:
>>    Platform:
>>      osname=darwin, osvers=11.4.0, archname=darwin-2level
>>      uname='darwin faiths-macbook-pro.local 11.4.0 darwin kernel version
>> 11.4.0: mon apr 9 19:32:15 pdt 2012; root:xnu-1699.26.8~1release_x86_64
>
>
> Yeah.. I can't get mod_perl to work with 5.16.1 either.  The release notes 
> said 5.16... but I'm betting 5.16.1 broke something.
>
> -Andy
>

Re: Error on install of mod_perl2: Cannot load mod_perl.so into server: Symbol not found: _modperl_handler_name

Posted by Andy Colson <an...@squeakycode.net>.
On 9/10/2012 7:53 AM, Faith Bazley wrote:
> Hi,
>
> I'm having trouble installing mod_perl-2.0.7 and for the life of me I
> can't get it to work. I have had no problems installing other modules.
>
>  From the source directory /usr/local/src, unpack the mod_perl-2.0.7
> source, enter the directory and run the following
>
> perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs
>
> then "make"
> then "make test", which is where I am getting the error below. Some kind
> of syntax error. Please help.
>
>
> /usr/local/apache2/bin/httpd  -d /usr/local/src/mod_perl-2.0.7/t -f
> /usr/local/src/mod_perl-2.0.7/t/conf/httpd.conf -D APACHE2
> using Apache/2.2.22 (prefork MPM)
>
> waiting 120 seconds for server to start: .[Mon Sep 10 20:16:25 2012]
> [warn] module apreq_module is already loaded, skipping
> *httpd: Syntax error on line 22 of
> /usr/local/src/mod_perl-2.0.7/t/conf/httpd.conf: Cannot load
> /usr/local/src/mod_perl-2.0.7/src/modules/perl/mod_perl.so into server:
> dlopen(/usr/local/src/mod_perl-2.0.7/src/modules/perl/mod_perl.so, 10):
> Symbol not found: _modperl_handler_name\n  Referenced from:
> /usr/local/src/mod_perl-2.0.7/src/modules/perl/mod_perl.so\n  Expected
> in: dynamic lookup\n*
>
> *** /usr/local/bin/perl -V
> Summary of my perl5 (revision 5 version 16 subversion 1) configuration:
>    Platform:
>      osname=darwin, osvers=11.4.0, archname=darwin-2level
>      uname='darwin faiths-macbook-pro.local 11.4.0 darwin kernel version
> 11.4.0: mon apr 9 19:32:15 pdt 2012; root:xnu-1699.26.8~1release_x86_64


Yeah.. I can't get mod_perl to work with 5.16.1 either.  The release 
notes said 5.16... but I'm betting 5.16.1 broke something.

-Andy