Ethereal-dev: Re: [Ethereal-dev] Build problems in gtk/: auto_scroll_live undeclared

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

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Mon, 8 Mar 2004 01:53:29 +0100
On Sun, Mar 07, 2004 at 04:24:25PM +0100, Joerg Mayer wrote:
> While testing the shared libs patches on Solaris, I ran into the following
> problem (building with gtk1):
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I..  -I.. -I../wiretap  -I/usr/local/include  -DINET6 -DSOLARIS8_INET6 -D_U_="__attribute__((unused))" -Wall -W -g -O2 -Wno-return-type -DFUNCPROTO=15 -I/usr/local/include -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -I/usr/openwin/include -c `test -f 'menu.c' || echo './'`menu.c
> menu.c: In function `auto_scroll_live_cb':
> menu.c:1242: `auto_scroll_live' undeclared (first use in this function)
> menu.c:1242: (Each undeclared identifier is reported only once
> menu.c:1242: for each function it appears in.)
> menu.c: In function `menu_recent_read_finished':
> menu.c:1279: `auto_scroll_live' undeclared (first use in this function)
> *** Error code 1
> make: Fatal error: Command failed for target `menu.o'
> Current working directory /mnt/disk1/home/maint/tmp/joerg/ethereal-0.10.2/gtk
> 
> I don't have time to look into it right now - ideas/fixes anyone?

OK, found the reason but didn't fix it: I built the whole thing with
--without-pcap. file.c only declares it only when HAVE_LIBPCAP is defined.
It also isn't declared in file.h.
Can whoever wrote the code fix this please.

 thanks
               Jï¿œrg

-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.