Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] Problems building on Mac OS Yosemite

From: Simon Barber <simon.barber@xxxxxxxxxx>
Date: Fri, 29 May 2015 21:16:33 -0700
I'm trying to build wireshark out of the git repository, master branch, on my Mac OS Yosemite machine.

The build fails while running the macos-setup script, while building GTK, with:


/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive

Making all in x11

make[4]: Nothing to be done for `all'.

Making all in .

/bin/sh ../libtool  --tag=CC   --mode=link gcc  -DGDK_PIXBUF_DISABLE_DEPRECATED -g -O2 -mmacosx-version-min=10.10 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -Wall  -version-info 2400:17:2400 -export-dynamic -rpath /usr/local/lib  -export-symbols-regex "^[^_].*" -mmacosx-version-min=10.10 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -o libgdk-x11-2.0.la    gdk.lo gdkapplaunchcontext.lo gdkcairo.lo gdkcolor.lo gdkcursor.lo gdkdisplay.lo gdkdisplaymanager.lo gdkdnd.lo gdkdraw.lo gdkevents.lo gdkfont.lo gdkgc.lo gdkglobals.lo gdkimage.lo gdkkeys.lo gdkkeyuni.lo gdkoffscreenwindow.lo gdkpango.lo gdkpixbuf-drawable.lo gdkpixbuf-render.lo gdkpixmap.lo gdkpolyreg-generic.lo gdkrectangle.lo gdkregion-generic.lo gdkrgb.lo gdkscreen.lo gdkselection.lo gdkvisual.lo gdkwindow.lo gdkwindowimpl.lo gdkenumtypes.lo gdkmarshalers.lo x11/libgdk-x11.la -L/usr/local/lib -L/opt/X11/lib -lpangocairo-1.0 -lpango-1.0 -lgio-2.0 -lfontconfig -lfreetype -lXrender -lXinerama -lXrandr -lXcursor -lXcomposite -lXdamage -lXfixes -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lintl -lcairo -lX11 -lXext  -lm 

grep: /usr/local/lib/libcairo.la: No such file or directory

sed: /usr/local/lib/libcairo.la: No such file or directory

libtool: link: `/usr/local/lib/libcairo.la' is not a valid libtool archive

make[4]: *** [libgdk-x11-2.0.la] Error 1

make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


If I change the macos-setup script to use GTK3, and update the PNG_VERSION from 1.5.17 to 1.5.22 then the script runs OK, and I can produce a working wireshark binary, but the resulting wireshark-gtk binary segfaults shortly after startup.

Anyone run into this? Should the wireshark-gtk binary be working with GTK3? Or does anyone know what magic is needed to get GTK2 to build on Yosemite?

Simon