This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix expect build under cygwin + Tcl/Tk 8.3


On Mon, 15 Jul 2002, Christopher Faylor wrote:

> Again, expect is not supposed to be using the windows version of
> anything.  It is supposed to be using the cygwin/unix version.

And this is the confusing part. There are actually TWO versions of tcl
that are built for cygwin.

One attempts to be windows, using windows-style pathnames.
::tcl_platform(platform) is "windows". The other attempts to be unixy. It
has unix pathnames (afair) and ::tcl_platform(platform) is "unix".

The former is the "real" tcl/tk for cygwin. Insight uses this DLL and
import lib.

Expect, however, uses the latter DLL. AFAICT, expect is the only client
for this special DLL, and it is why we cannot disable builds in tcl/unix
for cygwin hosts.

Therefore, if there is really a problem with expect (which I also have not
observed recently, but I will kick something off to double check), this
patch appears to not be the real solution.

Yes, it took me quite some time to figure all of this out! (Imagine my
confusion when I would run tclsh, type "set ::tcl_platform(platform)" and
get "windows", but I would run expect and get "unix"!)

Keith


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]