Another option would be to update the compiler options to add "-std=c89"

That's pretty easy to try out if you think it might help.
The following is a simple technique that I've used many times on Windows ... and I think it would be just as affective on other systems (but I haven't tested that).
In one of your @INC directories, just create a .pm file named (say) AltConfig.pm, which contains (eg):
package AltConfig; use warnings; use Config; my $ccflags = $Config{ccflags}; $ccflags .= ' -std=c89'; my $obj = tied %Config; $obj->{ccflags} = $ccflags; 1;
Then set the PERL5OPT environment variable to contain -MAltConfig
That will probably mean that you have to create that environment variable - but I don't rule out the possibility that PER5OPT already exists (in which case you simply add -MAltConfig to it.)
For as long as that environment variable contains that spec, the AltConfig module will be loaded whenever Perl is invoked, and $Config{ccflags} will have the "std=c89" flag appended to it.
You can easily verify this by running perl -V:ccflags

Inside AltConfig.pm you can alter ccflags (or any other %Config key) to specify precisely whatever you want.
Reverting to your original perl setup is then as simple as removing -MAltConfig from the PERL5OPT environment variable.

I don't know if that will prove to be useful in fixing your issue ... but it's simple enough to try out, if you want.

Cheers,
Rob

In reply to Re^5: cpanm Tk build errors by syphilis
in thread cpanm Tk build errors by thimes

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.