Re: mod_perl-1.99_04 compile failure

2002-08-15 Thread Stas Bekman

J. W. Ballantine wrote:
> Thanks, that solved the problem.

which has been already solved in cvs.

__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




Re: Another mod_perl-1.99_04 compile failure

2002-08-15 Thread Stas Bekman

J. W. Ballantine wrote:
> After applying the patch Kyoichi sent, mod_perl.c compiled fine and the make
> continued until:
> 
>   cd "src/modules/perl" && make -f Makefile.modperl
>   cc -c -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  -DMOD_PERL -O  -DVERSION=\"0.01\"  
> -DXS_VERSION=\"0.01\" -KPIC -I/usr/add-on/perl-5.6.0/lib/5.6.0/sun4-solaris/COR
> E  Table.c
>   "/usr/add-on/perl-5.6.0/lib/5.6.0/sun4-solaris/CORE/perl.h", line 23: 
> warning: macro redefined: VOIDUSED
>   "/a4/WWW/APACHE2/mod_perl-1.99_04/xs/APR/Table/APR__Table.h", line 73: 
> undefined struct/union member: a
>   "/a4/WWW/APACHE2/mod_perl-1.99_04/xs/APR/Table/APR__Table.h", line 73: 
> non-unique member requires struct/union object: pool
>   "/a4/WWW/APACHE2/mod_perl-1.99_04/xs/APR/Table/APR__Table.h", line 73: 
> warning: left operand of "." must be struct/union object
>   "/a4/WWW/APACHE2/mod_perl-1.99_04/xs/APR/Table/APR__Table.h", line 73: 
> cannot access member of non-struct/union object

Apache has changed its API again. The cvs version solves this problem.

Remember that mod_perl 1.99_04 works with Apache 2.0.39. If you take a 
newer Apache 2.0.40 or Apache cvs, you must either wait for 1.99_05 to 
be released, or use the mod_perl cvs.

__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




Re: Another mod_perl-1.99_04 compile failure

2002-08-15 Thread Kyoichi Ozaki

hi j.w., 

using mod_perl-1.99_05-dev might help.

> After applying the patch Kyoichi sent, mod_perl.c compiled fine and the make
> continued until:

--
Kyoichi Ozaki <[EMAIL PROTECTED]>



mod_perl-1.99_04 compile failure

2002-08-15 Thread J. W. Ballantine

Hi,

  I have apache 2.0.40, built and working and I'm trying to add the mod_perl 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/CORE 
  -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 combination: 
  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/modules/perl
 *** 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.  Output 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=undef
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_

Another mod_perl-1.99_04 compile failure

2002-08-14 Thread J. W. Ballantine


After applying the patch Kyoichi sent, mod_perl.c compiled fine and the make
continued until:

  cd "src/modules/perl" && make -f Makefile.modperl
  cc -c -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  -DMOD_PERL -O  -DVERSION=\"0.01\"  
-DXS_VERSION=\"0.01\" -KPIC -I/usr/add-on/perl-5.6.0/lib/5.6.0/sun4-solaris/COR
E  Table.c
  "/usr/add-on/perl-5.6.0/lib/5.6.0/sun4-solaris/CORE/perl.h", line 23: 
warning: macro redefined: VOIDUSED
  "/a4/WWW/APACHE2/mod_perl-1.99_04/xs/APR/Table/APR__Table.h", line 73: 
undefined struct/union member: a
  "/a4/WWW/APACHE2/mod_perl-1.99_04/xs/APR/Table/APR__Table.h", line 73: 
non-unique member requires struct/union object: pool
  "/a4/WWW/APACHE2/mod_perl-1.99_04/xs/APR/Table/APR__Table.h", line 73: 
warning: left operand of "." must be struct/union object
  "/a4/WWW/APACHE2/mod_perl-1.99_04/xs/APR/Table/APR__Table.h", line 73: 
cannot access member of non-struct/union object
  cc: acomp failed for Table.c
  *** Error code 2
  make: Fatal error: Command failed for target `Table.o'
  Current working directory /a4/WWW/APACHE2/mod_perl-1.99_04/WrapXS/APR/Table
  *** Error code 1
  make: Fatal error: Command failed for target `subdirs'
  Current working directory /a4/WWW/APACHE2/mod_perl-1.99_04/WrapXS/APR
  *** Error code 1
  make: Fatal error: Command failed for target `subdirs'
  Current working directory /a4/WWW/APACHE2/mod_perl-1.99_04/WrapXS
  *** Error code 1
  make: Fatal error: Command failed for target `subdirs'
  

  t/REPORT follows. Does anyone have and pointers or suggestions??

  Also, is my setup strange, or is finding this problems usual?
 
 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 

Re: mod_perl-1.99_04 compile failure

2002-08-14 Thread J. W. Ballantine


Thanks, that solved the problem.

--  In Response to your message -

>  Date:  Wed, 14 Aug 2002 23:51:43 +0900 (JST)
>  To:  [EMAIL PROTECTED]
>  From:  Kyoichi Ozaki <[EMAIL PROTECTED]>
>  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
00 +0900
>  +++ mod_perl-1.99_04/src/modules/perl/mod_perl.c 2002-08-13 23:56:54.000
00 +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" <[EMAIL PROTECTED]>
>  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 Configurati

Re: mod_perl-1.99_04 compile failure

2002-08-14 Thread Kyoichi Ozaki

hi,

try this:

--- mod_perl-1.99_04/src/modules/perl/mod_perl.c.old2002-06-21 13:16:51.0 
+0900
+++ mod_perl-1.99_04/src/modules/perl/mod_perl.c2002-08-13 23:56:54.0 
++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" <[EMAIL PROTECTED]>
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_perl 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/CORE 
>   -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 combination: 
>   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/modules/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.  Output 
> 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=&qu

mod_perl-1.99_04 compile failure

2002-08-14 Thread J. W. Ballantine


Hi,

  Hopefully this is not a repost...

  I have apache 2.0.40, built and working and I'm trying to add the mod_perl 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/CORE 
  -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 combination: 
  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/modules/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.  Output 
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=undef
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