GNOME Bugzilla – Bug 756136
gstreamer-1.6.0 doesn't compile on OS X 10.6: header file issue in gst-ptp-helper.c
Last modified: 2015-10-07 18:05:46 UTC
From make: In file included from gst-ptp-helper.c:40:0: /usr/include/net/if.h:265:19: error: field 'ifru_addr' has incomplete type struct sockaddr ifru_addr; Inserting #include <sys/socket.h> before line 40 of lib/gst/helpers/gst-ptp-helper.c fixes it. I'm compiling the source from https://download.gnome.org/sources/gstreamer/1.6/gstreamer-1.6.0.tar.xz, on OS X 10.6.8, using Homebrew and gcc 5.2.0. It seems somewhat likely that this is an issue specific to older versions of OS X, since other Homebrew users don't seem to have encountered this issue yet.
commit 29d11c4566ee342670ae32fbfff6dd7b1973f65e Author: Sebastian Dröge <sebastian@centricular.com> Date: Wed Oct 7 11:25:52 2015 +0100 gst-ptp-helper: #include <sys/socket.h> to fix net/if.h include on OSX 10.6 In file included from gst-ptp-helper.c:40:0: /usr/include/net/if.h:265:19: error: field 'ifru_addr' has incomplete type struct sockaddr ifru_addr; https://bugzilla.gnome.org/show_bug.cgi?id=756136