[Libwebsockets] [libwebsockets] #10: Build fails on OS X

Trac trac at libwebsockets.org
Sat Feb 9 11:09:48 CET 2013


#10: Build fails on OS X
-----------------------------------+--------------------
 Reporter:  amn                    |      Owner:  agreen
     Type:  defect                 |     Status:  new
 Priority:  major                  |  Milestone:
Component:  libwebsockets library  |    Version:
 Keywords:  build                  |
-----------------------------------+--------------------
 The build fails with the following errors:


 libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -Wall -std=gnu99 -pedantic
 -g -rdynamic -fPIC -Werror -c -DINSTALL_DATADIR=\"/usr/local/share\"
 -DLWS_OPENSSL_CLIENT_CERTS=\"/etc/pki/tls/certs/\" -g -O2 -D_DEBUG
 -DLWS_LIBRARY_VERSION=\"1.1\" -DLWS_BUILD_HASH=\"a690cd0\" -MT
 libwebsockets_la-libwebsockets.lo -MD -MP -MF .deps/libwebsockets_la-
 libwebsockets.Tpo -c libwebsockets.c  -fno-common -DPIC -o .libs
 /libwebsockets_la-libwebsockets.o
 libwebsockets.c: In function 'lws_set_socket_options':
 libwebsockets.c:542: error: 'TCP_KEEPIDLE' undeclared (first use in this
 function)
 libwebsockets.c:542: error: (Each undeclared identifier is reported only
 once
 libwebsockets.c:542: error: for each function it appears in.)
 libwebsockets.c:547: error: 'TCP_KEEPINTVL' undeclared (first use in this
 function)
 libwebsockets.c:552: error: 'TCP_KEEPCNT' undeclared (first use in this
 function)
 libwebsockets.c: In function 'libwebsocket_create_context':
 libwebsockets.c:1744: error: 'ssl_cert_filepath' undeclared (first use in
 this function)
 libwebsockets.c:1745: error: 'ssl_private_key_filepath' undeclared (first
 use in this function)
 make[2]: *** [libwebsockets_la-libwebsockets.lo] Error 1

   It seems that TCP_KEEPIDLE is a linux-specific extension:

 "TCP_KEEPIDLE (since Linux 2.4)

 The time (in seconds) the connection needs to remain idle before TCP
 starts sending keepalive probes, if the socket option SO_KEEPALIVE has
 been set on this socket. This option should not be used in code intended
 to be portable."

-- 
Ticket URL: <http://libwebsockets.org/trac/ticket/10>
libwebsockets <http://libwebsockets.org>
libwebsockets C library



More information about the Libwebsockets mailing list