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

Bug 604844

Summary: net-wireless/aircrack-ng-1.2_rc4 with dev-libs/openssl-1.1.0c - crypto.c:291:11: error: storage size of 'ctx' isn't known
Product: Gentoo Linux Reporter: eroen <erikdenstore+gbugs>
Component: Current packagesAssignee: Rick Farina (Zero_Chaos) <zerochaos>
Status: RESOLVED FIXED    
Severity: normal CC: alonbl, crypto+disabled, netmon
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://trac.aircrack-ng.org/ticket/1711
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 592438    
Attachments: net-wireless/aircrack-ng-1.2_rc4:20170106-145217.log
r2882.patch

Description eroen 2017-01-06 14:53:53 UTC
Created attachment 458954 [details]
net-wireless/aircrack-ng-1.2_rc4:20170106-145217.log

x86_64-pc-linux-gnu-gcc -O0 -g -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -DHAVE_SQLITE  -DHAVE_PCRE -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-array-bounds -mavx -DJOHN_AVX -pthread -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -DHAVE_SQLITE  -DHAVE_PCRE -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude -DSIMD_CORE   -c -o crypto.o crypto.c
crypto.c: In function 'calc_mic':
crypto.c:291:11: error: storage size of 'ctx' isn't known
  HMAC_CTX ctx;
           ^~~
crypto.c:317:2: warning: implicit declaration of function 'HMAC_CTX_init' [-Wimplicit-function-declaration]
  HMAC_CTX_init(&ctx);
  ^~~~~~~~~~~~~
crypto.c:327:2: warning: implicit declaration of function 'HMAC_CTX_cleanup' [-Wimplicit-function-declaration]
  HMAC_CTX_cleanup(&ctx);
  ^~~~~~~~~~~~~~~~
make[1]: *** [<builtin>: crypto.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-wireless/aircrack-ng-1.2_rc4/work/aircrack-ng-1.2-rc4/src'
make: *** [Makefile:25: all] Error 2
 * ERROR: net-wireless/aircrack-ng-1.2_rc4::gentoo failed (compile phase):
 *   emake failed
Comment 1 eroen 2017-01-06 15:03:17 UTC
Created attachment 458956 [details, diff]
r2882.patch

This is fixed upstream in svn revision 2882. The patch can be applied to aircrack-ng-1.2_rc4.
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2017-01-13 22:14:05 UTC
Thanks!

Added to aircrack-ng-1.2_rc4-r1