Ethereal-users: Re: [ethereal-users] compilation prob.

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Fri, 15 Sep 2000 14:07:40 -0700 (PDT)
> util.c:592: `IFF_UP' undeclared (first use in this function)

Either

	1) the "configure" script somehow didn't manage to find
	   "/usr/include/net/if.h" on your machine;

	2) your "util.c" has somehow had the lines

#ifdef HAVE_NET_IF_H
#include <net/if.h>
#endif

	   removed from it;

	3) Sun have somehow "improved" the Solaris 7 on your box so that
	   it doesn't declare IFF_UP (the one on my home machine managed
	   to compile Ethereal, so its "if.h" defines it).

To determine which of those is the case:

Check to see whether the top-level "config.h" file for Ethereal #defines
HAVE_NET_IF_H as 1 - if it doesn't, do

	make distclean

	./configure

and check "config.h" again.

If it *still* doesn't define HAVE_NET_IF_H, send us the "config.log"
file.

If it *does* define HAVE_NET_IF_H, try rebuilding.  If the rebuild
fails, check to make sure the lines listed in 2) above are in "util.c".

If they are, check to make sure "/usr/include/net/if.h" defines IFF_UP,
IFF_LOOPBACK, and "struct ifconf".  If not, complain to Sun, as some
overactive engineer at Sun apparently "improved" the version of Solaris
7 you're running in a fashion that will probably cause a number of
programs to fail to compile (unless somebody at your site did so).