You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Fred Seibel <fs...@sprintmail.com> on 2005/04/04 19:39:38 UTC

Bug Report : problem with both_str_native_remove test and broken mod_perl.so

1. Problem Description:

   I cannot get a clean make test.

the tests fail (but not consistently

t/filter/both_str_native_remove.........# Failed test 1 in 
t/filter/both_str_native_remove.t at line 22
# Failed test 2 in t/filter/both_str_native_remove.t at line 24
t/filter/both_str_native_remove.........FAILED tests 1-2
         Failed 2/8 tests, 75.00% okay

However once I got
t/filter/both_str_native_remove.........ok

then subsequently  the following failed
t/flush..............# Failed test 1 in t/flush.t at line 22
t/flush..............FAILED test 1
         Failed 1/1 tests, 0.00% okay

If I

 >make install

and run apache with
LoadModule mod_perl modules/mod_perl.so at line 279 of httpd.conf


I get

conf> ../bin/apachectl start
Syntax error on line 279 of /Library/Apache2/conf/httpd.conf:
Can't locate API module structure `mod_perl' in file 
/Library/Apache2/modules/mod_perl.so: undefined symbol

TIA

Fred


fseibel@sprintmail.com


2. Used Components and their Configuration:

*** mod_perl version 1.999021

*** using 
/Users/seibel/software/mod_perl-2.0.0-RC4/lib/Apache/BuildConfig.pm

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


*** /Library/Apache2/bin/httpd -V
Server version: Apache/2.0.52
Server built:   Sep 30 2004 18:20:43
Server's Module Magic Number: 20020903:9
Architecture:   32-bit
Server compiled with....
  -D APACHE_MPM_DIR="server/mpm/prefork"
  -D APR_HAS_MMAP
  -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="/Library/Apache2"
  -D SUEXEC_BIN="/Library/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"


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

  -L/Library/Apache2/lib -lapr-0 -lresolv  -lpthread
  -L/Library/Apache2/lib -laprutil-0 -lldap -llber -lexpat -liconv



*** /Users/seibel/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
   Platform:
     osname=darwin, osvers=7.8.0, archname=darwin-2level
     uname='darwin pcp08543146pcs.sntafe01.nm.comcast.net 7.8.0 darwin 
kernel version 7.8.0: wed dec 22 14:26:17 pst 2004; 
root:xnuxnu-517.11.1.obj~1release_ppc power macintosh powerpc '
     config_args=''
     hint=recommended, useposix=true, d_sigaction=define
     usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=undef
     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
     use64bitint=undef use64bitall=undef uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
   Compiler:
     cc='gcc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp 
-fno-strict-aliasing -pipe -I/usr/local/include',
     optimize='-Os',
     cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp 
-fno-strict-aliasing -pipe -I/usr/local/include'
     ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build 
1495)', gccosandvers=''
     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
     ivtype='long', ivsize=4, 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 =' 
-L/usr/local/lib'
     libpth=/usr/local/lib /usr/lib
     libs=-ldbm -ldl -lm -lc
     perllibs=-ldl -lm -lc
     libc=, so=dylib, useshrplib=false, libperl=libperl.a
     gnulibc_version=''
   Dynamic Linking:
     dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
     cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup 
-L/usr/local/lib'


Characteristics of this binary (from libperl):
   Compile-time options: USE_LARGE_FILES
   Built under darwin
   Compiled at Apr  3 2005 14:17:33
   %ENV:
     PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin"
     PERL_LWP_USE_HTTP_10="1"
   @INC:
     /sw/lib/perl5
     /sw/lib/perl5/darwin
     /Users/seibel/bin/lib/perl5/5.8.6/darwin-2level
     /Users/seibel/bin/lib/perl5/5.8.6
     /Users/seibel/bin/lib/perl5/site_perl/5.8.6/darwin-2level
     /Users/seibel/bin/lib/perl5/site_perl/5.8.6
     /Users/seibel/bin/lib/perl5/site_perl
     /Users/seibel/perladdons/lib/perl5/vendor_perl/5.8.6/darwin-2level
     /Users/seibel/perladdons/lib/perl5/vendor_perl/5.8.6
     /Users/seibel/perladdons/lib/perl5/vendor_perl
     .

*** Packages of interest status:

Apache::Request: -
CGI            : 3.05
LWP            : 5.803
mod_perl       : 1.999021


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 Mon Apr  4 17:23:33 2005 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 modperl-subscribe@perl.apache.org.



Re: Bug Report : problem with both_str_native_remove test and broken mod_perl.so

Posted by Torsten Foertsch <to...@gmx.net>.
On Monday 04 April 2005 19:39, Fred Seibel wrote:
> t/filter/both_str_native_remove.........# Failed test 1 in
> t/filter/both_str_native_remove.t at line 22
> # Failed test 2 in t/filter/both_str_native_remove.t at line 24
> t/filter/both_str_native_remove.........FAILED tests 1-2
>          Failed 2/8 tests, 75.00% okay
>
> However once I got
> t/filter/both_str_native_remove.........ok

Maybe some background information on what the particular test does.

Tests 1 and 2 check whether the DEFLATE input filter and the INCLUDES 
output filter are present. The remaining tests check the effect of 
removing these filters.

Maybe there are problems with your mod_deflate, mod_include setup?

However, tests 3 and 6 check whether INCLUDES and DEFLATE were present 
in the filter chain.

Maybe you could provide the output of "make test TEST_VERBOSE=1 
TEST_FILES=t/filter/both_str_native_remove.t"?

Torsten

Re: Bug Report : problem with both_str_native_remove test and broken mod_perl.so

Posted by Stas Bekman <st...@stason.org>.
Fred Seibel wrote:
> 1. Problem Description:
> 
>   I cannot get a clean make test.
> 
> the tests fail (but not consistently
> 
> t/filter/both_str_native_remove.........# Failed test 1 in 
> t/filter/both_str_native_remove.t at line 22
> # Failed test 2 in t/filter/both_str_native_remove.t at line 24
> t/filter/both_str_native_remove.........FAILED tests 1-2
>         Failed 2/8 tests, 75.00% okay
> 
> However once I got
> t/filter/both_str_native_remove.........ok
> 
> then subsequently  the following failed
> t/flush..............# Failed test 1 in t/flush.t at line 22
> t/flush..............FAILED test 1
>         Failed 1/1 tests, 0.00% okay

Fred, please follow the instructions at:
http://perl.apache.org/docs/2.0/user/help/help.html#_C_make_test___Failures

> If I
> 
>  >make install
> 
> and run apache with
> LoadModule mod_perl modules/mod_perl.so at line 279 of httpd.conf
> 
> 
> I get
> 
> conf> ../bin/apachectl start
> Syntax error on line 279 of /Library/Apache2/conf/httpd.conf:
> Can't locate API module structure `mod_perl' in file 
> /Library/Apache2/modules/mod_perl.so: undefined symbol

Are you sure it's the right file? And that you load it with the right 
httpd? As the test suite worked, it should work too. Make sure that you 
don't have more than one mod_perl.so or httpd on your system.


-- 
__________________________________________________________________
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