From: David Gravereaux on
On 17 Oct 2006 14:58:54 -0700, Wolfgang0815(a)gmx.de wrote:

>exp_command.c:24:23: sys/ioctl.h: No such file or directory

It *IS NOT* possible to build Expect (using the sources that are for UNIX)
with MinGW (period). MinGW is not a cross-compiler the way cygwin is.
MinGW builds native executables. Think "#include <windows.h>". Get it?
No place in the Win32 platform SDK is a "sys/ioctl.h" file found. Why?
Because windows is not POSIX. MinGW builds native, not crossed through
the services of cygwin.

Get the windows source for Expect at:
ftp://tcl.activestate.com/pub/incoming/expect-src.zip . That can build
for windows, but lacks a Makefile.in. You will have to create one
yourself. Use makefile.vc as a starting point. These sources are not the
same as the ones on sourceforge for the Expect project. They are separate
and have not (yet) been merged into a single source tree.

Don't waste your time fighting a missing build system either, just get a
pre-built expect for windows with the ActiveTcl release... You're done.

http://www.activestate.com/Products/ActiveTcl/

Now stop asking how to build a UNIX project with a windows compiler.
From: Wolfgang0815 on
Hi David,

> It *IS NOT* possible to build Expect (using the sources that are for UNIX)
> with MinGW (period).
Thanks - that's the information I needed.

> Now stop asking how to build a UNIX project with a windows compiler.
I'm just not an expert, maybe that's why I'm posting questions. I
didn't want to waste your time.

Yours,
Wolfgang

From: Eckhard Lehmann on

Wolfgang0815(a)gmx.de wrote:

you should state more clearly that

> * Execute "make"

was meant for the expect sources and not the Tcl sources ;-).

> exp_command.c
> exp_command.c:24:23: sys/ioctl.h: No such file or directory
[...]

All those messages tell you that certain things are not found in the
build environment. There is no ioctl.h in MinGW/include/sys, nor is it
in msys/local/include. These files as well as spawn(), fork() etc. are
unix/posix related. They are not available on windows and hence not in
MinGW. MinGW is just a posix wrapper around the things that are
available on windows (contrahery to cygwin).
As David G. said, the best is really to use the prebuilt Expect from
ActiveTcl, as long as you don't want to hack on expect itself...


Eckhard

From: David Gravereaux on
On 23 Oct 2006 05:36:14 -0700, Wolfgang0815(a)gmx.de wrote:

>Hi David,
>
>> It *IS NOT* possible to build Expect (using the sources that are for UNIX)
>> with MinGW (period).
>Thanks - that's the information I needed.
>
>> Now stop asking how to build a UNIX project with a windows compiler.
>I'm just not an expert, maybe that's why I'm posting questions. I
>didn't want to waste your time.

If it took me a second reply in this thread to say the same thing, then so
be it.
From: David Gravereaux on
On 23 Oct 2006 05:57:32 -0700, "Eckhard Lehmann" <ecky-l(a)web.de> wrote:

>As David G. said, the best is really to use the prebuilt Expect from
>ActiveTcl, as long as you don't want to hack on expect itself...

Now if one wants to hack away at Expect for windows, the Microsoft
compiler is needed for the existing build stuff (as is).

That code does need to get merged with the existing (formal) Expect
sources, if one wants to hack away at it. That work would be most welcome
by all :)

It won't be easy.. I forewarn.
First  |  Prev  | 
Pages: 1 2
Prev: Expect in a shell pipe
Next: oratcl 4.4 on aix