You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by ra...@printus.de on 2007/01/18 13:37:15 UTC

make test fails / mod_perl doesn't work

Hello list,
 
this is my first post on a mailing-list, so please pardon if I accidently
break some rules. Also Enlish isn't my native language but I try to give my
best...
 
My problem is, that I have a web-application based on perl-scripts. So far
everything is running (IBM-webserver based on Apache 2.0.47.1, Perl 5.8.2 ,
mySQL and that all on AIX5.3).
Because of performance reasons (response time) I have to add mod_perl to
this configuration.
 
I've tried with mod_perl 2.0.3 but so far without success. Step-by-Step what
I did:
 
root@aixutil <ma...@aixutil> :: ~/mod_perl-2.0.3 # perl Makefile.PL
MP_APXS=/usr/IBMIHS/bin/apxs MP_USE_DSO=1    
I've also tried with additional "MP_APR_CONFIG=/usr/IBMIHS/bin/apr-config" 
This command returned a lot of output - the only negative things I've found
in it are the following two parts
--------------------------------------------------------------------
   Unrecognized argument in LIBS ignored: '-Wld,-brtl'
--------------------------------------------------------------------
[warning] mod_perl dso library will be built as mod_perl.so
[warning] You'll need to add the following to httpd.conf:
[warning] 
[warning]   LoadModule perl_module modules/mod_perl.so
[warning] 
[warning] depending on your build, mod_perl might not live in
[warning] the modules/ directory.
 
[warning] Check the results of
[warning] 
[warning]   $ /usr/IBMIHS/bin/apxs -q LIBEXECDIR
[warning] 
[warning] and adjust the LoadModule directive accordingly.
--------------------------------------------------------------------
The named command returns "/usr/IBMIHS/modules" so that should be correct
 
 
 
next step: make
this returns about 4300 rows of output - most of them are
--------------------------------------------------------------------
ld: 0711-415 WARNING: Symbol PerlIOBase_binmode is already exported.
--------------------------------------------------------------------
just for lots of different "Symbols" (Modules?). The rest of the output
seems to be ok and because of "already exported" I ignored this
 
 
next step: 
--------------------------------------------------------------------
root@aixutil <ma...@aixutil> : ~/mod_perl-2.0.3 # make test
        cd "src/modules/perl" && make
Target "all" is up to date.
        /usr/bin/perl -Iblib/arch -Iblib/lib  t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /root/mod_perl-2.0.3/t/TEST -clean
        APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT=
APACHE_TEST_USER= APACHE_TEST_APXS=  /usr/bin/perl -Iblib/arch -Iblib/lib
t/TEST -bugreport -verbose=0 
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /root/mod_perl-2.0.3/t/TEST -bugreport
-verbose=0
exec(): 0509-036 Cannot load program /usr/IBMIHS/bin/httpd because of the
following errors:
        0509-150   Dependent module libaprutil-0.so could not be loaded.
        0509-022 Cannot load module libaprutil-0.so.
        0509-026 System error: A file or directory in the path name does not
exist.
exec(): 0509-036 Cannot load program /usr/IBMIHS/bin/httpd because of the
following errors:
        0509-150   Dependent module libaprutil-0.so could not be loaded.
        0509-022 Cannot load module libaprutil-0.so.
        0509-026 System error: A file or directory in the path name does not
exist.
exec(): 0509-036 Cannot load program /usr/IBMIHS/bin/httpd because of the
following errors:
        0509-150   Dependent module libaprutil-0.so could not be loaded.
        0509-022 Cannot load module libaprutil-0.so.
        0509-026 System error: A file or directory in the path name does not
exist.
[  error] You are using mod_perl response handlers 
[  error] but do not have a mod_perl capable Apache.
+--------------------------------------------------------+
| Please file a bug report: http://perl.apache.org/bugs/
<http://perl.apache.org/bugs/>  |
+--------------------------------------------------------+
make: 1254-004 The error code from the last command is 1.

Stop.
--------------------------------------------------------------------
 
 
A "make install" runs without warnings or errors. When I insert the line
"LoadModule perl_module modules/mod_perl.so" to the httpd.conf and I then
restart the webserver, then the following entries appear in the error_log:
[Thu Jan 18 13:06:19 2007] [notice] IBM_HTTP_Server/2.0.47.1 Apache/2.0.47
(Unix) mod_perl/2.0.3 Perl/v5.8.2 configured -- resuming normal operations
[Thu Jan 18 13:06:29 2007] [notice] child pid 790546 exit signal
Segmentation fault (11)
[Thu Jan 18 13:06:31 2007] [notice] child pid 786554 exit signal
Segmentation fault (11)

Then trying to open the web-application in my browser (which did fine before
restart) I just get an error-page that the server doesn't response. Same
when I additionally change the httpd.conf further the way I have to for my
web-app: set/change some "alias" and inserting:
<Location /##alias##>
  SetHandler  perl-script
  PerlHandler Apache::Registry
  Options ExecCGI
  PerlSendHeader On
  PerlSetupEnv On
</Location>

 
after hours of searching the mailinglist, asking google and trying I don't
know any further possibillity to do, so my last hope is this mailinglist...
for "Segmentation fault(11)" there were lot's of hints for the SUPPORT-file,
but I couldn't locate this file in my mod_perl-distribution :-(
sincerely
R. Lehmann