Ethereal-dev: Re: [Ethereal-dev] Compiling Ethereal

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 15:12:53 -0800
On Wed, Jan 03, 2001 at 05:57:09PM -0500, Jason House wrote:
> I believe that I am using the wrong source for libpcap... I think that I
> need WinPcap, but the server netgroup-serv.polito.it never responds... 

No, that *is* the official source for WinPcap; it just happens to be
unavailable on occasion (and available on other occasions - it was up
yesterday, for example).

> Does anybody know of an alternate location that I can obtain the correct
> file?

One mirror Fulvio Risso mentioned at one point was

	http://www.datanerds.net/~mike/netgroup-serv.polito.it/winpcap/

which seems to be up right now.

> (I obtained the file libpcap-0.5.2.tar.gz from some other source,
> but it gives me a number of compilation errors)

You probably obtained it from tcpdump.org, and it gives compilation
errors because it's source code for UNIX, not for Windows - WinPcap is
the Windows port of the standard libpcap (although 2.02 is a port of
libpcap 0.4a6, not of 0.5.2 - the currently-in-beta WinPcap 2.1 is a
port of 0.5.2).

> I also get a lot of "warning C4761: integral size mismatch in argument;
> conversion supplied" messages when I compile the code.  Two examples are
> gtk/main.c(508) and epan/resolv.c(225).  Is this normal or a sign of
> other troubles?

It's a sign of Microsoft's C compiler being noisy; I think those are all
safe conversions (they're certainly not *illegal* C statements, and
those aren't Windows-specific or MSVC-specific conversions, GCC just
doesn't happen to warn about them when used with just "-Wall").

> I copied time.h to sys\time.h (in C:\Program Files\Microsoft Visual
> Studio\VC98\include\).  Before doing that I was getting an error that
> the system could not find "sys/time.h"

That's odd - I don't remember doing that, but I've been able to compile
the software with MSVC 6.0 just fine.

> I've altered config.make to indicate the paths where I decompressed the
> following files: glib-dev-200000805.zip, gtk+-dev-20000722.zip, and
> libpcap-0.5.2.tar.gz.  Are there any other files that I will need to
> modify?

You don't want to use the "libpcap-0.5.2.tar.gz" stuff, as it's not
going to compile on Windows, and you need compiled versions of the
libraries.  Get WinPcap 2.02 from the mirror I mentioned above.