“undefined symbol: mg_free_type” when installing mod_perl 2.0.10 with Apache 2.4.26 and Perl 5.10.1











up vote
-1
down vote

favorite












I'm trying to install mod_perl 2.0.10 for use with a new Apache 2.4 instance. I've got Apache 2.4.26 up and running by itself, but I also need mod_perl installed for a couple of modules to work.



Here's the problem: mod_perl always fails its tests claiming:



Syntax error on line 82 of .../t/conf/httpd.conf: Cannot load .../src/modules/perl/mod_perl.so into server: .../src/modules/perl/mod_perl.so: undefined symbol: mg_free_type


The only information I could find on this is here: Error when installing mod_perl2. Unfortunately, it didn't solve the problem.



Using CentOS release 6.8 (Final)
x86_64 x86_64 x86_64 GNU/Linux



More from the log:



> make test
cd "src/modules/perl" && make
make[1]: Entering directory `/software/apa/mod_perl/mod_perl-2.0.10/src/modules/perl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/software/apa/mod_perl/mod_perl-2.0.10/src/modules/perl'
...
make[1]: Leaving directory `/software/apa/mod_perl/mod_perl-2.0.10/xs'
/usr/bin/perl -Iblib/arch -Iblib/lib
t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /software/apa/mod_perl/mod_perl-2.0.10/t/TEST -clean
APACHE_TEST_APXS= APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER=
/usr/bin/perl -Iblib/arch -Iblib/lib
t/TEST -bugreport -verbose=0
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /software/apa/mod_perl/mod_perl-2.0.10/t/TEST -bugreport -verbose=0
/software/apa/apa24/bin/httpd.prefork -d /software/apa/mod_perl/mod_perl-2.0.10/t -f /software/apa/mod_perl/mod_perl-2.0.10/t/conf/httpd.conf -D APACHE2 -D APACHE2_4 -D PERL_USEITHREADS
using Apache/2.4.26 (prefork MPM)

waiting 300 seconds for server to start: .httpd.prefork: Syntax error on line 82 of /software/apa/mod_perl/mod_perl-2.0.10/t/conf/httpd.conf: Cannot load /software/apa/mod_perl/mod_perl-2.0.10/src/modules/perl/mod_perl.so into server: /software/apa/mod_perl/mod_perl-2.0.10/src/modules/perl/mod_perl.so: undefined symbol: mg_free_type
[ error]
server has died with status 255 (t/logs/error_log wasn't created, start the server in the debug mode)
sh: line 1: 3359 Terminated /usr/bin/perl /software/apa/mod_perl/mod_perl-2.0.10/t/TEST -bugreport -verbose=0
make: *** [run_tests] Error 143









share|improve this question




















  • 2




    See mod_perl troubleshooting
    – Sinan Ünür
    Jun 26 '17 at 20:09















up vote
-1
down vote

favorite












I'm trying to install mod_perl 2.0.10 for use with a new Apache 2.4 instance. I've got Apache 2.4.26 up and running by itself, but I also need mod_perl installed for a couple of modules to work.



Here's the problem: mod_perl always fails its tests claiming:



Syntax error on line 82 of .../t/conf/httpd.conf: Cannot load .../src/modules/perl/mod_perl.so into server: .../src/modules/perl/mod_perl.so: undefined symbol: mg_free_type


The only information I could find on this is here: Error when installing mod_perl2. Unfortunately, it didn't solve the problem.



Using CentOS release 6.8 (Final)
x86_64 x86_64 x86_64 GNU/Linux



More from the log:



> make test
cd "src/modules/perl" && make
make[1]: Entering directory `/software/apa/mod_perl/mod_perl-2.0.10/src/modules/perl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/software/apa/mod_perl/mod_perl-2.0.10/src/modules/perl'
...
make[1]: Leaving directory `/software/apa/mod_perl/mod_perl-2.0.10/xs'
/usr/bin/perl -Iblib/arch -Iblib/lib
t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /software/apa/mod_perl/mod_perl-2.0.10/t/TEST -clean
APACHE_TEST_APXS= APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER=
/usr/bin/perl -Iblib/arch -Iblib/lib
t/TEST -bugreport -verbose=0
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /software/apa/mod_perl/mod_perl-2.0.10/t/TEST -bugreport -verbose=0
/software/apa/apa24/bin/httpd.prefork -d /software/apa/mod_perl/mod_perl-2.0.10/t -f /software/apa/mod_perl/mod_perl-2.0.10/t/conf/httpd.conf -D APACHE2 -D APACHE2_4 -D PERL_USEITHREADS
using Apache/2.4.26 (prefork MPM)

waiting 300 seconds for server to start: .httpd.prefork: Syntax error on line 82 of /software/apa/mod_perl/mod_perl-2.0.10/t/conf/httpd.conf: Cannot load /software/apa/mod_perl/mod_perl-2.0.10/src/modules/perl/mod_perl.so into server: /software/apa/mod_perl/mod_perl-2.0.10/src/modules/perl/mod_perl.so: undefined symbol: mg_free_type
[ error]
server has died with status 255 (t/logs/error_log wasn't created, start the server in the debug mode)
sh: line 1: 3359 Terminated /usr/bin/perl /software/apa/mod_perl/mod_perl-2.0.10/t/TEST -bugreport -verbose=0
make: *** [run_tests] Error 143









share|improve this question




















  • 2




    See mod_perl troubleshooting
    – Sinan Ünür
    Jun 26 '17 at 20:09













up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











I'm trying to install mod_perl 2.0.10 for use with a new Apache 2.4 instance. I've got Apache 2.4.26 up and running by itself, but I also need mod_perl installed for a couple of modules to work.



Here's the problem: mod_perl always fails its tests claiming:



Syntax error on line 82 of .../t/conf/httpd.conf: Cannot load .../src/modules/perl/mod_perl.so into server: .../src/modules/perl/mod_perl.so: undefined symbol: mg_free_type


The only information I could find on this is here: Error when installing mod_perl2. Unfortunately, it didn't solve the problem.



Using CentOS release 6.8 (Final)
x86_64 x86_64 x86_64 GNU/Linux



More from the log:



> make test
cd "src/modules/perl" && make
make[1]: Entering directory `/software/apa/mod_perl/mod_perl-2.0.10/src/modules/perl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/software/apa/mod_perl/mod_perl-2.0.10/src/modules/perl'
...
make[1]: Leaving directory `/software/apa/mod_perl/mod_perl-2.0.10/xs'
/usr/bin/perl -Iblib/arch -Iblib/lib
t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /software/apa/mod_perl/mod_perl-2.0.10/t/TEST -clean
APACHE_TEST_APXS= APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER=
/usr/bin/perl -Iblib/arch -Iblib/lib
t/TEST -bugreport -verbose=0
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /software/apa/mod_perl/mod_perl-2.0.10/t/TEST -bugreport -verbose=0
/software/apa/apa24/bin/httpd.prefork -d /software/apa/mod_perl/mod_perl-2.0.10/t -f /software/apa/mod_perl/mod_perl-2.0.10/t/conf/httpd.conf -D APACHE2 -D APACHE2_4 -D PERL_USEITHREADS
using Apache/2.4.26 (prefork MPM)

waiting 300 seconds for server to start: .httpd.prefork: Syntax error on line 82 of /software/apa/mod_perl/mod_perl-2.0.10/t/conf/httpd.conf: Cannot load /software/apa/mod_perl/mod_perl-2.0.10/src/modules/perl/mod_perl.so into server: /software/apa/mod_perl/mod_perl-2.0.10/src/modules/perl/mod_perl.so: undefined symbol: mg_free_type
[ error]
server has died with status 255 (t/logs/error_log wasn't created, start the server in the debug mode)
sh: line 1: 3359 Terminated /usr/bin/perl /software/apa/mod_perl/mod_perl-2.0.10/t/TEST -bugreport -verbose=0
make: *** [run_tests] Error 143









share|improve this question















I'm trying to install mod_perl 2.0.10 for use with a new Apache 2.4 instance. I've got Apache 2.4.26 up and running by itself, but I also need mod_perl installed for a couple of modules to work.



Here's the problem: mod_perl always fails its tests claiming:



Syntax error on line 82 of .../t/conf/httpd.conf: Cannot load .../src/modules/perl/mod_perl.so into server: .../src/modules/perl/mod_perl.so: undefined symbol: mg_free_type


The only information I could find on this is here: Error when installing mod_perl2. Unfortunately, it didn't solve the problem.



Using CentOS release 6.8 (Final)
x86_64 x86_64 x86_64 GNU/Linux



More from the log:



> make test
cd "src/modules/perl" && make
make[1]: Entering directory `/software/apa/mod_perl/mod_perl-2.0.10/src/modules/perl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/software/apa/mod_perl/mod_perl-2.0.10/src/modules/perl'
...
make[1]: Leaving directory `/software/apa/mod_perl/mod_perl-2.0.10/xs'
/usr/bin/perl -Iblib/arch -Iblib/lib
t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /software/apa/mod_perl/mod_perl-2.0.10/t/TEST -clean
APACHE_TEST_APXS= APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER=
/usr/bin/perl -Iblib/arch -Iblib/lib
t/TEST -bugreport -verbose=0
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /software/apa/mod_perl/mod_perl-2.0.10/t/TEST -bugreport -verbose=0
/software/apa/apa24/bin/httpd.prefork -d /software/apa/mod_perl/mod_perl-2.0.10/t -f /software/apa/mod_perl/mod_perl-2.0.10/t/conf/httpd.conf -D APACHE2 -D APACHE2_4 -D PERL_USEITHREADS
using Apache/2.4.26 (prefork MPM)

waiting 300 seconds for server to start: .httpd.prefork: Syntax error on line 82 of /software/apa/mod_perl/mod_perl-2.0.10/t/conf/httpd.conf: Cannot load /software/apa/mod_perl/mod_perl-2.0.10/src/modules/perl/mod_perl.so into server: /software/apa/mod_perl/mod_perl-2.0.10/src/modules/perl/mod_perl.so: undefined symbol: mg_free_type
[ error]
server has died with status 255 (t/logs/error_log wasn't created, start the server in the debug mode)
sh: line 1: 3359 Terminated /usr/bin/perl /software/apa/mod_perl/mod_perl-2.0.10/t/TEST -bugreport -verbose=0
make: *** [run_tests] Error 143






linux apache perl centos6 mod-perl2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 12 at 4:15

























asked Jun 26 '17 at 19:28









David C. Bradley

54




54








  • 2




    See mod_perl troubleshooting
    – Sinan Ünür
    Jun 26 '17 at 20:09














  • 2




    See mod_perl troubleshooting
    – Sinan Ünür
    Jun 26 '17 at 20:09








2




2




See mod_perl troubleshooting
– Sinan Ünür
Jun 26 '17 at 20:09




See mod_perl troubleshooting
– Sinan Ünür
Jun 26 '17 at 20:09












2 Answers
2






active

oldest

votes

















up vote
1
down vote



accepted










This problem was fixed in a mod_Perl patch on 4 January 2018:
https://github.com/apache/mod_perl/commit/f4d886fdf7d79d54a0647336b5623b840a053eab



Compile with this git source version to fix the problem, or upgrade Perl to v5.13.6+



This change in Perl as been introduced in source of Perl v5.13.6+.






share|improve this answer






























    up vote
    0
    down vote













    I solved this by upgrading to Perl 5.14.0 or newer.



    In the Perl documentation, mg_free_type first appears in version 5.14.0. You can see under "Magical Functions" where it isn't listed in 5.12.4 but is in 5.14.0



    I'm not sure if this is the correct solution as mod_perl2.0 lists Perl 5.6.1 as the minimum version: https://perl.apache.org/docs/2.0/user/install/install.html#item_Perl






    share|improve this answer





















      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f44767291%2fundefined-symbol-mg-free-type-when-installing-mod-perl-2-0-10-with-apache-2-4%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      1
      down vote



      accepted










      This problem was fixed in a mod_Perl patch on 4 January 2018:
      https://github.com/apache/mod_perl/commit/f4d886fdf7d79d54a0647336b5623b840a053eab



      Compile with this git source version to fix the problem, or upgrade Perl to v5.13.6+



      This change in Perl as been introduced in source of Perl v5.13.6+.






      share|improve this answer



























        up vote
        1
        down vote



        accepted










        This problem was fixed in a mod_Perl patch on 4 January 2018:
        https://github.com/apache/mod_perl/commit/f4d886fdf7d79d54a0647336b5623b840a053eab



        Compile with this git source version to fix the problem, or upgrade Perl to v5.13.6+



        This change in Perl as been introduced in source of Perl v5.13.6+.






        share|improve this answer

























          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          This problem was fixed in a mod_Perl patch on 4 January 2018:
          https://github.com/apache/mod_perl/commit/f4d886fdf7d79d54a0647336b5623b840a053eab



          Compile with this git source version to fix the problem, or upgrade Perl to v5.13.6+



          This change in Perl as been introduced in source of Perl v5.13.6+.






          share|improve this answer














          This problem was fixed in a mod_Perl patch on 4 January 2018:
          https://github.com/apache/mod_perl/commit/f4d886fdf7d79d54a0647336b5623b840a053eab



          Compile with this git source version to fix the problem, or upgrade Perl to v5.13.6+



          This change in Perl as been introduced in source of Perl v5.13.6+.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 12 at 10:20









          David C. Bradley

          54




          54










          answered Dec 6 '17 at 16:57









          Mathieu CARBONNEAUX

          937




          937
























              up vote
              0
              down vote













              I solved this by upgrading to Perl 5.14.0 or newer.



              In the Perl documentation, mg_free_type first appears in version 5.14.0. You can see under "Magical Functions" where it isn't listed in 5.12.4 but is in 5.14.0



              I'm not sure if this is the correct solution as mod_perl2.0 lists Perl 5.6.1 as the minimum version: https://perl.apache.org/docs/2.0/user/install/install.html#item_Perl






              share|improve this answer

























                up vote
                0
                down vote













                I solved this by upgrading to Perl 5.14.0 or newer.



                In the Perl documentation, mg_free_type first appears in version 5.14.0. You can see under "Magical Functions" where it isn't listed in 5.12.4 but is in 5.14.0



                I'm not sure if this is the correct solution as mod_perl2.0 lists Perl 5.6.1 as the minimum version: https://perl.apache.org/docs/2.0/user/install/install.html#item_Perl






                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  I solved this by upgrading to Perl 5.14.0 or newer.



                  In the Perl documentation, mg_free_type first appears in version 5.14.0. You can see under "Magical Functions" where it isn't listed in 5.12.4 but is in 5.14.0



                  I'm not sure if this is the correct solution as mod_perl2.0 lists Perl 5.6.1 as the minimum version: https://perl.apache.org/docs/2.0/user/install/install.html#item_Perl






                  share|improve this answer












                  I solved this by upgrading to Perl 5.14.0 or newer.



                  In the Perl documentation, mg_free_type first appears in version 5.14.0. You can see under "Magical Functions" where it isn't listed in 5.12.4 but is in 5.14.0



                  I'm not sure if this is the correct solution as mod_perl2.0 lists Perl 5.6.1 as the minimum version: https://perl.apache.org/docs/2.0/user/install/install.html#item_Perl







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jun 30 '17 at 19:53









                  David C. Bradley

                  54




                  54






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f44767291%2fundefined-symbol-mg-free-type-when-installing-mod-perl-2-0-10-with-apache-2-4%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Bressuire

                      Vorschmack

                      Quarantine