Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Compilation issue on Mac OS

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Fri, 21 Apr 2017 20:02:03 -0700
On Apr 21, 2017, at 7:33 PM, ajay saxena <aileronajay@xxxxxxxxx> wrote:

> Though the compile failed at a different file
> 
> addr_resolv.c:91:11: fatal error: 'ares.h' file not found
> # include <ares.h>

So it's failing for files in the epan directory, not just for files in epan/dissectors.

> and this file too is present in the /usr/local/include. So i think AM_CPPFLAGS is not searching my /usr/local/include.

Makefile variables don't search anything.  *Compilers* search something.

The question here is why the compiler isn't searching /usr/local/include.  Unfortunately, what the LLVM project calls a "manual" for Clang:

	http://clang.llvm.org/docs/UsersManual.html

isn't a very *good* manual - for example, it doesn't describe the include file search rules anywhere, so it gives no indication of whether /usr/local/include is part of the default search path and, if it's not always part of the default search path, when it's not.

Now, on your system, the autotools make use something called "gcc", but that might just be Clang, rather than GCC, if you haven't explicitly installed GCC.  What does "gcc --version" print?