ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 1005] New: Build can't find gcrypt.h from libgcrypt instal

Date: Mon, 17 Jul 2006 19:20:01 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1005

           Summary: Build can't find gcrypt.h from libgcrypt installed via
                    DarwinPorts
           Product: Wireshark
           Version: SVN
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Normal
          Priority: Medium
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: stephentfisher@xxxxxxxxx


<reported to wireshark-dev on July 6, 2006 and received no response>

When building the latest SVN of Wireshark with "--with-ssl" on OS X, gcrypt.h
cannot be found as installed in /opt/local/include/gcrypt.h by the DarwinPorts
install of libgcrypt.  This prevents compilation of Wireshark. 

I am able to resolve this problem by adding $(LIBGCRYPT_CFLAGS) as seen below. 
This is necessary because a) DarwinPorts installs libgcrypt under /opt/local
instead of /usr/local that is included already and b) libgcrypt's info page
says to add $(LIBGCRYPT_CFLAGS) to the AM_CPPFLAGS (or INCLUDES, which is the
older version of AM_CPPFLAGS) because its automake macros do not do this.  The
macros for other libraries, such as glib, add /opt/local/include/<library
name>/ to the includes automatically.

epan/dissectors/Makefile.am
-INCLUDES = -I$(srcdir)/../.. -I$(srcdir)/..
+INCLUDES = -I$(srcdir)/../.. -I$(srcdir)/.. $(LIBGCRYPT_CFLAGS)

gtk/Makefile.am
-AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap
+AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap $(LIBGCRYPT_CFLAGS)


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.