1. I downloaded a current Tcl source distribution (tcl8.3.4), moved
it into the same directory where the expect source directory is
located, and removed everything in it except for the header files
in the "generic" and "unix" directories
2. I copied /System/Library/Tcl/tclConfig.sh into the "unix"
directory and modified the following two settings in it:
a) I set TCL_SRC_DIR to the path of the tcl8.3.4 directory
b) I replaced all three instances of
"/private/var/tmp/tcl/tcl-3.1.obj~158" by
"/usr/lib"
This way tclConfig.sh reflects Mac OS X's Tcl installation, but
points to the downloaded header files.
3. I copied /usr/libexec/config.guess and /usr/libexec/config.sub
into the expect directory to enable expect's configure to recognize
Darwin (thanks to
http://fink.sourceforge.net/doc/porting/basics.php for the
respective hint!)
4. I ran expect's configure (without any options).
5. I added #define NO_UNION_WAIT to the resulting expect_cf.h
(since configure gets this value wrong (which, BTW, is a problem
that's lingering since the good old NEXTSTEP days for whatever
reason...))
After these steps, expect compiles just fine without any errors or
warnings, but with these messages at the end:
ranlib: file: libexpect5.34.a(exp_regexp.o) has no symbols
ranlib: file: libexpect5.34.a(exp_closetcl.o) has no symbols
ranlib: file: libexpect5.34.a(exp_memmove.o) has no symbols
Does anybody know what they mean and if they mean harm if you want
to use libexpect?
There are three tests where the compiled expect fails (expect-1.8
default remove null behavior | expect-1.9 match null inline |
send-1.2 send null). All three tests deal with the \u0000 character
(which AFAIK is the Unicode null). This seems to be a Tcl rather
than an expect issue though; is this a known problem with OS X's
Tcl?
Uli Zappe email@hidden
Lorscher Stra_e 5 http://www.ritual.org
D-60489 Frankfurt Fon: +49-700-ULIZAPPE
Germany Fax: +49-700-ZAPPEFAX
________________________________________________________
_______________________________________________
unix-porting mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/unix-porting
Do not post admin requests to the list. They will be ignored.