<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., &quot;Sébastien Aperghis-Tramoni&quot; &lt;<a href="mailto:sebastien@aperghis.net">sebastien@aperghis.net</a>&gt; 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>
&gt; Sébastien Aperghis-Tramoni:<br>
&gt;<br>
&gt; &gt; On the hosting facility I use, the oldest Ubuntu they provide<br>
&gt; &gt; is 12.04 LTS. They also provide Debian 6 squeeze.<br>
&gt;<br>
&gt; Good news: I compiled apache-1.3.42 on 14.04 with the _getline<br>
&gt; patch only. So it wasn&#39;t apache&#39;s fault that I had to downgrade<br>
&gt; to 10.04.<br>
&gt;<br>
&gt; Bad news: statically compiling mod_perl-1.31 with apache fails<br>
&gt; due to some weird format strings:<br>
&gt;<br>
&gt; ===&gt; src/modules/perl<br>
&gt; cc -O2 -g -I/usr/lib/perl/5.18/CORE -D_REENTRANT  -DDEBIAN<br>
&gt; -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include<br>
&gt; -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64<br>
&gt; -DMOD_PERL_VERSION=\&quot;1.31\&quot;<br>
&gt; -DMOD_PERL_STRING_VERSION=\&quot;mod_perl/1.31\&quot; -I../..<br>
&gt; -I/usr/lib/perl/5.18/CORE -I../../os/unix -I../../include<br>
&gt;    -DLINUX=22 -DHAVE_SET_DUMPABLE -DMOD_PERL -DUSE_PERL_SSI<br>
&gt; -D_REENTRANT  -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe<br>
&gt; -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64<br>
&gt; -DUSE_HSREGEX -D_REENTRANT  -DDEBIAN -fstack-protector<br>
&gt; -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE<br>
&gt; -D_FILE_OFFSET_BITS=64 `../../apaci` -c mod_perl.c<br>
&gt; mod_perl.c: In function ‘mp_check_version’:<br>
&gt; mod_perl.c:527:11: warning: unknown conversion type character ‘_’ in<br>
&gt; format [-Wformat=]<br>
&gt;            version));<br>
&gt;            ^<br>
&gt; mod_perl.c:527:11: warning: unknown conversion type character ‘_’ in<br>
&gt; format [-Wformat=]<br>
&gt; mod_perl.c:527:11: warning: too many arguments for format<br>
&gt; [-Wformat-extra-args]<br>
&gt; mod_perl.c:536:2: warning: unknown conversion type character ‘_’ in<br>
&gt; format [-Wformat=]<br>
&gt;   sv_setpvf(namesv, &quot;%_/Apache.pm&quot;, dir);<br>
&gt;   ^<br>
&gt; mod_perl.c:536:2: warning: too many arguments for format<br>
&gt; [-Wformat-extra-args]<br>
&gt; mod_perl.c: In function ‘perl_module_init’:<br>
&gt; mod_perl.c:562:2: warning: unknown conversion type character ‘v’ in<br>
&gt; format [-Wformat=]<br>
&gt;   char *version = form(&quot;Perl/v%vd&quot;, PL_patchlevel);<br>
&gt;   ^<br>
&gt; mod_perl.c:562:2: warning: too many arguments for format<br>
&gt; [-Wformat-extra-args]<br>
&gt; mod_perl.c: In function ‘perl_startup’:<br>
&gt; mod_perl.c:788:15: error: lvalue required as left operand of<br>
&gt; assignment<br>
&gt;   GvCV(exitgp) = perl_get_cv(&quot;Apache::exit&quot;, TRUE);<br>
&gt;                ^<br>
&gt;<br>
&gt; 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&#39;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>