J S wrote:
Hi,
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
This and the following warnings indicate that something is wrong with
your apache headers. e.g. incomplete set of headers. As suggested by Ged,
try installing apache from scratch and chances are that your problem will
go away.
looking at this some more, can you build apache at all (without mod_perl,
mod_ssl), just the plain build? that error seems to indicate that it didn't
include the file that defines the regex_t type.
You should be able to find it in: apache_1.3.27/src/include/hsregex.h,
which is autogenerated from apache_1.3.27/src/regex/regex2.h
Thanks for your replies.
I must be doing something wrong here because I get this error everytime,
even if I start from scratch with fresh sources.
Can I just check my process for building the apache is right?:
As for the build steps, try to follow these instructions:
http://perl.apache.org/docs/1.0/guide/install.html#mod_perl_and_mod_ssl___openssl_
(adjusting to use DSO if needed)
Thanks for your reply.
I found 2 solutions to the problem above. The first was to set
-DUSE_HSREGEX on the compile line and that worked.
The second was setting my path to pick up perl-5.8 before all the
configures. That worked too.
Now I have a new problem though. When I do apachectl configtest I get the
following error:
# ./apachectl configtest
Syntax error on line 208 of /opt/apache_1.3.27/conf/httpd.conf:
Cannot load /opt/apache_1.3.27/libexec/libperl.so into server: ld.so.1:
/opt/apache_1.3.27/bin/httpd: fatal: relocation error: file
/opt/apache_1.3.27/libexec/libperl.so: symbol Perl_vmess: referenced symbol
not found
Presumably I need to link some library in but I'm not sure which.
JS.
_________________________________________________________________
Use MSN Messenger to send music and pics to your friends
http://www.msn.co.uk/messenger
|