in reply to __GNUC_PATCHLEVEL__ error....

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