After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 586397 - gstudpnetutils.h fails to build on FreeBSD
gstudpnetutils.h fails to build on FreeBSD
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.10.15
Other All
: Normal normal
: 0.10.16
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-06-19 15:00 UTC by Koop Mast (kwm)
Modified: 2009-06-19 19:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
Move sys/socket.h before net/if.h to fix the build on FreeBSD (371 bytes, patch)
2009-06-19 15:34 UTC, Koop Mast (kwm)
committed Details | Review

Description Koop Mast (kwm) 2009-06-19 15:00:39 UTC
Please describe the problem:
On FreeBSD #include <sys/socket.h> needs to be included before #includes <net/if.h>. Otherwise complilation fails.

In file included from gstudpnetutils.h:43,
                 from gstudpsrc.h:33,
                 from gstudp.c:26:
/usr/include/net/if.h:294: error: field 'ifru_addr' has incomplete type
/usr/include/net/if.h:295: error: field 'ifru_dstaddr' has incomplete type
/usr/include/net/if.h:296: error: field 'ifru_broadaddr' has incomplete type
/usr/include/net/if.h:328: error: field 'ifra_addr' has incomplete type
/usr/include/net/if.h:329: error: field 'ifra_broadaddr' has incomplete type
/usr/include/net/if.h:330: error: field 'ifra_mask' has incomplete type
gmake[2]: *** [libgstudp_la-gstudp.lo] Error 1

net/if.h uses sockaddr on these lines. This struct is defined in sys/socket.h.

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Koop Mast (kwm) 2009-06-19 15:34:04 UTC
Created attachment 137014 [details] [review]
Move sys/socket.h before net/if.h to fix the build on FreeBSD