Wireshark-dev: Re: [Wireshark-dev] Cmake on Yosemite can't find Core Foundation
From: Evan Huus <eapache@xxxxxxxxx>
Date: Fri, 5 Jun 2015 14:56:01 -0400
Hmm, it seems my xcode install had gotten subtly corrupted somehow.
Removing it and re-installing everything made this work.

On Fri, Jun 5, 2015 at 10:17 AM, Evan Huus <eapache@xxxxxxxxx> wrote:
> Recently wiped away and tried to rebuild my cmake config on my osx
> yosemite machine. Build is now failing with:
>
> /Users/eapache/src/wireshark.org/wireshark/wsutil/cfutils.c:29:10:
> fatal error: 'CoreFoundation/CoreFoundation.h' file not found
> #include <CoreFoundation/CoreFoundation.h>
>
> The complete cc command being run is:
>
> cd /Users/eapache/src/wireshark.org/build/wsutil &&
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
>  -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES
> -DTOP_SRCDIR=\"/Users/eapache/src/wireshark.org/wireshark\"
> -DWS_BUILD_DLL -Dwsutil_EXPORTS -Wall -W -Wextra -Wendif-labels
> -Wpointer-arith -Warray-bounds -Wformat-security -fwrapv -Wvla
> -Waddress -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas
> -Wno-overlength-strings -Wwrite-strings -Wno-long-long -Wheader-guard
> -Wunused-const-variable -Wc++-compat -Wdeclaration-after-statement
> -Wshadow -Wno-pointer-sign -Wold-style-definition -Wstrict-prototypes
> -Wshorten-64-to-32  -fvisibility=hidden -O2 -g -DNDEBUG  -fPIC
> -I/Users/eapache/src/wireshark.org/build
> -I/Users/eapache/src/wireshark.org/wireshark
> -I/Users/eapache/src/wireshark.org/wireshark/epan
> -I/Users/eapache/src/wireshark.org/wireshark/tools/lemon
> -I/Users/eapache/src/wireshark.org/wireshark/wiretap -isystem
> /usr/local/opt/gettext/include -isystem /usr/local/include -isystem
> /usr/local/Cellar/geoip/1.6.5/include -isystem
> /usr/local/Cellar/glib/2.44.1/include/glib-2.0 -isystem
> /usr/local/Cellar/glib/2.44.1/lib/glib-2.0/include -isystem
> /usr/local/include/gtk-2.0 -isystem
> /Library/Frameworks/Mono.framework/Headers/fontconfig -isystem
> /usr/local/include/glib-2.0 -isystem /usr/local/lib/glib-2.0/include
> -isystem /usr/local/include/atk-1.0 -isystem
> /usr/local/include/gdk-pixbuf-2.0 -isystem /usr/local/include/cairo
> -isystem /usr/local/include/pango-1.0 -isystem
> /usr/local/lib/gtk-2.0/include -isystem
> /usr/local/Cellar/portaudio/19.20140130/include    -Werror -o
> CMakeFiles/wsutil.dir/cfutils.c.o   -c
> /Users/eapache/src/wireshark.org/wireshark/wsutil/cfutils.c
>
> Anybody know what check is failing? I imagine it's missing an include
> path, since xcode is installed and it was building fine before I blew
> away my cmake build directory.
>
> Thanks,
> Evan