[tcltk-perl] building Perl/Tcl for TclTkAquaBI 8.4.10 problem (resolved)
Brought to you by:
hobbs
From: Konovalov, V. <vko...@sp...> - 2005-07-27 17:26:36
|
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 > > |