On Tue, Jan 15, 2002 at 05:18:19PM -0500, R. P. Channing Rodgers, M.D. wrote:
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/depot/package/ethereal_0.9.0/include -I/depot/include -I../.. -I../../wiretap -I../../epan -I/usr/local/include -Wall -W -Wno-unused -g -O2 -Wno-return-type -DFUNCPROTO=15 -I../.. -I../../wiretap -I../../epan -I/usr/local/include -I/depot/package/gtk+_1.2.8/include -I/depot/package/glib_1.2.8/lib/glib/include -I/depot/package/glib_1.2.8/include -I/usr/openwin/include -c packet-gryphon.c
> mkdir .libs
> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/depot/package/ethereal_0.9.0/include -I/depot/include -I../.. -I../../wiretap -I../../epan -I/usr/local/include -Wall -W -Wno-unused -g -O2 -Wno-return-type -DFUNCPROTO=15 -I../.. -I../../wiretap -I../../epan -I/usr/local/include -I/depot/package/gtk+_1.2.8/include -I/depot/package/glib_1.2.8/lib/glib/include -I/depot/package/glib_1.2.8/include -I/usr/openwin/include -c packet-gryphon.c -fPIC -DPIC -o .libs/packet-gryphon.lo
> In file included from ../../epan/dfilter/dfilter.h:33,
> from ../../epan/epan.h:34,
> from ../../epan/packet.h:38,
> from ../../plugins/plugin_api.h:190,
> from packet-gryphon.c:31:
> /depot/include/proto.h:14: parse error before "PERL_CALLCONV"
We probably need to figure how how to get automake to add appropriate
"-I$(top_srcdir)/epan" or "-I$(srcdir)/epan" flags to the DEFS macros in
the various Makefile.in files so that they get added *before* all the
flags such as "-I/depot/include", so that if something managed to
install a "proto.h" header file in some include file directory, we don't
manage to find it rather than finding Ethereal's own file.
Workaround: Modify all the "Makefile.in" files to add
"-I$(srcdir)/epan" to the end of the "DEFS = " lists, and then
re-run the configure script and rebuild.