Unable to build openconnect on Mac OS 10.15
I got following error when trying to compile
CCLD libopenconnect.la
Undefined symbols for architecture x86_64:
"___darwin_check_fd_set_overflow", referenced from:
_cancellable_connect in libopenconnect_la-ssl.o
_cmd_fd_set in libopenconnect_la-ssl.o
_check_cmd_fd in libopenconnect_la-ssl.o
_poll_cmd_fd in libopenconnect_la-ssl.o
_cancellable_recv in libopenconnect_la-ssl.o
_cancellable_send in libopenconnect_la-ssl.o
_tun_mainloop in libopenconnect_la-mainloop.o
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libopenconnect.la] Error 1
make[1]: *** [libopenconnect.la] Error 1
make: *** [all] Error 2
using these commands
brew install pkg-config gettext openssl autoconf automake libtool
./configure --with-vpnc-script=vpnc or ./configure --with-vpnc-script=vpnc --without-gnutls --with-openssl
GnuTLS version 3.6.13 OpenSSL version 1.1.1g