The libproxy slackbuild, which is an openconnect dependency, fails with
Code:
/tmp/SBo/libproxy-0.4.7/libproxy/url.cpp:398:37: error: 'read' was not declared in this scope
/tmp/SBo/libproxy-0.4.7/libproxy/url.cpp:423:13: error: 'close' was not declared in this scope
/tmp/SBo/libproxy-0.4.7/libproxy/url.cpp:439:13: error: 'close' was not declared in this scope
The solution is to add this line in libproxy-0.4.7/libproxy/url.cpp (which is in the libproxy-0.4.7.tar.gz file) -
Code:
#Include <unistd.h> //For close(), read()
I don't know how to create a patch but that's what I added manually and the build completed successfully.
Just thought I would share.