You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by J S <ve...@hotmail.com> on 2003/04/28 15:51:21 UTC

compile error

Hi,

I sent this to the users list but no one replied so maybe this is a dev 
issue?
I'm trying to build mod_perl as a dynamic apache module but I keep getting
the following error:

smpd9$ pwd
/home/src/apache_src/modperl/apaci
smpd9$ make
/opt/SUNWspro/bin/cc -O -I/opt/perl-5.8.0/lib/5.8.0/sun4-solaris/CORE
-I/usr/local/include -I/opt/local/include
-DMOD_PERL_VERSION=\"1.27_01-dev\"
-DMOD_PERL_STRING_VERSION=\"mod_perl/1.27_01-dev\"
-I/opt/apache_1.3.27/include -DMOD_PERL -DSOLARIS2=260 -DMOD_SSL=208112
-DEAPI -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_CORE -fast
-xtarget=ultra -DHARD_SERVER_LIMIT=1024  -c mod_perl.c && mv mod_perl.o
mod_perl.lo
"/opt/apache_1.3.27/include/ap_alloc.h", line 354: undefined or not a type:
regex_t
"/opt/apache_1.3.27/include/ap_alloc.h", line 354: syntax error before or
at: *
"/opt/apache_1.3.27/include/ap_alloc.h", line 354: warning: old-style
declaration or incorrect type for: ap_pregcomp
"/opt/apache_1.3.27/include/ap_alloc.h", line 355: syntax error before or
at: regex_t
"/opt/apache_1.3.27/include/ap_alloc.h", line 355: warning: undefined or
missing type for: regex_t
"/opt/apache_1.3.27/include/httpd.h", line 1099: syntax error before or at:
*
"/opt/apache_1.3.27/include/httpd.h", line 1099: warning: undefined or
missing type for: const
"/opt/apache_1.3.27/include/httpd.h", line 1100: warning: undefined or
missing type for: size_t
"/opt/apache_1.3.27/include/httpd.h", line 1100: warning: undefined or
missing type for: pmatch
"/opt/apache_1.3.27/include/httpd.h", line 1100: warning: undefined or
missing type for: int
"/opt/apache_1.3.27/include/httpd.h", line 1101: syntax error before or at:
*
"/opt/apache_1.3.27/include/httpd.h", line 1102: warning: undefined or
missing type for: char
"/opt/apache_1.3.27/include/httpd.h", line 1102: warning: undefined or
missing type for: size_t
"/opt/apache_1.3.27/include/httpd.h", line 1104: syntax error before or at:
regmatch_t
"/opt/apache_1.3.27/include/httpd.h", line 1104: warning: undefined or
missing type for: regmatch_t
"/opt/apache_1.3.27/include/http_core.h", line 296: syntax error before or
at: regex_t
"/opt/apache_1.3.27/include/http_core.h", line 296: cannot recover from
previous errors
cc: acomp failed for mod_perl.c
*** Error code 2
make: Fatal error: Command failed for target `mod_perl.lo'
smpd9$

I've tried mod_perl-1.27 and the cvs version but both give me the same
error. My setup is:

* Solaris 2.6
* Perl 5.8.0
* Apache 1.3.27

And the configure seems to run OK:

perl Makefile.PL \
USE_APXS=1 \
WITH_APXS=/opt/apache_1.3.27-new/bin/apxs \
EVERYTHING=1

Will configure via APXS (apxs=/opt/apache_1.3.27-new/bin/apxs)
PerlDispatchHandler.........enabled
PerlChildInitHandler........enabled
PerlChildExitHandler........enabled
PerlPostReadRequestHandler..enabled
PerlTransHandler............enabled
PerlHeaderParserHandler.....enabled
PerlAccessHandler...........enabled
PerlAuthenHandler...........enabled
PerlAuthzHandler............enabled
PerlTypeHandler.............enabled
PerlFixupHandler............enabled
PerlHandler.................enabled
PerlLogHandler..............enabled
PerlInitHandler.............enabled
PerlCleanupHandler..........enabled
PerlRestartHandler..........enabled
PerlStackedHandlers.........enabled
PerlMethodHandlers..........enabled
PerlDirectiveHandlers.......enabled
PerlTableApi................enabled
PerlLogApi..................enabled
PerlUriApi..................enabled
PerlUtilApi.................enabled
PerlFileApi.................enabled
PerlConnectionApi...........enabled
PerlServerApi...............enabled
PerlSections................enabled
PerlSSI.....................enabled
Will run tests as User: 'u152439' Group: 'staff'
Configuring mod_perl for building via APXS
+ Creating a local mod_perl source tree
+ Setting up mod_perl build environment (Makefile)
+ id: mod_perl/1.27_01-dev
+ id: Perl/v5.8.0 (solaris) [perl]
Now please type 'make' to build libperl.so
Checking CGI.pm VERSION..........ok
Checking for LWP::UserAgent......ok
Checking for HTML::HeadParser....ok
Checking if your kit is complete...
Looks good
Writing Makefile for Apache
Writing Makefile for Apache::Connection
Writing Makefile for Apache::Constants
Writing Makefile for Apache::File
Writing Makefile for Apache::Leak
Writing Makefile for Apache::Log
Writing Makefile for Apache::ModuleConfig
Writing Makefile for Apache::PerlRunXS
Writing Makefile for Apache::Server
Writing Makefile for Apache::Symbol
Writing Makefile for Apache::Table
Writing Makefile for Apache::URI
Writing Makefile for Apache::Util
Writing Makefile for mod_perl


I'm not sure how to fix this, so would appreciate any advice. Thanks,

JS.






_________________________________________________________________
On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/mobile


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org