You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "J. W. Ballantine" <jw...@homer.att.com> on 2002/08/14 17:02:54 UTC

Re: mod_perl-1.99_04 compile failure

Thanks, that solved the problem.

----------  In Response to your message -------------

>  Date:  Wed, 14 Aug 2002 23:51:43 +0900 (JST)
>  To:  jwb@homer.att.com
>  From:  Kyoichi Ozaki <k...@bancho.jp>
>  Subject:  Re: mod_perl-1.99_04 compile failure
>
>  hi,
>  
>  try this:
>  
>  --- mod_perl-1.99_04/src/modules/perl/mod_perl.c.old	2002-06-21 13:16:51.000
000000 +0900
>  +++ mod_perl-1.99_04/src/modules/perl/mod_perl.c	2002-08-13 23:56:54.000
000000 +0900
>  @@ -508,18 +508,22 @@
>   
>       ap_register_output_filter(MP_FILTER_REQUEST_OUTPUT_NAME,
>                                 modperl_output_filter_handler,
>  +									
						NULL,
>                                 AP_FTYPE_RESOURCE);
>   
>       ap_register_input_filter(MP_FILTER_REQUEST_INPUT_NAME,
>                                modperl_input_filter_handler,
>  +									
					 NULL,
>                                AP_FTYPE_RESOURCE);
>   
>       ap_register_output_filter(MP_FILTER_CONNECTION_OUTPUT_NAME,
>                                 modperl_output_filter_handler,
>  +									
						NULL,
>                                 AP_FTYPE_CONNECTION);
>   
>       ap_register_input_filter(MP_FILTER_CONNECTION_INPUT_NAME,
>                                modperl_input_filter_handler,
>  +									
					 NULL,
>                                AP_FTYPE_CONNECTION);
>   
>       ap_hook_pre_connection(modperl_hook_pre_connection,
>  
>  
>   
>  
>  From: "J. W. Ballantine" <jw...@homer.att.com>
>  Subject: mod_perl-1.99_04 compile failure
>  Date: Wed, 14 Aug 2002 10:43:53 -0400
>  
>  > 
>  > Hi,
>  > 
>  >   Hopefully this is not a repost...
>  > 
>  >   I have apache 2.0.40, built and working and I'm trying to add the mod_pe
rl 2 
>  >   module, but when I try to install it
>  >   I'm failing on the compile of mod_perl.c.
>  >   
>  >   The makefile command is:
>  >      perl Makefile.PL MP_AP_PREFIX=/a3/APACHE/Apache2 MP_INST_APACHE2=1 
>  >   MP_USE_STATIC=1
>  >   This runs successfully and then I run make, with an output of:
>  >      cd "src/modules/perl" && make -f Makefile.modperl
>  >      cc -I/a4/WWW/APACHE2/mod_perl-1.99_04/src/modules/perl 
>  >   -I/a4/WWW/APACHE2/mod_perl-1.99_04/xs -I/a3/APACHE/Apache2/include 
>  >   -I/usr/local/include   -I/usr/add-on/perl-5.6.0/lib/5.6.0/sun4-solaris/C
ORE 
>  >   -DMOD_PERL -O -c mod_perl.c
>  >      "/usr/add-on/perl-5.6.0/lib/5.6.0/sun4-solaris/CORE/perl.h", line 23:
 
>  >   warning: macro redefined: VOIDUSED
>  >         "mod_perl.c", line 511: warning: improper pointer/integer combinat
ion: 
>  >   arg #3
>  >      "mod_perl.c", line 511: prototype mismatch: 3 args passed, 4 expected
>  >      "mod_perl.c", line 515: warning: improper pointer/integer combination
: 
>  > arg
>  >   #3
>  >      "mod_perl.c", line 515: prototype mismatch: 3 args passed, 4 expected
>  >      "mod_perl.c", line 519: warning: improper pointer/integer combination
: 
>  > arg
>  >   #3
>  >      "mod_perl.c", line 519: prototype mismatch: 3 args passed, 4 expected
>  >      "mod_perl.c", line 523: warning: improper pointer/integer combination
: 
>  > arg
>  >   #3
>  >      "mod_perl.c", line 523: prototype mismatch: 3 args passed, 4 expected
>  >      cc: acomp failed for mod_perl.c
>  >      *** Error code 2
>  >      make: Fatal error: Command failed for target `mod_perl.o'
>  >      Current working directory /a4/WWW/APACHE2/mod_perl-1.99_04/src/module
s/per
>  > l
>  >      *** Error code 1
>  >      make: Fatal error: Command failed for target `modperl_lib'
>  >   
>  >   I've searched the archives, and can't find any mod_perl.c problems.  Out
put 
>  > of
>  >   t/REPORT follows. Does anyone have and
>  >   pointers or suggestions??
>  >   
>  >   Thanks
>  >   Jim Ballantine
>  >   
>  >   -------------8<---------- Start Bug Report ------------8<----------
>  >   1. Problem Description:
>  >   
>  >     [DESCRIBE THE PROBLEM HERE]
>  >   
>  >   2. Used Components and their Configuration:
>  >   
>  >   *** using lib/Apache/BuildConfig.pm
>  >   *** Makefile.PL options:
>  >     MP_AP_PREFIX    => /a3/APACHE/Apache2
>  >     MP_GENERATE_XS  => 1
>  >     MP_INST_APACHE2 => 1
>  >     MP_LIBNAME      => mod_perl
>  >     MP_USE_STATIC   => 1
>  >   
>  >   
>  >   *** /a3/APACHE/Apache2/bin/httpd -V
>  >   Server version: Apache/2.0.40
>  >   Server built:   Aug 12 2002 15:12:21
>  >   Server's Module Magic Number: 20020628:0
>  >   Architecture:   32-bit
>  >   Server compiled with....
>  >    -D APACHE_MPM_DIR="server/mpm/prefork"
>  >    -D APR_HAS_MMAP
>  >    -D APR_USE_PROC_PTHREAD_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="/a3/APACHE/Apache2"
>  >    -D SUEXEC_BIN="/a3/APACHE/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/add-on/perl-5.6.0/bin/perl -V
>  >   Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
>  >     Platform:
>  >       osname=solaris, osvers=2.6, archname=sun4-solaris
>  >       uname='sunos hera 5.6 generic_105181-17 sun4u sparc 
>  > sunw,ultra-enterprise '
>  >       config_args=''
>  >       hint=recommended, useposix=true, d_sigaction=define
>  >       usethreads=undef use5005threads=undef useithreads=undef 
>  >   usemultiplicity=undef
>  >       useperlio=undef d_sfio=undef uselargefiles=define 
>  >       use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=und
ef
>  >     Compiler:
>  >       cc='cc', optimize='-O', gccversion=
>  >       cppflags='-I/usr/local/include'
>  >       ccflags ='-I/usr/local/include -D_LARGEFILE_SOURCE 
>  > -D_FILE_OFFSET_BITS=64'
>  >       stdchar='unsigned char', d_stdstdio=define, usevfork=false
>  >       intsize=4, longsize=4, ptrsize=4, doublesize=8
>  >       d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
>  >       ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
>  >   lseeksize=8
>  >       alignbytes=8, usemymalloc=y, prototype=define
>  >     Linker and Libraries:
>  >       ld='cc', ldflags =' -L/usr/local/lib '
>  >       libpth=/usr/local/lib /usr/lib /usr/ccs/lib
>  >       libs=-lsocket -lnsl -ldb -ldl -lm -lc -lcrypt -lsec
>  >       libc=/usr/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
>  >     Dynamic Linking:
>  >       dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
>  >       cccdlflags='-KPIC', lddlflags='-G -L/usr/local/lib'
>  >   
>  >   
>  >   Characteristics of this binary (from libperl): 
>  >     Compile-time options: USE_LARGE_FILES
>  >     Built under solaris
>  >     Compiled at Apr 19 2000 09:57:26
>  >     %ENV:
>  >       PERL_LWP_USE_HTTP_10="1"
>  >     @INC:
>  >       /usr/add-on/perl-5.6.0/lib/5.6.0/sun4-solaris
>  >       /usr/add-on/perl-5.6.0/lib/5.6.0
>  >       /usr/add-on/perl-5.6.0/lib/site_perl/5.6.0/sun4-solaris
>  >       /usr/add-on/perl-5.6.0/lib/site_perl/5.6.0
>  >       /usr/add-on/perl-5.6.0/lib/site_perl
>  >       .
>  >   
>  >   
>  >   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 Aug 13 17:56:51 2002 GMT.
>  >   
>  >   -------------8<---------- End Bug Report --------------8<----------
>  >   
>  >   
>  >   
>  >   
>  > 
>  > 
>  > 
>  



Re: mod_perl-1.99_04 compile failure

Posted by Stas Bekman <st...@stason.org>.
J. W. Ballantine wrote:
> Thanks, that solved the problem.

which has been already solved in cvs.

__________________________________________________________________
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