Ethereal-dev: Re: [Ethereal-dev] Win32 compile error in 'epan'

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Sat, 27 Oct 2001 18:00:33 -0700
On Fri, Oct 26, 2001 at 01:57:17PM -0400, Mike Frisch wrote:
> I searched the mailing list archives and did not find any reference to
> this Win32 compilation error:

That's because, if you build from the source tree without having done a
build beforehand, there isn't a "config.h" in the "epan" directory; the
"Makefile.nmake" in "epan" would copy "config.h.win32" to "config.h"
eventually, because "ethereal.lib" depends on it and building "all"
builds "ethereal.lib", but it wouldn't do so before building stuff in
the "ftypes" or "dfilter" directory, as "all" builds them first, and
neither of them depended on "config.h".

I've updated "Makefile.nmake" to make both "ftypes" and "dfilter" depend
on "config.h"; doing so caused the compile error to show up for the
first time in my source tree.

> The patch is as follows:

Checked in.  (Your patch appears to have had tabs replaced by spaces,
which caused "patch" to fail to apply it; perhaps your mail program does
that, so you might want to send patches as attachments, even if they're
small, in the hopes that the mail program will leave the text in the
patch file alone.)