2011年4月13日 星期三

tcl/tk/expect

Building tcl-8.5.9

fixstrtod.o: In function `fixstrtod':
fixstrtod.c:(.text+0x0): multiple definition of `fixstrtod'
strtod.o:strtod.c:(.text+0x0): first defined here
collect2: ld returned 1 exit status
Fixed by:
buildroot-2010.05/package/tcl/tcl-8.4.19-strtod.patch

diff --git a/tcl8.5.9/compat/strtod.c b/tcl8.5.9/compat/strt
index 9e494b1..c79aeaf 100644
--- a/tcl8.5.9/compat/strtod.c
+++ b/tcl8.5.9/compat/strtod.c
@@ -23,6 +23,8 @@
#define NULL 0
#endif

+#undef strtod
+
static int maxExponent = 511; /* Largest possible base 10 exponent. Any
* exponent larger than this will already
* produce underflow or overflow, so there's


Installing message catalogs
./tclsh: 1: Syntax error: word unexpected (expecting ")")
make[4]: *** [install-msgs] Error 2
Fixed by:
diff --git a/tcl8.5.9/unix/Makefile.in b/tcl8.5.9/unix/Makef
index 183dbb6..6154698 100644
--- a/tcl8.5.9/unix/Makefile.in
+++ b/tcl8.5.9/unix/Makefile.in
@@ -809,14 +809,14 @@ install-tzdata: ${TCL_EXE}
@echo "Installing time zone data"
@@LD_LIBRARY_PATH_VAR@="`pwd`:$${@LD_LIBRARY_PATH_VAR@}"; export @LD_LIB
TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \
- ./${TCL_EXE} $(TOOL_DIR)/installData.tcl \
+ ${TCL_EXE} $(TOOL_DIR)/installData.tcl \
$(TOP_DIR)/library/tzdata "$(SCRIPT_INSTALL_DIR)"/tzdata

install-msgs: ${TCL_EXE}
@echo "Installing message catalogs"
@@LD_LIBRARY_PATH_VAR@="`pwd`:$${@LD_LIBRARY_PATH_VAR@}"; export @LD_LIB
TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \
- ./${TCL_EXE} $(TOOL_DIR)/installData.tcl \
+ ${TCL_EXE} $(TOOL_DIR)/installData.tcl \
$(TOP_DIR)/library/msgs "$(SCRIPT_INSTALL_DIR)"/msgs

install-doc: doc


misleading error syntax error: word unexpected (expecting ")"
http://gaoithe.blogspot.com/2009/08/misleading-error-syntax-error-word.html

Building Expect
configure: error: Expect can't be cross compiled
Huh?? OMG....
If expect have to be built with native compiler, implies tcl/tk needs to be build natively, since expect need tcl source....

Re: TCL working, now an issue with Expect
http://comments.gmane.org/gmane.linux.distributions.gumstix.general/4566
I was able to google one newgroup posting on the
subject. Here is an excerpt of that post:

"Expect can't be cross compiled until someone takes
pain to write default actions for each AC_TRY_RUN
which would do anything sensible rather than just
complain.


Cross-compiling expect
https://linuxlink.timesys.com/cross_compiling_expect



Tcl Developer Site
http://www.tcl.tk/

How to Compile Tcl
http://www.tcl.tk/doc/howto/compile.html

The Linux Tcl and Tk HOWTO
http://tldp.org/HOWTO/TclTk-HOWTO.html

Tcl 语法 - Linux - Linux教程
http://linux.sheup.com/linux/linux5707.htm

Dai : 程式設計心得: 1.Tcl/Tk 快速上手
http://blog.got7.org/2009/06/1tcltk.html


Expect
http://www.nist.gov/el/msid/expect.cfm

Expect | Download Expect software for free at SourceForge.net
http://sourceforge.net/projects/expect/

linux下编译安装expect at Validba'S Home
http://www.validba.net/2010/03/linux%E4%B8%8B%E7%BC%96%E8%AF%91%E5%AE%89%E8%A3%85expect/

瘋狂帽客's Blog: Tcl + expect 簡單實作
http://go-linux.blogspot.com/2008/07/tcl-expect.html

沒有留言: