Ethereal-dev: [Ethereal-dev] check for NEED_GETOPT_H missing from configure.in?

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

From: Tim Potter <tpot@xxxxxxxxx>
Date: Tue, 15 Oct 2002 15:43:16 +1000
OK silly question time: I'm having trouble building ethereal:

gcc -DHAVE_CONFIG_H -I. -I. -I..   -I.. -I../wiretap
-I/usr/local/include  -DINET6 -D_U_="__attribute__((unused))" -Wall -W
-g -O2 -I.. -I../wiretap -I/usr/local/include -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -c
main.c
main.c: In function `main':
main.c:1450: warning: implicit declaration of function `getopt'
main.c:1696: `optind' undeclared (first use in this function)
main.c:1696: (Each undeclared identifier is reported only once
main.c:1696: for each function it appears in.)
make[2]: *** [main.o] Error 1

I've tracked it down to the fact that the NEED_CONFIG_H define is not
being written to config.h.in by autoheader.  Now I think this is because
there is no check and corresponding AC_DEFINE for it in configure.in.

Has anyone else been seeing this recently or is my flu medication
affecting my brain somehow?


Tim.