在Ubuntu 12.04或更高版本上编译mod_perl 1.0

时间:2019-02-22 12:07:03

标签: mod-perl

我无法在ubuntu 12.04或更高版本上编译mod_perl 1.0。任何人都可以做到这一点,或者有修补过的mod_perl源代码树吗?

cd ~/src
wget https://archive.apache.org/dist/httpd/apache_1.3.42.tar.gz
wget http://apache.org/dist/perl/mod_perl-1.31.tar.gz
tar xzvf apache_1.3.42.tar.gz
tar xzvf mod_perl-1.31.tar.gz
cd mod_perl-1.31
perl Makefile.PL APACHE_SRC=../apache_1.3.42/src \
DO_HTTPD=1 USE_APACI=1 EVERYTHING=1
make


<=== src/modules/standard
===> src/modules/perl
cc -O2 -g -I/usr/lib/perl/5.14/CORE -D_REENTRANT  -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DMOD_PERL_VERSION=\"1.31\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.31\" -I../.. -I/usr/lib/perl/5.14/CORE -I../../os/unix -I../../include    -DLINUX=22 -DHAVE_SET_DUMPABLE -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT  -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT  -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 `../../apaci` -c mod_perl.c
mod_perl.c: In function ‘mp_check_version’:
mod_perl.c:527:11: warning: unknown conversion type character ‘_’ in format [-Wformat]
mod_perl.c:527:11: warning: unknown conversion type character ‘_’ in format [-Wformat]
mod_perl.c:536:2: warning: unknown conversion type character ‘_’ in format [-Wformat]
mod_perl.c: In function ‘perl_module_init’:
mod_perl.c:562:2: warning: unknown conversion type character ‘v’ in format [-Wformat]
mod_perl.c: In function ‘perl_startup’:
mod_perl.c:788:15: error: lvalue required as left operand of assignment
make[5]: *** [mod_perl.o] Error 1
make[4]: *** [all] Error 1
make[3]: *** [subdirs] Error 1
make[3]: Leaving directory `/root/src/apache_1.3.42/src'
make[2]: *** [build-std] Error 2
make[2]: Leaving directory `/root/src/apache_1.3.42'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/root/src/apache_1.3.42'
make: *** [apaci_httpd] Error 2

谢谢

0 个答案:

没有答案