TCL embeded interpreter needs to know where the tcl files are. If TCL_LIBRARY path is not set up the following test program dies in pain on Tcl_Init(interp) : # include <tcl.h> int main() { Tcl_Interp *interp; interp = Tcl_CreateInterp(); if (Tcl_Init(interp) == TCL_ERROR) { return 1; } } This is a serious bug, affecting many autoconf scripts. Sugested fix: diff -u tcl-8.4.9.ebuild.old tcl-8.4.9.ebuild --- tcl-8.4.9.ebuild.old 2005-09-04 08:54:36.000000000 +0200 +++ tcl-8.4.9.ebuild 2005-09-04 08:43:02.000000000 +0200 @@ -86,6 +86,9 @@ cd ${S} dodoc README changes license.terms + + dodir /etc/env.d + echo >${D}/etc/env.d/50tcl 'TCL_LIBRARY="/usr/lib/tcl8.4"' } pkg_postinst() { Other versions of tcl in portage are also affected, but fixing 8.4.9 should be enough :] Reproducible: Always Steps to Reproduce:
Temporary workaround: su echo /etc/env.d/50tcl 'TCL_LIBRARY="/usr/lib/tcl8.4"' env-update source /etc/profile
ops, should be: echo >/etc/env.d/50tcl 'TCL_LIBRARY="/usr/lib/tcl8.4"'
the test program works fine without TCL_LIBRARY on my env. $ gcc -ltcl test.c $ ./a.out $ Could you put your emerge info here?
This bug is awaiting user response...