Ethereal-users: Re: [Ethereal-users] Problem compiling 0.9.7

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: Thu, 14 Nov 2002 11:40:08 -0800
On Thu, Nov 14, 2002 at 07:36:24PM +0000, Geoff wrote:
> I am new to ethereal and I have been trying to compile 0.9.7.  A
> simple ./configure completes without problems - except that I get
> "Use zlib library : no" when I do in fact have zlib.

You would have to look at the configure script output, and the
"config.log" file, to see why it didn't find zlib.

> main.c: In function `main':
> main.c:1445: warning: implicit declaration of function `getopt'
> main.c:1691: `optind' undeclared (first use in this function)
> main.c:1691: (Each undeclared identifier is reported only once
> main.c:1691: for each function it appears in.)

Apply to "gtk/main.c" the attached patch.
Index: gtk/main.c
===================================================================
RCS file: /usr/local/cvsroot/ethereal/gtk/main.c,v
retrieving revision 1.268
retrieving revision 1.269
diff -c -r1.268 -r1.269
*** gtk/main.c	24 Oct 2002 07:08:24 -0000	1.268
--- gtk/main.c	25 Oct 2002 00:29:10 -0000	1.269
***************
*** 43,48 ****
--- 43,52 ----
  
  #include <string.h>
  #include <ctype.h>
+ 
+ #ifdef HAVE_UNISTD_H
+ #include <unistd.h>
+ #endif
  
  #ifdef HAVE_IO_H
  #include <io.h> /* open/close on win32 */