Closed tristan-k closed 8 years ago
I'm not familiar with cygwin, but I thought it had TCP_KEEPIDLE
definition (if not, libmesode tries to use TCP_KEEPALIVE
). Could you grep your system headers for TCP_KEEPIDLE
? If it doesn't exist I will disable keepalive feature for cygwin.
Recreated the compilation error on Cygwin, here's the output and grep:
src/sock.c: In function ‘sock_set_keepalive’:
src/sock.c:98:45: error: ‘TCP_KEEPALIVE’ undeclared (first use in this function)
ret = setsockopt(sock, IPPROTO_TCP, TCP_KEEPALIVE, &timeout, sizeof(timeout));
^
src/sock.c:98:45: note: each undeclared identifier is reported only once for each function it appears in
Makefile:1250: recipe for target 'src/libmesode_la-sock.lo' failed
make: *** [src/libmesode_la-sock.lo] Error 1
boothj5@boothj5-PC ~/projects-git/libmesode
$ grep -rl "TCP_KEEPIDLE" /usr/include/
/usr/include/curl/curl.h
boothj5@boothj5-PC ~/projects-git/libmesode
$ grep -rl "TCP_KEEPIDLE" /usr/local/include/
boothj5@boothj5-PC ~/projects-git/libmesode
$ grep -rl "TCP_KEEPALIVE" /usr/include/
/usr/include/curl/curl.h
/usr/include/w32api/winldap.h
boothj5@boothj5-PC ~/projects-git/libmesode
$ grep -rl "TCP_KEEPALIVE" /usr/local/include/
Should be fixed by strophe/libstrophe@3e86987f5f5f36287fb061470b570744eb1f8d86. @boothj5, could you check please?
Compiles on Cygwin.
Thanks. Works well now.
I'm running Windows 10 with babun and the
pact
packet manager. I succefully installed all dependencies and followed the build instructions.