I'm not very familiar with UNIX but I believe I followed the instructions exactly for installing mod_perl, and I still ran into the problem below. (Since I'm not used to UNIX though, if you need me to post more information, please specify as precisely as possible what I should type since I won't know how to do things like "create a symbolic link to file X", etc. I can copy files, switch directories, etc. but that's about it.)

I'm trying to install mod_perl 2.0.2 on a machine running "Fedora Core release 3 (Heidelberg) Kernel 2.4.26-1um on an i686" with Apache/2.0.53.

I'm root in a virtual machine hosted by my ISP.  I first tried to do

perl Makefile.PL MP_APXS=`which apxs`
make
make test

under my root directory, but during "make test" I got the following error (everything between the ">>>>>" lines):

>>>>>
[warning] root mode: changing the files ownership to 'nobody' (99:99)
[warning] testing whether 'nobody' is able to -rwx /root/mod_perl-2.0.2/t
"/usr/bin/perl" -Mlib=/root/mod_perl-2.0.2/Apache-Test/lib -MApache::TestRun -e 'eval { Apache::TestRun::run_root_fs_test(99, 99, q[/root/mod_perl-2.0.2/t]) }';


[warning] result:
[  error] You are running the test suite under user 'root'.
Apache cannot spawn child processes as 'root', therefore
we attempt to run the test suite with user 'nobody' (99:99).
The problem is that the path (including all parent directories):
  /root/mod_perl-2.0.2/t
must be 'rwx' by user 'nobody', so Apache can read and write under that
path.

There are several ways to resolve this issue. One is to move and
rebuild the distribution to '/tmp/' and repeat the 'make test'
phase. The other is not to run 'make test' as root (i.e. building
under your /home/user directory).

You can test whether some directory is suitable for 'make test' under
'root', by running a simple test. For example to test a directory
'/root/mod_perl-2.0.2/t', run:

% "/usr/bin/perl" -Mlib=/root/mod_perl-2.0.2/Apache-Test/lib -MApache::TestRun -e 'eval { Apache::TestRun::run_root_fs_test(99, 99, q[/root/mod_perl-2.0.2/t]) }';

Only if the test prints 'OK', the directory is suitable to be used for
testing.



Running the test suite is important to make sure that the module that
you are about to install works on your system. If you choose not to
run the test suite and you have a problem using this module, make sure
to return and run this test suite before reporting any problems to the
developers of this module.

Skip the test suite? [No]
>>>>>

So, following the directions as far as I understood them, I created a directory /tmp/modperl2test/, moved the mod_perl-2.0.2.tar.gz file there, extracted it, and tried again:

perl Makefile.PL MP_APXS=`which apxs`
make
make test

This time, "make test" produced so much output that it went past the buffer of my telnet application, but the last output that it gave me was this:

>>>>>
waiting 120 seconds for server to start: ....[Tue Jan 31 16:32:00 2006] [info] 6 Apache2:: modules loaded
[Tue Jan 31 16:32:00 2006] [info] 0 APR:: modules loaded
[Tue Jan 31 16:32:00 2006] [info] base server + 27 vhosts ready to run tests ..[ error] Failed to find a config file to save the custom configuration in
..........
waiting 120 seconds for server to start: ok (waited 15 secs)
server localhost:8529 started
server localhost:8530 listening (filter_out_apache)
server localhost:8531 listening (TestModules::proxy)
server localhost:8532 listening (TestModperl::merge)
server localhost:8533 listening (TestModperl::perl_options)
server localhost:8534 listening (TestModperl::setupenv)
server localhost:8535 listening (TestUser::rewrite)
server localhost:8536 listening (TestVhost::log)
server localhost:8537 listening (TestVhost::config)
server localhost:8538 listening (TestProtocol::pseudo_http)
server localhost:8539 listening (TestProtocol::echo_bbs)
server localhost:8540 listening (TestProtocol::echo_filter)
server localhost:8541 listening (TestProtocol::echo_bbs2)
server localhost:8542 listening (TestProtocol::echo_timeout)
server localhost:8543 listening (TestProtocol::echo_block)
server localhost:8544 listening (TestProtocol::echo_nonblock)
server localhost:8545 listening (TestPreConnection::note)
server localhost:8546 listening (TestHooks::hookrun)
server localhost:8547 listening (TestHooks::init)
server localhost:8548 listening (TestHooks::trans)
server localhost:8549 listening (TestHooks::stacked_handlers2)
server localhost:8550 listening (TestHooks::startup)
server localhost:8551 listening (TestFilter::in_bbs_inject_header)
server localhost:8552 listening (TestFilter::in_str_msg)
server localhost:8553 listening (TestFilter::both_str_con_add)
server localhost:8554 listening (TestFilter::in_bbs_msg)
server localhost:8555 listening (TestDirective::perlmodule)
server localhost:8556 listening (TestDirective::perlrequire)
server localhost:8557 listening (TestDirective::perlloadmodule4)
server localhost:8558 listening (TestDirective::perlloadmodule5)
server localhost:8559 listening (TestDirective::perlloadmodule3)
server localhost:8560 listening (TestDirective::perlloadmodule6)
server localhost:8561 listening (TestHooks::push_handlers_anon)

still waiting for server to warm up: ...............................................................................................................
the server is down, giving up after 121 secs
[  error] failed to start server! (please examine t/logs/error_log)
+--------------------------------------------------------+
| Please file a bug report: http://perl.apache.org/bugs/ |
+--------------------------------------------------------+
>>>>>


Here are the contents of my t/logs/error_log file. I tried following the steps at
http://perl.apache.org/docs/2.0/user/help/help.html#_C_make_test___Failures
to post "only the relevant portion" of the file, but the instructions at that link only applied if you got some output saying exactly which tests failed, and I didn't get that. In any case my file is pretty short:

>>>>>
[Tue Jan 31 16:32:07 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
END in modperl_extra.pl, pid=23711
[Tue Jan 31 16:32:12 2006] [notice] Digest: generating secret for digest authentication ...
[Tue Jan 31 16:32:12 2006] [notice] Digest: done
[Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost [Tue Jan 31 16:32:12 2006] [debug] util_ldap.c(1437): LDAP merging Shared Cache conf: shm=0x2bdfcb68 rmm=0x2bdfcb98 for VHOST: localhost
[Tue Jan 31 16:32:12 2006] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Tue Jan 31 16:32:12 2006] [notice] LDAP: SSL support unavailable
[Tue Jan 31 16:32:13 2006] [notice] Apache/2.0.53 (Fedora) world domination series/2.0 DAV/2 PHP/4.3.8 mod_perl/2.0.2 Perl/v5.8.5 configured -- resuming normal operations
[Tue Jan 31 16:32:13 2006] [info] Server built: Sep  5 2005 09:28:47
[Tue Jan 31 16:32:13 2006] [debug] prefork.c(956): AcceptMutex: sysvsem (default: sysvsem) [Tue Jan 31 16:32:13 2006] [debug] util_ldap.c(1625): Initialisation of global mutex /tmp/fileMR7GW9 in child process 23719 successful. [Tue Jan 31 16:32:13 2006] [debug] util_ldap.c(1625): Initialisation of global mutex /tmp/fileMR7GW9 in child process 23720 successful.
>>>>>


And here are the contents of the "mybugreport" file that I generated using t/REPORT > mybugreport:
>>>>>

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

  [see everything written above]

2. Used Components and their Configuration:

*** mod_perl version 2.000002

*** using /tmp/modperl2test/mod_perl-2.0.2/lib/Apache2/BuildConfig.pm

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


*** /usr/sbin/httpd -V
Server version: Apache/2.0.53
Server built:   Sep  5 2005 09:28:47
Server's Module Magic Number: 20020903:9
Architecture:   32-bit
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_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/etc/httpd"
 -D SUEXEC_BIN="/usr/sbin/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/ldd /usr/sbin/httpd
        libpcre.so.0 => /lib/libpcre.so.0 (0x4001d000)
        libpcreposix.so.0 => /usr/lib/libpcreposix.so.0 (0x4002d000)
        libaprutil-0.so.0 => /usr/lib/libaprutil-0.so.0 (0x40031000)
        libldap-2.2.so.7 => /usr/lib/libldap-2.2.so.7 (0x40045000)
        liblber-2.2.so.7 => /usr/lib/liblber-2.2.so.7 (0x40076000)
        libdb-4.2.so => /lib/libdb-4.2.so (0x40082000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x40150000)
        libapr-0.so.0 => /usr/lib/libapr-0.so.0 (0x4016f000)
        librt.so.1 => /lib/librt.so.1 (0x40192000)
        libm.so.6 => /lib/libm.so.6 (0x401a6000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x401c9000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x401f7000)
        libdl.so.2 => /lib/libdl.so.2 (0x4024a000)
        libc.so.6 => /lib/libc.so.6 (0x4024e000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x40379000)
        libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x4038d000)
        libssl.so.4 => /lib/libssl.so.4 (0x403a1000)
        libcrypto.so.4 => /lib/libcrypto.so.4 (0x403d5000)
        /lib/ld-linux.so.2 (0x40000000)
        libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x404bd000)
        libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x404d2000)
        libcom_err.so.2 => /lib/libcom_err.so.2 (0x40537000)
        libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x4053a000)
        libz.so.1 => /usr/lib/libz.so.1 (0x4055b000)


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

 -laprutil-0 -lldap -llber -ldb-4.2 -lexpat
 -lapr-0 -lrt -lm -lcrypt  -lpthread -ldl



*** /usr/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
  Platform:
    osname=linux, osvers=2.4.21-14.elsmp, archname=i386-linux-thread-multi
uname='linux tweety.build.redhat.com 2.4.21-14.elsmp #1 smp wed apr 14 18:55:47 edt 2004 i686 i686 i386 gnulinux ' config_args='-des -Doptimize=-O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -Dversion=5.8.5 -Dmyhostname=localhost [EMAIL PROTECTED] -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr -Dinc_version_list=5.8.4 5.8.3 5.8.2 5.8.1 5.8.0'
    hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-O2 -g -pipe -m32 -march=i386 -mtune=pentium4',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/include/gdbm' ccversion='', gccversion='3.4.2 20041006 (Red Hat 3.4.2-5)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.3.3.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.3.3'
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE'
    cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at Oct 12 2004 12:45:01
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /usr/lib/perl5/5.8.5/i386-linux-thread-multi
    /usr/lib/perl5/5.8.5
    /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.5
    /usr/lib/perl5/site_perl/5.8.4
    /usr/lib/perl5/site_perl/5.8.3
    /usr/lib/perl5/site_perl/5.8.2
    /usr/lib/perl5/site_perl/5.8.1
    /usr/lib/perl5/site_perl/5.8.0
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.5
    /usr/lib/perl5/vendor_perl/5.8.4
    /usr/lib/perl5/vendor_perl/5.8.3
    /usr/lib/perl5/vendor_perl/5.8.2
    /usr/lib/perl5/vendor_perl/5.8.1
    /usr/lib/perl5/vendor_perl/5.8.0
    /usr/lib/perl5/vendor_perl
    .

*** Packages of interest status:

Apache2            : -
Apache2::Request   : -
CGI                : 3.05
ExtUtils::MakeMaker: 6.17
LWP                : 5.79
mod_perl           : 1.9916
mod_perl2          : -


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

  [CORE TRACE COMES HERE]

This report was generated by t/REPORT on Tue Jan 31 21:42:25 2006 GMT.

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

Note: Complete the rest of the details and post this bug report to
modperl <at> perl.apache.org. To subscribe to the list send an empty
email to [EMAIL PROTECTED]


>>>>>

Reply via email to