Linux Mint 18 came with OpenVPN 2.3. I need to update it to 2.4 in order to connect to a server.
Upon make, I receive the following:
g
Code: Select all
cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../../src/compat -I/usr/local/include -DPLUGIN_LIBDIR=\"/usr/local/lib/openvpn/plugins\" -g -O2 -std=c99 -MT crypto.o -MD -MP -MF .deps/crypto.Tpo -c -o crypto.o crypto.c
In file included from crypto.h:131:0,
from crypto.c:36:
crypto.c: In function ‘init_key_ctx’:
crypto.c:855:32: error: invalid application of ‘sizeof’ to incomplete type ‘cipher_ctx_t {aka struct evp_cipher_ctx_st}’
ALLOC_OBJ(ctx->cipher, cipher_ctx_t);
^
buffer.h:1015:61: note: in definition of macro ‘ALLOC_OBJ’
check_malloc_return((dptr) = (type *) malloc(sizeof(type))); \
^
crypto.c:879:30: error: invalid application of ‘sizeof’ to incomplete type ‘hmac_ctx_t {aka struct hmac_ctx_st}’
ALLOC_OBJ(ctx->hmac, hmac_ctx_t);
^
buffer.h:1015:61: note: in definition of macro ‘ALLOC_OBJ’
check_malloc_return((dptr) = (type *) malloc(sizeof(type))); \
^
Makefile:662: recipe for target 'crypto.o' failed
make[3]: *** [crypto.o] Error 1
make[3]: Leaving directory '/home/user/Downloads/openvpn-2.4.2/src/openvpn'
Makefile:418: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/user/Downloads/openvpn-2.4.2/src'
Makefile:604: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/user/Downloads/openvpn-2.4.2'
Makefile:491: recipe for target 'all' failed
make: *** [all] Error 2
Any suggestion as to why I receive the above error message?
Many thanks!