Ethereal-dev: [Ethereal-dev] Problem building ethereal 0.10.12 without libpcap

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

From: "Magnus Ljung" <magnus.ljung@xxxxxxxxxx>
Date: Fri, 9 Sep 2005 09:13:32 +0200
Hi,

I'm trying to build ethereal 0.10.12 on Solaris 10 wihtout libpcap support,
but there seems to be a problem when compiling gtk/dlg_utils.c:

if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I.. -I../wiretap  -I/usr/local/include
-D_U_="__attribute__((unused))" -Wall -W  -g -O2 -Wno-return-type
-DFUNCPROTO=15 -I/usr/local/include -D_REENTRANT -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/openwin/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-MT dlg_utils.o -MD -MP -MF ".deps/dlg_utils.Tpo" -c -o dlg_utils.o
dlg_utils.c; \
then mv -f ".deps/dlg_utils.Tpo" ".deps/dlg_utils.Po"; else rm -f
".deps/dlg_utils.Tpo"; exit 1; fi
dlg_utils.c: In function `dlg_button_row_new':
dlg_utils.c:138: error: `ETHEREAL_STOCK_CAPTURE_START' undeclared (first use
in this function)
dlg_utils.c:138: error: (Each undeclared identifier is reported only once
dlg_utils.c:138: error: for each function it appears in.)
*** Error code 1

Looking through the code I see that ETHEREAL_STOCK_CAPTURE_START is only
defined when HAVE_LIBPCAP is set, perhaps it should be set even if it is
unset?

/Magnus