Re: [rt.cpan.org #56721] CPAN build of Tcl fails on darwin x86_64

[email protected] (Jeff Hobbs)
Newsgroups perl.tcltk
Message-ID <[email protected]>
Hi Vadim,

On 2010-04-20, at 7:44 AM, Konovalov, Vadim (Vadim)** CTR ** wrote:
> the bug report below contains the bug description and also a suggestion for solving the problem. 
> Should we provide better libtclstub8.4.a for the mentioned platform?
> Does the binary coming with ActiveTCL 8.4/8.5 do the trick?

No, we aren't doing 64-bit in the fat binaries yet, just ppc+x86.  We do plan to add that in the future, possibly later this year.

> I wanted to report that installing Tcl-0.98 from CPAN fails on Mac OS X 10.6,
> because Tcl-0.98/tcl-core/darwin-universal/libtclstub8.4.a doesn't contain code for all required architectures.
> Apple ships Snow Leopard with Perl 5.10.0, built as universal binary for
> x86_64, i386 and ppc. The default CPAN compilation options contain thus
> "-arch x86_64 -arch i386 -arch ppc", for both compilation and linking.
> The included libtclstub8.4.a on the other hand has only an i386 and a ppc component.
> There is a /System/Library/Frameworks/Tcl.framework/Versions/8.4/libtclstub8.4.a that
> contains all three architectures, so I assume it would be better to use this instead and fall back to the included version when it's not available?
> Both Tcl and Tkx test and install flawlessly if I make a symlink to the system version of the library.

Correct, using the system one should work fine.  Note that the system one in Snow Leopard is a Cocoa-based Tk (as opposed to the Carbon one in Leopard and what is currently in ActiveTcl 8.5).  ActiveTcl will ship the Cocoa-based one when we move to 8.6.  Don't mix Snow Leopard and AT 8.5 Tk extensions - it may lead to bad results.

Jeff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.