1. otcl & tclcl: ./configure
Error
checking Tcl http.tcl library... configure: error: Couldn't find http.tcl in /http /http2.4 /http2.3 /http2.1 /http2.0 /http1.0
Cause
Path to tcl and tk is hard-coded in otcl and tclcl.
Workaround
sudo ln -s /usr/share/tcltk/tcl8.4 /usr/share/
sudo ln -s /usr/share/tcltk/tk8.4 /usr/share/
(if you're using tcl/tk 8.5, don't forget to modify the commands according to your situation)
2. ns: linking
Error
/usr/bin/ld: ns: hidden symbol `__stack_chk_fail_local' in /usr/lib/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by DSO
Cause
Compatibility problem with gcc 4.2 (On my site I'm lucky not having problem with gcc 4.3 which is the default compiler for ubuntu 8.10.)
Workaround
Modify Line 8 of otcl's Makefile to be identical to the following line:
CFLAGS= -g -O2 -fno-stack-protector
3. nam: run-time
Error
nam: invalid command name "tcl_findLibrary"
Workaround
Comment out #if 0 in Line 330 and corresponding #endif
The change of text is shown in the following patch file.
--- main.cc.orig 2008-11-05 00:36:22.000000000 +0800
+++ main.cc 2008-11-05 00:41:06.000000000 +0800
@@ -330,13 +338,13 @@
#ifdef notdef
fprintf(stderr, "Application name is %s/n", appname);
#endif
-#if 0
+//#if 0
Tcl_Interp *interp = Tcl_CreateInterp();
if (Tcl_Init(interp) == TCL_ERROR) {
printf("%s/n", interp->result);
abort();
}
-#endif
+//#endif
#if TCL_MAJOR_VERSION < 8
Tcl_SetVar(interp, "tcl_library", "./lib/tcl7.6", TCL_GLOBAL_ONLY);
资料来源
http://ubuntuforums.org/showthread.php?p=5800683
ns wiki : troubleshoot
http://wouter.horre.be/node/76
转自: http://hi.baidu.com/%D2%C1%C2%E4%B5%A4/blog/item/4697e91feece9a0d314e1522.html