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