I'm attempting to recompile Stronghold with mod_perl, and I've run into a
problem that no set of instructions (that I've seen) seem to help with. Any
assistance/advice/RTFMs would be appreciated.
mod_perl 1.21
Stronghold 2.42 glibc2.1 build 2412
Perl 5.005_03
This system has an existing mod_perl enabled httpd that I compiled with no
problems. It is also 1.21, with apache 1.3.9. I'd rather not poon that
instance while creating this one.
First, I tried this:
perl Makefile.PL APACHE_PREFIX=/usr/local/apache-strong/
APACHE_SRC=/usr/local/apache-strong/ DO_HTTPD=1 USE_APACI=1 EVERYTHING=1
PREP_HTTPD=1
then a make, and a make install. All appears to go well, but no libperl.a is
created in modules/perl under the apache tree. So I tried this (per
INSTALL.simple.stronghold):
Makefile.PL APACHE_SRC=/usr/local/apache-strong/src/ && make test
&& make install
which ran along swimmingly until it got here:
<=== modules/sxnet
===> modules/perl
cc -O2 -Dbool=char -DHAS_BOOL -I/usr/lib/perl5/5.00503/i686-linux/CORE
-DMOD_PERL_VERSION=\"1.21\"
-DMOD_PERL_STRING_VERSION=\"mod_perl/1.21\" -I../..
-I/usr/lib/perl5/5.00503/i686-linux/CORE -I../
../os/unix -I../../include -I../ssl/include -I../../ssl/include
-I../../../ssl/include -I/usr/i386-g
libc20-linux/include -Wall -DLINUX=2 -DTARGET=\"httpsd\" -DMOD_PERL
-DUSE_PERL_SSI -Dbool=char -DHAS
_BOOL -DSHBUILDCODE=\"C2NetEU/2412\" -DSHVERSION=\"2.4.2\" -DSTRONGHOLD
-DUSE_HSREGEX -DSTRONGHOLD -
DMOD_PERL -c mod_perl.c
In file included from mod_perl.h:41,
from mod_perl.c:60:
/usr/lib/perl5/5.00503/i686-linux/CORE/perl.h:2546: redefinition of `union
semun'
/usr/lib/perl5/5.00503/i686-linux/CORE/patchlevel.h:41: warning:
`local_patches' defined but not use
d
make[3]: *** [mod_perl.o] Error 1
make[2]: *** [all] Error 1
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/usr/local/apache-strong/src'
make: *** [apache_httpd] Error 2
I then tried the instructions listed at C2net, here
http://www.c2net.com/external/?link=sh242/index.html
Switch to the ServerRoot/src directory:
# cd ServerRoot/src
This is the directory created during installation, and it may vary from the
default.
Edit the Configuration file to reflect which modules or patches you want.
AddModule modules/perl/libperl.a
Save the modified Configuration file.
Run Configure:
# ./Configure
Rebuild HTTPSD:
# make
This goes along for awhile with no apparent problems until it gets here:
<=== modules/sxnet
===> modules/perl
cc -O2 -Dbool=char -DHAS_BOOL -I/usr/lib/perl5/5.00503/i686-linux/CORE
-DMOD_PERL_VERSION=\"1.21\"
-DMOD_PERL_STRING_VERSION=\"mod_perl/1.21\" -I../..
-I/usr/lib/perl5/5.00503/i686-linux/CORE -I../
../os/unix -I../../include -I../ssl/include -I../../ssl/include
-I../../../ssl/include -I/usr/i386-g
libc20-linux/include -Wall -DLINUX=2 -DTARGET=\"httpsd\" -DMOD_PERL
-DUSE_PERL_SSI -Dbool=char -DHAS
_BOOL -DSHBUILDCODE=\"C2NetEU/2412\" -DSHVERSION=\"2.4.2\" -DSTRONGHOLD
-DUSE_HSREGEX -c mod_perl.c
In file included from mod_perl.h:41,
from mod_perl.c:60:
/usr/lib/perl5/5.00503/i686-linux/CORE/perl.h:2546: redefinition of `union
semun'
/usr/lib/perl5/5.00503/i686-linux/CORE/patchlevel.h:41: warning:
`local_patches' defined but not use
d
make[2]: *** [mod_perl.o] Error 1
make[1]: *** [all] Error 1
make: *** [subdirs] Error 1
Same as before, I believe.
Additional questions I have are:
- Is there a danger of breaking my other Apache/mod_perl installation by
configuring mod_perl against a different source tree and doing a make install?
- Where is libperl.a?
Any assistance would be greatly appreciated.
thanks,
Todd
----------------------------------------------------------------------
Todd R. Finney Alpha Geek
[EMAIL PROTECTED] (508) 879 5792
Boy Genius Internet Development
http://www.boygenius.com
----------------------------------------------------------------------