title: mod_perl.so for apache 2.4 required by bugzilla
body: <p>Environment:</p>
  
  <pre><code>    SuSE SLES11 SP4, Kernel 3.0.101-68-default
      http-Server: apache 2.4.18 with OpenSSL 1.0.2e
      MySQL 5.6.29
  </code></pre>
  
  <p>Further either:</p>
  
  <pre><code>    SLES 11 preinstalled SW:
      Perl 5.10.0 with mod_perl v2.000004 and
      bugzilla 4.2.4 being running before.
  </code></pre>
  
  <p>Or
  new versions built from source i.e.</p>
  
  <pre><code>    perl 5.22.1 and mod_perl 2.0.9 and bugzilla -5.0.2
  </code></pre>
  
  <p>Starting position:</p>
  
  <p>The SLES 11 preinstalled http-server Apache 2.2 with OpenSSL 0.9.8 doesn't support TLS1.2 as required today.
  Hence Apache 2.4 with the mentioned OpenSSL was compiled, built and installed. This runs well. To run bugzilla as before perl and mod_perl is required. Though trying hard, no attempt was successful. Neither with the preinstalled perl / mod_perl, nor with the versions built from source!</p>
  
  <p>Try 1:</p>
  
  <p>copy the mod_perl.so from /usr/lib64/apache2/ to the modules directory of the apache 2.4 installation and load the module within the http.conf. This results in error:</p>
  
  <pre><code>    modules/mod_perl.so: undefined symbol: ap_log_error.
  </code></pre>
  
  <p>Hence going on this way much more errors may appear!</p>
  
  <p>Try 2:</p>
  
  <p>using preinstalled perl 5.10.0 and source mod-perl 2.0.9 to build and install, using:</p>
  
  <pre><code>    perl Makefile.PL MP_APXS=/opt/apache/http/bin/apxs
  </code></pre>
  
  <p>this results in:</p>
  
  <pre><code>    Please repair your Module::CoreList at lib/Apache2/Build.pm line 50.
      BEGIN failed--compilation aborted at lib/Apache2/Build.pm line 65.
      Compilation failed in require at Makefile.PL line 38.
      BEGIN failed--compilation aborted at Makefile.PL line 38.
  </code></pre>
  
  <p>Apparently a problem with incompatible perl versions. No go!</p>
  
  <p>Try 3:</p>
  
  <p>Compile, build and install perl-5.22.1</p>
  
  <p>In fact this was never a real problem all possible mutations tried, resulted in pass for all tests using make test. make install was always OK too, but building mod-perl failed with:</p>
  
  <pre><code>    [  error] Using Perl 5.022001 w/o ithreads and httpd-2.4.
      [  error] Failed requirements:
      [  error]   - Perl built with ithreads (build perl with -Duseithreads)
  </code></pre>
  
  <p>A frustrating exercise, because even using -Duseithreads I got the same error again, even after make clean. Finally after deleting the source unpacking from tar and the command:</p>
  
  <pre><code>    ./Configure -Dprefix=/opt/perl -Duseithreads -Accflags=-fPIC
  </code></pre>
  
  <p>I got a mod_perl.so as desired.
  However starting the apache server resulted in:</p>
  
  <pre><code>    ./apachectl: line 79:  5760 Segmentation fault      $HTTPD "$@"
  </code></pre>
  
  <p>I got stuck! I lost enough time! Is anybody out there with experience of this kind of problems?
  I appreciate any useful hint. </p>