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: Paul Mitchell <pmitchel@xxxxxxxxxxxxx>
Date: Tue, 19 Sep 2000 09:39:28 -0400 (EDT)
On Mon, 18 Sep 2000, Guy Harris wrote:

> > OK.  It still didn't want to complete the call to net/if.h no matter what
> > I did,
> 
> "Complete the call" in what sense?

Basically, it couldn't include the file, even though the permissions for
/usr/include/net and the file itself allowed world access.
> 
> After you applied my patch, did it
> 
> 	fail to compile because it failed to find the "net/if.h" header
> 	file;
> 
> 	fail to compile because it found that header file but that
> 	header file failed to define IFF_UP and/or IFF_LOOPBACK and/or
> 	"struct ifreq" and/or "struct ifconf";
> 
> 	fail to compile for some other reason?
> 
> I.e., what were the precise errors it produced?

Since it couldn't get to if.h, the rerrors were identical to what I
prevously sent you.  

> > so I just removed the ifdef statements,
> 
> Removed the "#ifndef WIN32"/"#endif"?
> 
> Those shouldn't make any difference if you're compiling on UNIX....
> 
> > made "if.h" a local file
> 
> I.e., you copied "/usr/include/net/if.h" to the Ethereal source
> directory?


Yes, I copied it into the erhterak source directory and changed

#include <net/if.h> to
#include "if.h"

Paul