Wireshark-dev: Re: [Wireshark-dev] OS X build can't find gcrypt.h
From: Stephen Fisher <[email protected]>
Date: Thu, 6 Jul 2006 15:12:47 -0700
On Thu, Jul 06, 2006 at 02:08:48PM -0700, Stephen Fisher wrote:

> On Fri, Jun 23, 2006 at 08:36:11PM -0700, Stephen Fisher wrote:
> > I am trying to build SVN 18568 on my MacOS X machine and it is failing 
> > at packet-ipsec.c, where it can't find gcrypt.h:
> I resolved my problem of not finding gcrypt.h on OS X builds:
> I added $(LIBGCRYPT_FLAGS) to the INCLUDES variable in 
> epan/dissectors/Makefile.am:
> -INCLUDES = -I$(srcdir)/../.. -I$(srcdir)/..
> +INCLUDES = -I$(srcdir)/../.. -I$(srcdir)/.. $(LIBGCRYPT_FLAGS)

One more problem cropped up later in the build:

In file included from ssl-dlg.c:61:
../epan/dissectors/packet-ssl-utils.h:36:20: error: gcrypt.h: No such 
file or directory

Adding $(LIBGCRYPT_FLAGS) to AM_CPPFLAGS did not work in the 
gtk/Makefile.am (where ssl-dlg.c is).  The AM_CPPFLAGS change seems to 
be ignored even when in the main Makefile.am.  If I set my environment 
variable AM_CPPFLAGS to $(LIBGCRYPT_FLAGS), then type make -e it works.  
Anyone more familar with these makefiles know what is going on?