Wireshark-dev: [Wireshark-dev] OS X build can't find gcrypt.h

From: Stephen Fisher <stephentfisher@xxxxxxxxx>
Date: Fri, 23 Jun 2006 20:36:11 -0700
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:

 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I./../.. -I./.. 
-I/usr/local/include -I/usr/include -DINET6 -no-cpp-precomp 
"-D_U_=__attribute__((unused))" -Wall -Wpointer-arith -W -g -O2 
-I/usr/local/include -D_REENTRANT -I/opt/local/include/gtk-2.0 
-I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 
-I/opt/local/include/cairo -I/opt/local/include/pango-1.0 
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include 
-I/usr/include -c packet-ipsec.c -MT packet-ipsec.lo -MD -MP -MF 
.deps/packet-ipsec.TPlo  -fno-common -DPIC -o .libs/packet-ipsec.o
packet-ipsec.c:80:20: error: gcrypt.h: No such file or directory

The configure script does find my installation of libgcrypt:

checking for libgcrypt-config... /opt/local/bin/libgcrypt-config
libgcrypt found, enabling ipsec decryption

The OS X buildbot isn't running into this problem because libgcrypt 
isn't installed on that box.  I installed libgcrypt from DarwinPorts, so 
gcrypt.h is in /opt/local/include/gcrypt.h.  On my FreeBSD box, gcrypt.h 
is in /usr/local/include, which is in the standard list of includes.  
Should /opt/local/include be added to the includes when compiling if 
this is where it is found?  The other /opt/local/include directories are 
there for applications such as glib.


Steve