Closed DomT4 closed 10 years ago
Can you try adding #include <arpa/nameser.h>
and #include <arpa/nameser_compat.h>
at the top, and see if it fixes the compilation?
To the top of libinfinity/common/inf-name-resolver.c
?
If so, I get a slightly new error:
libtool: compile: clang -DHAVE_CONFIG_H -I. -I../.. -I../../libinfinity -I../.. -D_REENTRANT -I/usr/local/Cellar/glib/2.42.0/include/glib-2.0 -I/usr/local/Cellar/glib/2.42.0/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/libtasn1/4.2/include -I/usr/local/Cellar/nettle/2.7.1/include -I/usr/local/Cellar/gnutls/3.2.17/include -I/usr/local/Cellar/glib/2.42.0/include/glib-2.0 -I/usr/local/Cellar/glib/2.42.0/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/include/libxml2 -D_REENTRANT -I/usr/local/Cellar/glib/2.42.0/include/glib-2.0 -I/usr/local/Cellar/glib/2.42.0/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/libtasn1/4.2/include -I/usr/local/Cellar/nettle/2.7.1/include -I/usr/local/Cellar/gnutls/3.2.17/include -I/usr/local/Cellar/gsasl/1.8.0/include -I/usr/include/libxml2 -g -O2 -c util/infinoted-plugin-util-navigate-browser.c -o infinoted-plugin-util-navigate-browser.o >/dev/null 2>&1
infinoted-plugin-document-stream.c:885:45: error: use of undeclared identifier 'MSG_NOSIGNAL'
bytes = send(stream->socket, data, len, MSG_NOSIGNAL);
^
infinoted-plugin-document-stream.c:993:7: error: use of undeclared identifier 'MSG_NOSIGNAL'
MSG_NOSIGNAL
^
2 errors generated.
make[2]: *** [infinoted-plugin-document-stream.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
Okay, that's a different error. That usage should be protected with HAVE_MSG_NOSIGNAL... can you try adding #include "config.h"
to that file, and then change the lines where the two errors occur to:
bytes = send(
stream->socket,
data,
len,
#ifdef HAVE_MSG_NOSIGNAL
MSG_NOSIGNAL
#else
0
#endif
);
and
bytes = recv(
stream->socket,
stream->recv_queue.data + queue_offset,
stream->recv_queue.alloc - queue_offset,
#ifdef HAVE_MSG_NOSIGNAL
MSG_NOSIGNAL
#else
0
#endif
);
If it works I'll commit it to the repository and make another release.
Yup! Combination of the libinfinity/common/inf-name-resolver.c
patch and the infinoted-plugin-document-stream.c
patch did the job! :+1:
Committed, and a 0.6.4 release will follow shortly.
New release compiles absolutely perfectly. Thanks for the quick turnaround here! Appreciate that.
Build failures. Build failures galore. Tried with both
clang
andgcc
to no avail.This is the failure: