jbrose has asked for the wisdom of the Perl Monks concerning the following question:

Hello

We have recently upgraded to PERL 5.8.8. Upon running several of our PERL scripts we get this error...

Undefined subroutine &Config::System::__GNUC_PATCHLEVEL__ called at (eval 263) line 1

Apparently we have omitted something when we installed 5.8.8? Any insight into this message would be appreciated.

Thanks
John

Replies are listed 'Best First'.
Re: __GNUC_PATCHLEVEL__ error....
by jasonk (Parson) on Oct 02, 2006 at 17:17 UTC

    You probably have XS modules that need to be recompiled against the new version of perl. The easiest way to do this is with the CPAN module. You can recompile everything in one shot using cpan -r.


    We're not surrounded, we're in a target-rich environment!
Re: __GNUC_PATCHLEVEL__ error....
by ysth (Canon) on Oct 03, 2006 at 04:37 UTC
    Can you tell us anything about Config::System? What did you upgrade from?
Re: __GNUC_PATCHLEVEL__ error....
by backstrom (Novice) on Jul 23, 2007 at 17:51 UTC
    This has also been seen on Solaris 10 when Perl 5.8.8 was compiled... running anything that calls ccompile.ph returns the GNUC_PATCHLEVEL error.

    We are using gcc 3.4.3 and the following was already defined in _h2ph_pre.ph with our build:

      unless (defined &__GNUC_MINOR__) { sub __GNUC_MINOR__() { 4 } }
    
      unless (defined &__GNUC__) { sub __GNUC__() { 3 } }
    

    We added this line with a manual edit in _h2ph_pre.ph to include the missing subroutine (defining the patchlevel x.x.3):

      unless (defined &__GNUC_PATCHLEVEL__) { sub __GNUC_PATCHLEVEL__() { 3 } }
    

    Hope this helps!

    Jon Backstrom