Can't install from source
Description of problem:
Cant install ocserv
with this source.
my OS is ubuntu 20 and I've installed all dependencies but my installation fails with command make check
and
Version of ocserv used:
1.2.2
Client used:
(Include the client used and its version; e.g., openconnect 8.1)
Distributor of ocserv
(e.g., Ubuntu, Fedora, RHEL)
How reproducible:
Describe the steps to reproduce the issue:
download source on ubuntu 20 extract and run installation command: ./configure && make && make check
Actual results:
Making check in src
make[1]: Entering directory '/root/app_sources/ocserv-1.2.2/src'
make check-am
make[2]: Entering directory '/root/app_sources/ocserv-1.2.2/src'
make[2]: Nothing to be done for 'check-am'.
make[2]: Leaving directory '/root/app_sources/ocserv-1.2.2/src'
make[1]: Leaving directory '/root/app_sources/ocserv-1.2.2/src'
Making check in doc
make[1]: Entering directory '/root/app_sources/ocserv-1.2.2/doc'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/root/app_sources/ocserv-1.2.2/doc'
Making check in tests
make[1]: Entering directory '/root/app_sources/ocserv-1.2.2/tests'
make str-test str-test2 ipv4-prefix ipv6-prefix kkdcp-parsing json-escape ban-ips port-parsing human_addr valid-hostname url-escape html-escape cstp-recv proxyproto-v1 \
ocpasswd-test server-cert-ed25519 server-cert-rsa-pss haproxy-connect test-iroute test-multi-cookie test-pass-script idle-timeout test-cookie-timeout test-cookie-timeout-2 test-explicit-ip test-cookie-invalidation test-user-config test-append-routes test-ban multiple-routes json test-udp-listen-host test-max-same-1 test-script-multi-user apple-ios ipv6-iface test-namespace-listen disconnect-user disconnect-user2 ping-leases test-ban-local test-client-bypass-protocol ipv6-small-net test-camouflage test-camouflage-norealm vhost-traffic defvhost-traffic session-timeout radius-group radius-multi-group radius-otp traffic lz4-compression lzs-compression aes256-cipher aes128-cipher oc-aes256-gcm-cipher oc-aes128-gcm-cipher test-config-per-group ac-aes128-gcm-cipher ac-aes256-gcm-cipher no-dtls-cipher psk-negotiate psk-negotiate-match test-multiple-client-ip radius radius-config test-vhost test-pass test-pass-cert test-cert test-group-pass test-pass-group-cert test-pass-group-cert-no-pass test-sighup test-enc-key test-sighup-key-change test-get-cert test-san-cert test-gssapi test-pass-opt-cert test-cert-opt-pass test-gssapi-opt-pass test-gssapi-opt-cert haproxy-auth test-maintenance resumption test-group-name flowcontrol banner invalid-configs haproxy-proxyproto haproxy-proxyproto-v1 drain-server drain-server-fail test-ignore-querystring-of-post test-group-cert test-fork test-pass-svc test-cert-svc test-pam test-pam-noauth test-otp-cert test-otp no-route-default no-route-group test-owasp-headers test-replay
make[2]: Entering directory '/root/app_sources/ocserv-1.2.2/tests'
make[2]: 'str-test' is up to date.
make[2]: 'str-test2' is up to date.
make[2]: 'ipv4-prefix' is up to date.
make[2]: 'ipv6-prefix' is up to date.
make[2]: 'kkdcp-parsing' is up to date.
make[2]: 'json-escape' is up to date.
make[2]: 'ban-ips' is up to date.
make[2]: 'port-parsing' is up to date.
make[2]: 'human_addr' is up to date.
make[2]: 'valid-hostname' is up to date.
make[2]: 'url-escape' is up to date.
make[2]: 'html-escape' is up to date.
make[2]: 'cstp-recv' is up to date.
make[2]: 'proxyproto-v1' is up to date.
make[2]: Nothing to be done for 'ocpasswd-test'.
make[2]: Nothing to be done for 'server-cert-ed25519'.
make[2]: Nothing to be done for 'server-cert-rsa-pss'.
make[2]: Nothing to be done for 'haproxy-connect'.
make[2]: Nothing to be done for 'test-iroute'.
make[2]: Nothing to be done for 'test-multi-cookie'.
make[2]: Nothing to be done for 'test-pass-script'.
make[2]: Nothing to be done for 'idle-timeout'.
make[2]: Nothing to be done for 'test-cookie-timeout'.
make[2]: Nothing to be done for 'test-cookie-timeout-2'.
make[2]: Nothing to be done for 'test-explicit-ip'.
make[2]: Nothing to be done for 'test-cookie-invalidation'.
make[2]: Nothing to be done for 'test-user-config'.
make[2]: Nothing to be done for 'test-append-routes'.
make[2]: Nothing to be done for 'test-ban'.
make[2]: Nothing to be done for 'multiple-routes'.
make[2]: Nothing to be done for 'json'.
make[2]: Nothing to be done for 'test-udp-listen-host'.
make[2]: Nothing to be done for 'test-max-same-1'.
make[2]: Nothing to be done for 'test-script-multi-user'.
make[2]: Nothing to be done for 'apple-ios'.
make[2]: Nothing to be done for 'ipv6-iface'.
make[2]: Nothing to be done for 'test-namespace-listen'.
make[2]: Nothing to be done for 'disconnect-user'.
make[2]: Nothing to be done for 'disconnect-user2'.
make[2]: Nothing to be done for 'ping-leases'.
make[2]: Nothing to be done for 'test-ban-local'.
make[2]: Nothing to be done for 'test-client-bypass-protocol'.
make[2]: Nothing to be done for 'ipv6-small-net'.
make[2]: Nothing to be done for 'test-camouflage'.
make[2]: Nothing to be done for 'test-camouflage-norealm'.
make[2]: Nothing to be done for 'vhost-traffic'.
make[2]: Nothing to be done for 'defvhost-traffic'.
make[2]: Nothing to be done for 'session-timeout'.
make[2]: Nothing to be done for 'radius-group'.
make[2]: Nothing to be done for 'radius-multi-group'.
make[2]: Nothing to be done for 'radius-otp'.
make[2]: Nothing to be done for 'traffic'.
make[2]: Nothing to be done for 'lz4-compression'.
make[2]: Nothing to be done for 'lzs-compression'.
make[2]: Nothing to be done for 'aes256-cipher'.
make[2]: Nothing to be done for 'aes128-cipher'.
make[2]: Nothing to be done for 'oc-aes256-gcm-cipher'.
make[2]: Nothing to be done for 'oc-aes128-gcm-cipher'.
make[2]: Nothing to be done for 'test-config-per-group'.
make[2]: Nothing to be done for 'ac-aes128-gcm-cipher'.
make[2]: Nothing to be done for 'ac-aes256-gcm-cipher'.
make[2]: Nothing to be done for 'no-dtls-cipher'.
make[2]: Nothing to be done for 'psk-negotiate'.
make[2]: Nothing to be done for 'psk-negotiate-match'.
make[2]: Nothing to be done for 'test-multiple-client-ip'.
make[2]: Nothing to be done for 'radius'.
make[2]: Nothing to be done for 'radius-config'.
make[2]: Nothing to be done for 'test-vhost'.
make[2]: Nothing to be done for 'test-pass'.
make[2]: Nothing to be done for 'test-pass-cert'.
make[2]: Nothing to be done for 'test-cert'.
make[2]: Nothing to be done for 'test-group-pass'.
make[2]: Nothing to be done for 'test-pass-group-cert'.
make[2]: Nothing to be done for 'test-pass-group-cert-no-pass'.
make[2]: Nothing to be done for 'test-sighup'.
make[2]: Nothing to be done for 'test-enc-key'.
make[2]: Nothing to be done for 'test-sighup-key-change'.
make[2]: Nothing to be done for 'test-get-cert'.
make[2]: Nothing to be done for 'test-san-cert'.
make[2]: Nothing to be done for 'test-gssapi'.
make[2]: Nothing to be done for 'test-pass-opt-cert'.
make[2]: Nothing to be done for 'test-cert-opt-pass'.
make[2]: Nothing to be done for 'test-gssapi-opt-pass'.
make[2]: Nothing to be done for 'test-gssapi-opt-cert'.
make[2]: Nothing to be done for 'haproxy-auth'.
make[2]: Nothing to be done for 'test-maintenance'.
make[2]: Nothing to be done for 'resumption'.
make[2]: Nothing to be done for 'test-group-name'.
make[2]: Nothing to be done for 'flowcontrol'.
make[2]: Nothing to be done for 'banner'.
make[2]: Nothing to be done for 'invalid-configs'.
make[2]: Nothing to be done for 'haproxy-proxyproto'.
make[2]: Nothing to be done for 'haproxy-proxyproto-v1'.
make[2]: Nothing to be done for 'drain-server'.
make[2]: Nothing to be done for 'drain-server-fail'.
make[2]: Nothing to be done for 'test-ignore-querystring-of-post'.
make[2]: Nothing to be done for 'test-group-cert'.
make[2]: Nothing to be done for 'test-fork'.
make[2]: Nothing to be done for 'test-pass-svc'.
make[2]: Nothing to be done for 'test-cert-svc'.
make[2]: Nothing to be done for 'test-pam'.
make[2]: Nothing to be done for 'test-pam-noauth'.
make[2]: Nothing to be done for 'test-otp-cert'.
make[2]: Nothing to be done for 'test-otp'.
make[2]: Nothing to be done for 'no-route-default'.
make[2]: Nothing to be done for 'no-route-group'.
make[2]: Nothing to be done for 'test-owasp-headers'.
make[2]: Nothing to be done for 'test-replay'.
make[2]: Leaving directory '/root/app_sources/ocserv-1.2.2/tests'
make check-TESTS
make[2]: Entering directory '/root/app_sources/ocserv-1.2.2/tests'
make[3]: Entering directory '/root/app_sources/ocserv-1.2.2/tests'
PASS: str-test
PASS: str-test2
PASS: ipv4-prefix
PASS: ipv6-prefix
PASS: kkdcp-parsing
PASS: json-escape
PASS: ban-ips
PASS: port-parsing
PASS: human_addr
PASS: valid-hostname
PASS: url-escape
PASS: html-escape
PASS: cstp-recv
PASS: proxyproto-v1
PASS: ocpasswd-test
PASS: server-cert-ed25519
PASS: server-cert-rsa-pss
PASS: haproxy-connect
PASS: test-iroute
PASS: test-multi-cookie
PASS: test-pass-script
PASS: idle-timeout
PASS: test-cookie-timeout
PASS: test-cookie-timeout-2
PASS: test-explicit-ip
PASS: test-cookie-invalidation
PASS: test-user-config
PASS: test-append-routes
PASS: test-ban
PASS: multiple-routes
PASS: json
PASS: test-udp-listen-host
PASS: test-max-same-1
PASS: test-script-multi-user
PASS: apple-ios
PASS: ipv6-iface
PASS: test-namespace-listen
PASS: disconnect-user
PASS: disconnect-user2
PASS: ping-leases
PASS: test-ban-local
PASS: test-client-bypass-protocol
PASS: ipv6-small-net
PASS: test-camouflage
PASS: test-camouflage-norealm
SKIP: vhost-traffic
PASS: defvhost-traffic
PASS: session-timeout
PASS: radius-group
PASS: radius-multi-group
SKIP: radius-otp
PASS: traffic
PASS: lz4-compression
PASS: lzs-compression
PASS: aes256-cipher
PASS: aes128-cipher
PASS: oc-aes256-gcm-cipher
PASS: oc-aes128-gcm-cipher
PASS: test-config-per-group
SKIP: ac-aes128-gcm-cipher
SKIP: ac-aes256-gcm-cipher
PASS: no-dtls-cipher
PASS: psk-negotiate
PASS: psk-negotiate-match
PASS: test-multiple-client-ip
PASS: radius
PASS: radius-config
PASS: test-vhost
PASS: test-pass
PASS: test-pass-cert
PASS: test-cert
PASS: test-group-pass
^[[CPASS: test-pass-group-cert
PASS: test-pass-group-cert-no-pass
PASS: test-sighup
PASS: test-enc-key
PASS: test-sighup-key-change
PASS: test-get-cert
PASS: test-san-cert
PASS: test-gssapi
PASS: test-pass-opt-cert
PASS: test-cert-opt-pass
PASS: test-gssapi-opt-pass
PASS: test-gssapi-opt-cert
FAIL: haproxy-auth
PASS: test-maintenance
PASS: resumption
PASS: test-group-name
PASS: flowcontrol
PASS: banner
PASS: invalid-configs
PASS: haproxy-proxyproto
PASS: haproxy-proxyproto-v1
PASS: drain-server
PASS: drain-server-fail
PASS: test-ignore-querystring-of-post
PASS: test-group-cert
PASS: test-fork
PASS: test-pass-svc
PASS: test-cert-svc
PASS: test-pam
PASS: test-pam-noauth
PASS: test-otp-cert
PASS: test-otp
PASS: no-route-default
PASS: no-route-group
PASS: test-owasp-headers
PASS: test-replay
============================================================================
Testsuite summary for ocserv 1.2.2
============================================================================
# TOTAL: 108
# PASS: 103
# SKIP: 4
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
Please report to openconnect-devel@lists.infradead.org
============================================================================
make[3]: *** [Makefile:1103: test-suite.log] Error 1
make[3]: Leaving directory '/root/app_sources/ocserv-1.2.2/tests'
make[2]: *** [Makefile:1211: check-TESTS] Error 2
make[2]: Leaving directory '/root/app_sources/ocserv-1.2.2/tests'
make[1]: *** [Makefile:2054: check-am] Error 2
make[1]: Leaving directory '/root/app_sources/ocserv-1.2.2/tests'
make: *** [Makefile:505: check-recursive] Error 1
root@ubuntu20:~/app_sources/ocserv-1.2.2# openconnect --version
OpenConnect version v8.05-1
Using GnuTLS. Features present: TPMv2, PKCS#11, RSA software token, HOTP software token, TOTP software token, Yubikey OATH, System keys, DTLS, ESP
Supported protocols: anyconnect (default), nc, gp, pulse
Expected results:
ocserv should be installed and executable