Ethereal-users: Re: [Ethereal-users] Compilation problems under gcc 3.0/Solaris 2.8/SPARC

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Thu, 17 Jan 2002 02:36:44 -0800
On Thu, Jan 17, 2002 at 02:26:25AM -0800, Guy Harris wrote:
> 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.

Or add them to the "INCLUDES" macro, instead.

> 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.

It should be "-I$(top_srcdir)/epan", instead.

Or, instead, add them in front of "-I$(includedir)" in the INCLUDES
macros in all of the "Makefile.in" files that have "INCLUDES = " lines,
and add the line

	INCLUDES = -I$(top_srcdir)/epan

to the "Makefile.in" files that *don't* have "INCLUDES = " lines, re-run
the configure script, and rebuild.