In the same naive spirit, I would offer that using the same compiler for building perl and its extensions seems more likely to succeed. If I could reason about symbols and libraries and memory addresses, I would be able to explain why. I know in some ways it isn't especially complicated, but you do need to learn how to reason about it, which is possible only through actually debugging experience, at least for myself.

Tk isn't especially easy to compile. Since so many perl modules are available through Debian, it's a suitable development environment in that it gets you a compiled Tk for free. When I compile Tk for myself, under whichever perl version, I always have to force it to install as there is always a failing test. I just believe and pray I won't touch that code because I never bothered to try and figure it out. Up to now I've been a rather pedestrian user. No nuclear reactors depend on my code!

I'm aware there's another Tk interface for perl, Tkx. I've never touched it, but understand it is closer to Tcl/Tk than the more perlish Tk. Perhaps Tkx will compile and work for your app under clang.


In reply to Re^2: Tk-804.036 build failure by gnosti
in thread Tk-804.036 build failure by perlboy_emeritus

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.