Compile mod_perl 1.0 on ubuntu 12.04 or later

Hans Poo <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <CAK8wGnoK6u=iuEgzE5K=C1_E38dc7W4pCDGn_5o5D+K8gS+A0w@mail.gmail.com>
Hi,

I've been unable  to compile 1.0 on ubuntu 12.04 or later. Anyone has been
able to compile it or has a patched mod_perl source tree ?

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

Thanks
Hans Poo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.