You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Beau E. Cox" <be...@beaucox.com> on 2002/12/02 15:36:59 UTC
[mp2.0]make test problems
-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:
MP make test fails (no error log generated)
A. Apache/Const.pm not found - snip of console output:
[START]
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST -clean
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST
Can't locate Apache/Const.pm in @INC (@INC contains: Apache-Test/lib
[...etc...]
I looked on CPAN but Apache::Constants seems to be part of
MP1.
B. 'test mode' apache doesn't start (it starts OK using apachectl start):
Syntax error on line 27 of
/usr/local/addons/mod_perl-1.99_07/t/conf/httpd.conf:
Invalid command 'TransferLog', perhaps mis-spelled or defined by a module
not included in the server configuration
!!!
server has died with status 255 (t/logs/error_log wasn't created, start
the server in the debug mode)
make: *** [run_tests] Error 143
line 27 ot the test httpd.conf file:
26: LogLevel debug
27: TransferLog /usr/local/addons/mod_perl-1.99_07/t/logs/access_log
28:
29: ServerAdmin nobody@localhost
C. NOTE!
I have gone backwards! My previous incarnations of mod_perl install
have gotten further than this. My change - configured Apache with 'all'
modules:
./configure --enable-layout=SuSE --enable-mods-shared=all --with-mpm=worker
2. Used Components and their Configuration:
*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
MP_AP_PREFIX => /usr/include/apache
MP_GENERATE_XS => 1
MP_INST_APACHE2 => 1
MP_LIBNAME => mod_perl
MP_USE_DSO => 1
MP_USE_STATIC => 1
*** /usr/sbin/httpd -V
Server version: Apache/2.0.43
Server built: Dec 2 2002 03:29:08
Server's Module Magic Number: 20020903:0
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/worker"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6
-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="/usr"
-D SUEXEC_BIN="/usr/bin/suexec"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="/etc/httpd/mime.types"
-D SERVER_CONFIG_FILE="/etc/httpd/httpd.conf"
*** /usr/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
Platform:
osname=linux, osvers=2.4.19, archname=i586-linux-thread-multi
uname='linux amdsim5 2.4.19 #1 wed mar 27 13:57:05 utc 2002 i686 unknown
'
config_args='-ds -e -Dprefix=/usr -Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_g
dbm -Duseshrplib=true'
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='cc', ccflags
='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64',
optimize='-O3 --pipe',
cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing'
ccversion='', gccversion='3.2', 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='cc', ldflags =''
libpth=/lib /usr/lib /usr/local/lib
libs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
libc=, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.2.5'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.0/i586-linux-thread-multi
/CORE'
cccdlflags='-fPIC', lddlflags='-shared'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
Built under linux
Compiled at Oct 8 2002 16:55:42
%ENV:
PERL_LWP_USE_HTTP_10="1"
@INC:
/usr/lib/perl5/5.8.0/i586-linux-thread-multi
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
.
3. This is the core dump trace: (if you get a core dump):
[N/A]
This report was generated by t/REPORT on Mon Dec 2 14:14:55 2002 GMT.
-------------8<---------- End Bug Report --------------8<----------
Note: Complete the rest of the details and post this bug report to
dev <at> perl.apache.org. To subscribe to the list send an empty
email to dev-subscribe@perl.apache.org.
Re: [mp2.0]make test problems
Posted by Stas Bekman <st...@stason.org>.
That's much better!
> -------------8<---------- Start Bug Report ------------8<----------
> 1. Problem Description:
>
> MP make test fails (no error log generated)
>
> A. Apache/Const.pm not found - snip of console output:
>
> [START]
> *** setting ulimit to allow core files
> ulimit -c unlimited; t/TEST -clean
> *** setting ulimit to allow core files
> ulimit -c unlimited; t/TEST
> Can't locate Apache/Const.pm in @INC (@INC contains: Apache-Test/lib
> [...etc...]
You've snipped it in the bad place. What's the reported @INC? But first
try with the last suggestion in this reply.
> I looked on CPAN but Apache::Constants seems to be part of
> MP1.
>
> B. 'test mode' apache doesn't start (it starts OK using apachectl start):
>
> Syntax error on line 27 of
> /usr/local/addons/mod_perl-1.99_07/t/conf/httpd.conf:
> Invalid command 'TransferLog', perhaps mis-spelled or defined by a module
> not included in the server configuration
> !!!
> server has died with status 255 (t/logs/error_log wasn't created, start
> the server in the debug mode)
> make: *** [run_tests] Error 143
>
> line 27 ot the test httpd.conf file:
>
> 26: LogLevel debug
> 27: TransferLog /usr/local/addons/mod_perl-1.99_07/t/logs/access_log
> 28:
> 29: ServerAdmin nobody@localhost
You miss mod_log_config.c, see the next answer
> C. NOTE!
>
> I have gone backwards! My previous incarnations of mod_perl install
> have gotten further than this. My change - configured Apache with 'all'
> modules:
>
>
> ./configure --enable-layout=SuSE --enable-mods-shared=all --with-mpm=worker
please try first with just:
./configure --with-mpm=worker
as suggested by the docs.
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com