<p dir="ltr">After thinking about it again, it should be easier to compile perl 5.10 with perlbrew or plenv and let mod_perl unpatched.</p>
<p dir="ltr">At least perlbrew uses patchperl to fix compilation on modern toolchains.</p>
<p dir="ltr">Cheers,<br>
Alex</p>
<div class="gmail_quote">El dia 17 febr. 2016 1:57 a. m., "Sébastien Aperghis-Tramoni" <<a href="mailto:sebastien@aperghis.net">sebastien@aperghis.net</a>> va escriure:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Alex Muntada wrote:<br>
<br>
> Sébastien Aperghis-Tramoni:<br>
><br>
> > On the hosting facility I use, the oldest Ubuntu they provide<br>
> > is 12.04 LTS. They also provide Debian 6 squeeze.<br>
><br>
> Good news: I compiled apache-1.3.42 on 14.04 with the _getline<br>
> patch only. So it wasn't apache's fault that I had to downgrade<br>
> to 10.04.<br>
><br>
> Bad news: statically compiling mod_perl-1.31 with apache fails<br>
> due to some weird format strings:<br>
><br>
> ===> src/modules/perl<br>
> cc -O2 -g -I/usr/lib/perl/5.18/CORE -D_REENTRANT -DDEBIAN<br>
> -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include<br>
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64<br>
> -DMOD_PERL_VERSION=\"1.31\"<br>
> -DMOD_PERL_STRING_VERSION=\"mod_perl/1.31\" -I../..<br>
> -I/usr/lib/perl/5.18/CORE -I../../os/unix -I../../include<br>
> -DLINUX=22 -DHAVE_SET_DUMPABLE -DMOD_PERL -DUSE_PERL_SSI<br>
> -D_REENTRANT -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe<br>
> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64<br>
> -DUSE_HSREGEX -D_REENTRANT -DDEBIAN -fstack-protector<br>
> -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE<br>
> -D_FILE_OFFSET_BITS=64 `../../apaci` -c mod_perl.c<br>
> mod_perl.c: In function ‘mp_check_version’:<br>
> mod_perl.c:527:11: warning: unknown conversion type character ‘_’ in<br>
> format [-Wformat=]<br>
> version));<br>
> ^<br>
> mod_perl.c:527:11: warning: unknown conversion type character ‘_’ in<br>
> format [-Wformat=]<br>
> mod_perl.c:527:11: warning: too many arguments for format<br>
> [-Wformat-extra-args]<br>
> mod_perl.c:536:2: warning: unknown conversion type character ‘_’ in<br>
> format [-Wformat=]<br>
> sv_setpvf(namesv, "%_/Apache.pm", dir);<br>
> ^<br>
> mod_perl.c:536:2: warning: too many arguments for format<br>
> [-Wformat-extra-args]<br>
> mod_perl.c: In function ‘perl_module_init’:<br>
> mod_perl.c:562:2: warning: unknown conversion type character ‘v’ in<br>
> format [-Wformat=]<br>
> char *version = form("Perl/v%vd", PL_patchlevel);<br>
> ^<br>
> mod_perl.c:562:2: warning: too many arguments for format<br>
> [-Wformat-extra-args]<br>
> mod_perl.c: In function ‘perl_startup’:<br>
> mod_perl.c:788:15: error: lvalue required as left operand of<br>
> assignment<br>
> GvCV(exitgp) = perl_get_cv("Apache::exit", TRUE);<br>
> ^<br>
><br>
> I will try some other options now and will keep you posted.<br>
<br>
On my side, I tried to compile older versions of GCC, which failed with<br>
the error stating that some features were not supported in C99 mode.<br>
This led me to looking in this direction, and I found that passing the<br>
-std=gnu89 option passed to cc make things much easier.<br>
I could compile the static Apache with no problems. Now I'm working on<br>
the Apache+mod_perl, but first had to reinstall a Perl compiled with<br>
this option as well.<br>
<br>
<br>
--<br>
Sébastien Aperghis-Tramoni<br>
<br>
Close the world, txEn eht nepO.<br>
_______________________________________________<br>
Act mailing list<br>
<a href="mailto:Act@mongueurs.net">Act@mongueurs.net</a><br>
<a href="http://listes.mongueurs.net/mailman/listinfo/act" rel="noreferrer" target="_blank">http://listes.mongueurs.net/mailman/listinfo/act</a><br>
</blockquote></div>