Ethereal-users: Re: [Ethereal-users] Compiling question.

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Wed, 3 Jan 2001 17:11:24 -0800
On Wed, Jan 03, 2001 at 04:57:10PM -0800, Jae Kim wrote:
> I am newbie to ethereal. I want to compile the source code on window's
> platform.
> I followed the instructions in README file but I failed.
> I modified config.nmake and tried to compile ethereal. I got following error
> message. 
> Why unix shell script is here in makefile.nmake ? 

Because the script is necessary to generate one of the files in
Ethereal's source code.

The standard release distributions come with that file ("register.c"),
but if all you're doing is compiling the standard release distribution,
you could just run the binary distribution for Windows and save yourself
some trouble.

If you're *not* building from the standard release distribution - for
example, you're building the current CVS tree - you need to generate
that file, because the contents of that file depend on the contents of
all the "packet-*.c" files, so we don't put it into the CVS tree
(if we did, somebody might check in a change to one of the "packet-*.c"
files that would cause "register.c" to change, and not check in the
updated "register.c" file; that has happened in the past, and the
easiest way to keep it from happening is not to put "register.c" into
the CVS tree).

Or, if you're building from source because you plan to *change* some of
the files and do your own development, you might change one of the
"packet-*.c" files in such a way that means "register.c" would change,
so, again, "register.c" would have to be generated (we'd rather not take
the risk of somebody using an out-of-date "register.c" file, even if
they think they're not going to change any file in such a way as to
change "register.c", because it's usually a time-consuming process
debugging the results of an out-of-date "register.c" file).

So if you're going to be building from source, you'll need a
UNIX-compatible shell on your system, even if your system is Windows.

Furthermore, you'll also need a number of *other* utilities; see the
"Instructions for MS Visual C" section of the "README.win32" file in the
source distribution.

> Does anyone know how to compile ethereal on windows with MSVC ?

Read the directions in the "Instructions for MS Visual C" section of the
"README.win32" file, and download and install the tools it mentions
(Cygwin and Python), or build the files on a UNIX system.