Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 606922

Summary: net-misc/openvpn-2.4.0 with dev-libs/openssl-1.1.0c - crypto.c:843:32: error: invalid application of 'sizeof' to incomplete type 'cipher_ctx_t {aka struct evp_cipher_ctx_st}'
Product: Gentoo Linux Reporter: eroen <erikdenstore+gbugs>
Component: Current packagesAssignee: Manuel Rüger (RETIRED) <mrueg>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: chutzpah
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://community.openvpn.net/openvpn/ticket/759
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 592438    
Attachments: net-misc/openvpn-2.4.0:20170123-141901.log

Description eroen 2017-01-23 14:27:33 UTC
Created attachment 461072 [details]
net-misc/openvpn-2.4.0:20170123-141901.log

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include  -I../../include -I../../src/compat        -O0 -g -std=c99 -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))); \
                                                             ^~~~
make[3]: *** [Makefile:670: crypto.o] Error 1
make[3]: Leaving directory '/var/tmp/portage/net-misc/openvpn-2.4.0/work/openvpn-2.4.0/src/openvpn'
make[2]: *** [Makefile:425: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-misc/openvpn-2.4.0/work/openvpn-2.4.0/src'
make[1]: *** [Makefile:611: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-misc/openvpn-2.4.0/work/openvpn-2.4.0'
make: *** [Makefile:499: all] Error 2
 * ERROR: net-misc/openvpn-2.4.0::gentoo failed (compile phase):
 *   emake failed
Comment 1 Manuel Rüger (RETIRED) gentoo-dev 2017-01-23 18:30:53 UTC
See also: https://community.openvpn.net/openvpn/ticket/802
Comment 2 Manuel Rüger (RETIRED) gentoo-dev 2017-06-21 18:05:51 UTC
Please test openvpn-2.4.3 which has announced to have support for 2.4.3