Compile mod_perl 1.0 on ubuntu 12.04 or later
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
Re: Compile mod_perl 1.0 on ubuntu 12.04 or later
Hello, > On 22 Feb 2019, at 12:47, Hans Poo wrote: > > 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 ? > > 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 Are you aware that there are newer versions of these programs? Apache 1.3.42 is of 2010. Support has ended many years ago. Putting such an old release online would create immediately a security risk. Even when using it as an Intranet solution, why not using an up-to-date release? Ubuntu 12.04 is of 2014, support has ended 2017. Do you want to create a museum? Best regards Matthias Schmitt
Re: Compile mod_perl 1.0 on ubuntu 12.04 or later
Yes, I do. I'am aware of that, the software is built with mod_perl 1.0, and I have been able to run it under 10.04, but there's no support for 10.4 in the internet right now you know, so I'm looking for a way to compile it for 12.04. El vie., 22 feb. 2019 11:34 a.m., Matthias Schmitt escribió: > Hello, > > > On 22 Feb 2019, at 12:47, Hans Poo wrote: > > > > 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 ? > > > > 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 > > Are you aware that there are newer versions of these programs? Apache > 1.3.42 is of 2010. Support has ended many years ago. Putting such an old > release online would create immediately a security risk. Even when using it > as an Intranet solution, why not using an up-to-date release? Ubuntu 12.04 > is of 2014, support has ended 2017. Do you want to create a museum? > > Best regards > > Matthias Schmitt > > >
Re: Compile mod_perl 1.0 on ubuntu 12.04 or later
Hello, > On 22 Feb 2019, at 17:19, Hans Poo wrote: > > Yes, I do. I'am aware of that, the software is built with mod_perl 1.0, and I > have been able to run it under 10.04, but there's no support for 10.4 in the > internet right now you know, so I'm looking for a way to compile it for 12.04. I doubt that you will be able to compile mod_perl 1.x with newer compilers and operating systems. If you have an existing application, have you tried to switch to mod_perl 2 using the compatibility layer? https://perl.apache.org/docs/2.0/api/Apache2/compat.html If this would be working, it would at least be more future proof solution. Best regards Matthias Schmitt magic moving pixel s.a. 23, Avenue Grande-Duchesse Charlotte L-3441 Dudelange Luxembourg Phone: +352 54 75 75 http://www.mmp.lu
mod_perl interpreter pool
The Prefork MPM has the following settings: StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxRequestWorkers 150 MaxConnectionsPerChild 0 I see these Apache directives but the documentation states that they only apply to a threaded mod_perl/Apache which prefork definitely is not: PerlInterpStart PerlInterpMax PerlInterpMinSpare PerlInterpMaxSpare PerlInterpMaxRequests How does mod_perl allocate interpreters to the prefork worker processes? Is there one perl interpreter for each of preform worker? Is there a pool of perl interpreters which is smaller than the pool of prefork workers? Are there settings for configuring the size of the perl interpreter pool? When a request comes in, does the user have to wait for a perl interpreter process to start or is there already one waiting for them? -- John Dunlap *CTO | Lariat * *Direct:* *j...@lariat.co * *Customer Service:* 877.268.6667 supp...@lariat.co