Wireshark-dev: Re: [Wireshark-dev] Compilation error Red Hat 3.4.3-9.EL4

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Thu, 28 Apr 2011 23:05:17 -0700
On Apr 28, 2011, at 10:48 PM, Anders Broman wrote:

> It seems like Wireshark no longer compiles if zlib is 1.2.1:
> 
> file_wrappers.c: In function `file_seek':
> file_wrappers.c:893: warning: implicit declaration of function `inflatePrime'
> make: *** [libwiretap_la-file_wrappers.lo] Error 1
> 
> file_wrappers.c:
> 	893: (void)inflatePrime(strm, here->data.zlib.bits, ret>>  (8 - here->data.zlib.bits));
> 
> Should we require a newer version of zlib?

Perhaps - or, at least, require it to support reading gzipped files.

According to some research I did a while ago, the routines used for access to gzipped files:

	inflateInit2() - added in 0.4 (date unknown, but prior to 11 April 1995)
	inflate() - there since Day One?
	inflateEnd() - there since Day One?
	inflatePrime() - added in 1.2.2.4 (11 July 2005)
	inflateSetDictionary() - added in 1.2.2.1 (31 October 2004)
	inflateReset() - there since at least 0.9 (1 May 1995)