3.4.0 does not compile on OS X
I tried to email this to the bug mailing list, but apparently because I didn't want to subscribe just to report a bug, the moderator manually rejected my message. So here's the bug report:
I can't seem to get the GnuTLS 3.4.0 release to compile on OS X. Doesn't build on 10.8, 10.9 or 10.10, using Apple's Clang or GNU's gcc 4.9.
I'll attach the whole range of build logs and such, but the error is:
utils.c: In function 'udp_socket':
utils.c:191:36: error: 'SOCK_CLOEXEC' undeclared (first use in this
function)
fd = socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0);
^
utils.c:191:36: note: each undeclared identifier is reported only once
for each function it appears in
make[2]: *** [utils.lo] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1