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: ajay saxena <aileronajay@xxxxxxxxx>
Date: Fri, 21 Apr 2017 17:11:04 -0400
So i checked the AM_CPPFLAGS in both makefiles, The makefile in the epan directory has

AM_CPPFLAGS = $(INCLUDEDIRS) -I$(builddir)/wslua $(WS_CPPFLAGS) \
$(GLIB_CFLAGS) $(LUA_CFLAGS) $(LIBGNUTLS_CFLAGS) \
$(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS) $(LIBGEOIP_CFLAGS) \
$(LZ4_CFLAGS) $(KRB5_CFLAGS) $(SNAPPY_CFLAGS) $(LIBXML2_CFLAGS)

as the AM_CPPFLAGS whereas in the 

epan/dissectors directory the makefile has AM_CPPFLAGS as

AM_CPPFLAGS = $(INCLUDEDIRS) -I$(top_srcdir)/epan $(WS_CPPFLAGS) \
$(GLIB_CFLAGS) $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) \
$(LIBGEOIP_CFLAGS) $(KRB5_CFLAGS) $(LIBXML2_CFLAGS)

the LIBGEOIP_CFLAGS is in both though. Do files in epan directory import GeoIP too?


On Fri, Apr 21, 2017 at 5:06 PM, ajay saxena <aileronajay@xxxxxxxxx> wrote:
Please find attached, the Makefile in the epan directory.

On Fri, Apr 21, 2017 at 5:02 PM, Guy Harris <guy@xxxxxxxxxxxx> wrote:
On Apr 21, 2017, at 1:47 PM, ajay saxena <aileronajay@xxxxxxxxx> wrote:

> So i added the include lua directive at the top of the file and now i get the error for lua
>
> packet-ip.c:27:10: fatal error: 'lua.h' file not found
> #include <lua.h>
>          ^

...which works just fine for files in the epan directory, but not for files in the epan/dissectors directory.

You can remove the extra include; that was just a test.

Please send the Makefile in the epan directory, so I can compare it with the Makefile in the epan/dissectors directory (which you already sent).

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@wireshark.org?subject=unsubscribe