Problems building Tcl and Expect in MinGW
- From: Wolfgang0815@xxxxxx
- Date: 28 Sep 2006 12:33:09 -0700
Hi everyone,
I'm currently trying to install Tcl and Expect in MinGW. My further
goal is to build Dejagnu and then to run the gcc test-procedure.
Unfortunately I'm a newbie to this and not used to handle things like
configure-scripts etc.
Here is what happened:
* Started with: Win2kSP4 (never touched by MinGW & Co before)
* Execute MinGW-5.0.3.exe, which installs previously
downloaded files to "C:\MinGW":
* binutils-2.15.91-20040904-1.tar.gz
* gcc-ada-3.4.2-20040916-1.tar.gz
* gcc-core-3.4.2-20040916-1.tar.gz
* gcc-g++-3.4.2-20040916-1.tar.gz
* gcc-g77-3.4.2-20040916-1.tar.gz
* gcc-java-3.4.2-20040916-1.tar.gz
* gcc-objc-3.4.2-20040916-1.tar.gz
* mingw32-make-3.80.0-3.tar.gz
* mingw-runtime-3.10.tar.gz
* w32api-3.7.tar.gz
* Execute MSys-1.0.10.exe, which installs itself into
"C:\msys\1.0". After that "post install":
* "Do you have MinGW installed?" -> "y"
* "Where is your MinGW installation?" -> "C:/MinGW"
* "You do not have C:/MinGW/bin/make.exe.
Keep it that way."
* Start MSYS
* Execute "cd tcl8.5a4/win/"
* Execute "./configure --prefix=/mingw"
* Execute "make"
* Execute "make install"
* Execute "make test"
Here occur some errors (I only quote the lines describing the errors):
----------------------------------------------------------------
==== clock-49.2 regression test - missing time zone file (Bug 1237907)
FAILED
==== Contents of test case:
list [::tcl::clock::GuessWindowsTimeZone] [clock format 0
-locale system -format "%X %Z"] [clock format -86400 -format "%Y"]
---- Result was:
<-0500>+05:00:00<-0400>+04:00:00,M4.1.0/02:00:00,M10.5.0/02:00:00 {
7:00:00 NACHM. -0500} 1969
---- Result should have been (exact matching):
<-0500>+05:00:00<-0400>+04:00:00,M4.1.0/02:00:00,M10.5.0/02:00:00 {
7:00:00 PM -0500} 1969
==== clock-49.2 FAILED
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
==== winFile-4.0 Enhanced NTFS user/group permissions: test no acccess
FAILED
==== Contents of test case:
# Clean out all well-known ACLs
catch {cacls $fname /E /R "Everyone"} result
catch {cacls $fname /E /R $user} result
catch {cacls $fname /E /R $owner} result
cacls $fname /E /P $user:N
test_access $fname 0 0
---- Test setup failed:
getuser: Owner not found in output of dir/q
---- errorInfo(setup): getuser: Owner not found in output of dir/q
while executing
"error "getuser: Owner not found in output of dir/q""
(procedure "getuser" line 17)
invoked from within
"getuser $fname"
invoked from within
"set owner [getuser $fname]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $setup"
---- errorCode(setup): NONE
==== winFile-4.0 FAILED
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
all.tcl: Total 22484 Passed 21649 Skipped 833 Failed
2
Sourced 134 Test Files.
Files with failing tests: clock.test winFile.test
----------------------------------------------------------------
I ignored this and went on:
* Execute "cd ../../expect-5.43/"
* Execute "./configure --prefix=/mingw --verbose"
This gives "configure: error: Can't find Tcl private headers"
So I tried
* Execute "./configure --prefix=/mingw --verbose
--with-tcl=../tcl8.5a4/win --with-tclinclude=../tcl8.5a4/generic"
which seemd to work, but then
* Execute "make"
resulted in
----------------------------------------------------------------
gcc -c -I. -I. -I/home/Administrator/tcl8.5a4/generic
-DEXP_VERSION=\"5.43.0\" -DSCRIPTDIR=\"/mingw/lib/expect5.43\"
-DEXECSCRIPTDIR=\"/mingw/lib/expect5.43\" -DTCL_DEBUGGER
-DUSE_NON_CONST -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\""
exp_command.c
exp_command.c:24:23: sys/ioctl.h: No such file or directory
exp_command.c:210: warning: 'expStateFromChannelName' defined locally
after being referenced with dllimport linkage
exp_command.c: In function `expBusy':
exp_command.c:310: error: `F_DUPFD' undeclared (first use in this
function)
exp_command.c:310: error: (Each undeclared identifier is reported only
once
exp_command.c:310: error: for each function it appears in.)
exp_command.c: At top level:
exp_command.c:479: warning: 'expCloseOnExec' defined locally after
being referenced with dllimport linkage
exp_command.c: In function `expCloseOnExec':
exp_command.c:481: error: `F_SETFD' undeclared (first use in this
function)
exp_command.c: In function `Exp_SpawnCmd':
exp_command.c:1050: error: `F_DUPFD' undeclared (first use in this
function)
exp_command.c:1218: warning: passing arg 2 of `execvp' from
incompatible pointer type
exp_command.c: At top level:
exp_command.c:1721: warning: 'exp_i_update' defined locally after being
referenced with dllimport linkage
exp_command.c: In function `Exp_CloseObjCmd':
exp_command.c:2345: error: `F_SETFD' undeclared (first use in this
function)
exp_command.c: In function `Exp_DisconnectCmd':
exp_command.c:2761: error: `SIGHUP' undeclared (first use in this
function)
exp_command.c: In function `Exp_OverlayCmd':
exp_command.c:2881: error: `SIGQUIT' undeclared (first use in this
function)
exp_command.c:2882: warning: passing arg 2 of `execvp' from
incompatible pointer type
exp_command.c: At top level:
exp_command.c:3042: warning: 'exp_flageq_code' defined locally after
being referenced with dllimport linkage
make: *** [exp_command.o] Error 1
----------------------------------------------------------------
I tried to be brief, but the error messages are quite long.
I also found this article:
http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/924e0197f82edc21/2faf2e3169396929
This describes a similar problem, but I don't understand everything of
that.
Does anyone know how to build and install Tcl and Expect (and maybe
Dejagnu) in MinGW?
Thanks in advance for any help!
Sorry for my crappy english!
Wolfgang
.
- Follow-Ups:
- Prev by Date: Re: Closures
- Next by Date: Re: Tk: how to handle platform differences in keyboard autorepeat?
- Previous by thread: Can I run tcl on my Palm Pilot (Tungsten E)?
- Next by thread: Re: Problems building Tcl and Expect in MinGW
- Index(es):
Relevant Pages
|