Subject: | errors from generated "static" declarations |
ExtUtils-ParseXS-3.05 (using perl 5.14.1 or 5.14.2) breaks compilation
of eg. Devel-DProf-20110802.00:
at least, gcc 4.5.1 cannot compile DProf.c generated from DProf.xs, error:
static declaration of 'XS_Devel__DProf_END' follows non-static declaration
inspecting the generated DProf.c shows, that there is
XS(Devel__DProf_END), copied from the beginning of DProf.xs, and later
there is XS_EUPXS(XS_Devel__DProf_END), generated by ExtUtils::ParseXS,
where XS() expands to "void..." and XS_EUPXS() expands to "static void..."
using ExtUtils-Parse-3.04, installing the Devel-DProf module works
otoh, this might be a matter of sloppy programming within DProf.xs ?