Greetings wise ones.

I have a complicated (to me) mod_perl system that I inherited and I'm trying to apply Apache2::compat.pm to help with the process of eliminating apache 1.
I've tried adding "PerlModule Apache2::compat" in the server conf but I keep getting
Undefined subroutine &Apache2::ServerUtil::restart_count called at /home/joe/bin_server/perl/Apache2/compat.pm line 79. Compilation failed in require at (eval 4) line 3.

I also tried putting in my startup file, "use Apache2::compat ();" but that gave me the same error.
I've tried to trace this back and I'm lost once I hit XSLoader; I've tried adding various debugging code, or creating my own "restart_count" function in ServerUtil but all to no avail.
Is there a way to print out what methods are actually loaded with the ServerUtil module in my environment?
Any suggestions as to what might be going wrong?

thank you very much in advance,
joe

In reply to Stuck trying to implement Apache2::compat.pm by joetesta

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.