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 584176 - build fixes on FreeBSD
build fixes on FreeBSD
Status: VERIFIED FIXED
Product: glib
Classification: Platform
Component: gio
unspecified
Other FreeBSD
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2009-05-29 01:41 UTC by David Adam
Modified: 2009-06-02 04:11 UTC
See Also:
GNOME target: ---
GNOME version: 2.29/2.30


Attachments
Misc networking build fixes (4.72 KB, patch)
2009-05-29 14:38 UTC, Dan Winship
none Details | Review

Description David Adam 2009-05-29 01:41:38 UTC
There are a few modifications that need to be made to gio modules for successful builds on FreeBSD.

gio/libasyncns/asyncns.c: getrlimit() requires <sys/resource.h> (see also: http://www.freebsd.org/cgi/man.cgi?query=getrlimit&sektion=2)

gio/gresolver.c: EAI_NODATA was removed from <netdb.h> in FreeBSD in 2004. See http://www.freebsd.org/cgi/query-pr.cgi?pr=61369 - according to one of the ISC guys EAI_NODATA is not a portable symbol, so it needs an #ifdef around it.

gio/gsocket.c: getsockopt() and friends requires <sys/socket.h> (see also: http://www.freebsd.org/cgi/man.cgi?query=getrlimit&sektion=2)

gio/gunixresolver.c: <resolv.h> requires <netinet/in.h> (see also: http://www.freebsd.org/cgi/man.cgi?query=resolver&sektion=3)
Comment 1 Dan Winship 2009-05-29 14:38:35 UTC
Created attachment 135557 [details] [review]
Misc networking build fixes

Can you try this out and see if it works for you? (This includes some
build fixes from another bug as well.)
Comment 2 David Adam 2009-05-29 15:25:52 UTC
Applies cleanly, builds successfully, looks good.
Comment 3 Dan Winship 2009-06-01 18:30:45 UTC
committed