[tcltk-perl] building Perl/Tcl for TclTkAquaBI 8.4.10 problem (resolved)
by Vadim Konovalov other posts by this author
Jul 27 2005 10:27AM messages near this date
RE: [tcltk-perl] Tcl::Tk 0.88 timing?
|
[tcltk-perl] Tcl-0.88 latest changes and plans
Dear all,
Mac OS 10.3 user reports a poblem which was solved by providing defaults.
I am inclined to apply a change, but I have no chance to check it for MacOS.
Here is explanation and then patch at the bottom:
> I experienced difficulty building Tcl under Mac OS 10.3 against TclTkAquaBI
8.4.10 (http://tcltkaqua.sourceforge.net/) using the default invocation of
Makefile.PL. It builds fine (AND passes the self-test) if you invoke
Makefile.PL with --tclconfig /usr/lib/tclConfig.sh. Since this is the
location reported by tclsh tclcfg.tcl, maybe the best way to deal with this
is to force the Darwin build through the --tclconfig. I have appended the
canonical information, and the output of some commands. The diff -u output
at the end implements the suggested patch.
> # diff -u Makefile.{OLD,PL}
> --- Makefile.OLD Wed Jan 12 12:40:15 2005
> +++ Makefile.PL Sun Jul 24 12:25:12 2005
> @@ -69,7 +69,14 @@
> # If using stubs, we will set the LIB_RUNTIME_DIR and TCL_LIB_FILE
> # to point to the install location as the default dll to load.
>
> -if ($tclconfig) {
> +if ($tclconfig || $^O eq 'darwin') {
> + unless ($tclconfig) {
> + open(TCLSH, "$tclsh tclcfg.tcl |") or die "error starting tclsh:
$!\n";
> + my $tclcfg = join '', <TCLSH>;
> + close(TCLSH);
> + my %tclcfg = $tclcfg =~ /^([^=]+)=(.*?)\n/gm;
> + $tclconfig = $tclcfg{'tclConfig.sh'};
> + }
> die "Tcl config file '$tclconfig' not found\n" unless (-f $tclconfig);
>
> # Retrieve all info based on tclConfig.sh
>
>
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Tcltk-perl mailing list
Tcltk-perl@[...].net
https://lists.sourceforge.net/lists/listinfo/tcltk-perl
|