Can't install OpenVPN on ubuntu 16.10 (yakkety) - no release file
Posted: Mon Apr 03, 2017 2:02 am
Hi Samuli,
Re: viewtopic.php?f=30&t=23663
I attempted to install openvpn-2.4.0 on my Ubuntu 16.10 system and got these errors during the make. Any help you can provide would be greatly appreciated.
Regards,
Jim Breef
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../../src/compat -I/usr/local/include -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:843: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:1013:61: note: in definition of macro ‘ALLOC_OBJ’
check_malloc_return((dptr) = (type *) malloc(sizeof(type))); \
^~~~
crypto.c:867: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:1013:61: note: in definition of macro ‘ALLOC_OBJ’
check_malloc_return((dptr) = (type *) malloc(sizeof(type))); \
^~~~
Makefile:654: recipe for target 'crypto.o' failed
make[3]: *** [crypto.o] Error 1
Re: viewtopic.php?f=30&t=23663
I attempted to install openvpn-2.4.0 on my Ubuntu 16.10 system and got these errors during the make. Any help you can provide would be greatly appreciated.
Regards,
Jim Breef
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../../src/compat -I/usr/local/include -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:843: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:1013:61: note: in definition of macro ‘ALLOC_OBJ’
check_malloc_return((dptr) = (type *) malloc(sizeof(type))); \
^~~~
crypto.c:867: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:1013:61: note: in definition of macro ‘ALLOC_OBJ’
check_malloc_return((dptr) = (type *) malloc(sizeof(type))); \
^~~~
Makefile:654: recipe for target 'crypto.o' failed
make[3]: *** [crypto.o] Error 1