Tcl version compatibility
Bradley Giesbrecht
pixilla at macports.org
Wed Sep 25 12:12:53 PDT 2013
On Sep 25, 2013, at 11:01 AM, Gustaf Neumann wrote:
> since tcl 8.5 compiles fine on Mac OS X 10.4 or 10.5, i still think, that shipping MacPorts with a private version of Tcl (as source and/or binary) gives most freedom (as discussed earlier).
I have MP tcl 8.6 built in a prefix (/opt/macports-test) not in PATH and when I build base using this tcl the required tcl packages (msgcat) are not found.
$ CC=gcc-4.2 TCLSH=/opt/macports-test/bin/tclsh ./configure --prefix=/opt/local --with-tcl=/opt/macports-test/lib --with-tclinclude=/opt/macports-test/include --with-tclpackage=/opt/macports-test/lib 1>/dev/null
configure: WARNING: GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library
configure: WARNING: No ports tree found
$ make 1>/dev/null
tracelib.c: In function 'TracelibCmd':
tracelib.c:551: warning: 'oldsock' may be used uninitialized in this function
tracelib.c:551: note: 'oldsock' was declared here
system.c: In function 'SystemCmd':
system.c:115: warning: 'profilestr' may be used uninitialized in this function
system.c:114: warning: 'sandbox_exec_path' may be used uninitialized in this function
$ sudo make install
...
/opt/macports-test/bin/tclsh src/images_to_archives.tcl "/opt/local/share/macports/Tcl"
can't find package msgcat
while executing
"package require msgcat"
(file "/opt/local/share/macports/Tcl/registry2.0/registry.tcl" line 40)
invoked from within
"source /opt/local/share/macports/Tcl/registry2.0/registry.tcl"
("package ifneeded registry 1.0" script)
invoked from within
"package require registry 1.0"
(file "src/images_to_archives.tcl" line 10)
make: *** [install] Error 1
Though tclsh directly seems to find msgcat:
$ echo 'puts $tcl_version;package require msgcat;exit 0' | /opt/macports-test/bin/tclsh
8.6
Is the base build system removing some env var that tclsh uses to find packages?
Does anyone more familiar with tcl or MP base's build system have any light to shed?
Regards,
Bradley Giesbrecht (pixilla)
More information about the macports-dev
mailing list