Ethereal-dev: Re: [ethereal-dev] random data on dump window

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Tue, 12 Oct 1999 16:05:26 -0700 (PDT)
> 	without any option to configure, it have found OS-supplied libz.a
> 	(/usr/lib/libz.a) and it caused the trouble.
> 	With --disable-zlib, the code worked just fine.  I'll try to find
> 	more fundamental way of solving this.

Try configuring with zlib, put

	#define	HAVE_UNISTD_H	1

in "wtap.h" just before the

	#include "zlib.h"

line, and recompile; then see if that works.

If it works, it may be that the NetBSD "zlib" is built with a 64-bit
"z_off_t", while the FreeBSD "zlib" is built with a 32-bit "z_off_t", so
that the NetBSD one doesn't work with programs that *don't* define
HAVE_UNISTD_H before including "zlib.h" while the FreeBSD one doesn't
work with programs that *do* define it.