What might be called an authoritative report is at ActiveState, in
their Perl Package Manager online index page for Tk (http://
code.activestate.com/ppm/Tk/).
Go to that page and you will see that they have not successfully built
either 804.029 or 804.028 for Perl 5.8, 5.10, 5.12, or 5.14! If
anybody could build it, one would think that the people who maintain
ActiveState's perl repository could do so.
The identical issue was reported to Macports (https://
trac.macports.org/ticket/26152), and at Cpan Testers (http://
www.cpantesters.org/cpan/report/07607682-b19f-3f77-b713-d32bba55d77f)
and other places -- just google for the phrase "-M options are not
allowed" with "Tk".
There is a basic error in the Makefile for the png sub-library, an
invalid combination of gcc options that stops the make cold, "cpan
force install" can't get over it.
I have no idea where this should be reported -- since it has been
reported multiple places multiple times over 15 months with no result,
it appears that perl/Tk is simply dead on the Mac platform and has
been for a year.
Nor can you install it with `cpan` on linux. And the patch is
available, the Linux distros can create a package and install it via
their package manager(s). Not good if you are using perlbrew to run
the latest and greatest version of perl. A sad state of affairs.
Available where? If I could see the patch code, maybe I could apply it
manually on my system?
I've looked around and don't see where the Perl/Tk source is
maintained.
Here: http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=33;filename=fix-ftbs.dpatch;att=1;bug=613188
You would have to download the Tk tarball, apply the patch, and
compile it by hand; no cpan. :( I haven't got around to trying this
yet.
Thank you for the pointer. Unfortunately, the bug number you give
(613188- conflicting types for XKeycodeToKeysym) may affect Linux, but
is not the problem that kills the build on OS X.
And the OS X problem -- a fairly simple-looking error in gcc command
parameters in the libpng makefile -- isn't one of the two (2!?) bugs
in the Debian tracker for perl-tk.
If you can make libpng, then try looking for bug reports under that
name. Perl/Tk is just one of many packages that use it. Another
would be WxWidgets.