when I try to compile GnuTLS 3.5.18 with cryptodev support, it fails horribly
Description of problem:
I have a Cavium Nitrox Accelerator board and it works well with OpenSSL, so it's not a cryptodev issue I don't think, but when I try to compile GnuTLS 3.5.18 with cryptodev support, it fails horribly
sudo ./configure --prefix=/usr --with-included-unistring --enable-cryptodev
Configure Log available here: http://nerdingout.net/pastetool/view/df194042
Make Log Available here: http://nerdingout.net/pastetool/view/3401b1b3
Version of gnutls used:
3.5.18
Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)
wget https://www.gnupg.org/ftp/gcrypt/gnutls/v3.5/gnutls-3.5.18.tar.xz
How reproducible:
every time
Steps to Reproduce:
- one sudo ./configure --prefix=/usr --with-included-unistring --enable-cryptodev
- two sudo make
- three
Actual results:
it doesn't compile
Pretty sure the following errors (which for some reason don't get redirected via a pipe command are related.)
cryptodev.c: In function 'cryptodev_cipher_setkey':
cryptodev.c:93:2: warning: implicit declaration of function 'CHECK_AES_KEYSIZE' [-Wimplicit-function-declaration]
CHECK_AES_KEYSIZE(keysize);
^~~~~~~~~~~~~~~~~
cryptodev.c:93:2: warning: nested extern declaration of 'CHECK_AES_KEYSIZE' [-Wnested-externs]
cryptodev.c: At top level:
cryptodev.c:343:10: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
.fast = cryptodev_mac_fast
^~~~~~~~~~~~~~~~~~
cryptodev.c:343:10: note: (near initialization for 'mac_struct.fast')
cryptodev.c:334:0: warning: macro "cryptodev_mac_deinit" is not used [-Wunused-macros]
#define cryptodev_mac_deinit cryptodev_deinit
cryptodev-gcm.c: In function 'aes_gcm_cipher_setkey':
cryptodev-gcm.c:102:2: warning: implicit declaration of function 'CHECK_AES_KEYSIZE' [-Wimplicit-function-declaration]
CHECK_AES_KEYSIZE(keysize);
^~~~~~~~~~~~~~~~~
cryptodev-gcm.c:102:2: warning: nested extern declaration of 'CHECK_AES_KEYSIZE' [-Wnested-externs]
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
srptool-args.c:429:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
# define OPTPROC_BASE OPTPROC_TRANSLATE | OPTPROC_NXLAT_OPT
^
srptool-args.c:536:7: note: in expansion of macro 'OPTPROC_BASE'
( OPTPROC_BASE
^~~~~~~~~~~~
srptool-args.c:42:0: warning: macro "OPTION_CODE_COMPILE" is not used [-Wunused-macros]
#define OPTION_CODE_COMPILE 1
ar: `u' modifier ignored since `D' is the default (see `U')
psktool-args.c:312:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
# define OPTPROC_BASE OPTPROC_TRANSLATE | OPTPROC_NXLAT_OPT
^
psktool-args.c:454:7: note: in expansion of macro 'OPTPROC_BASE'
( OPTPROC_BASE
^~~~~~~~~~~~
psktool-args.c:42:0: warning: macro "OPTION_CODE_COMPILE" is not used [-Wunused-macros]
#define OPTION_CODE_COMPILE 1
ar: `u' modifier ignored since `D' is the default (see `U')
ocsptool-args.c:720:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
# define OPTPROC_BASE OPTPROC_TRANSLATE | OPTPROC_NXLAT_OPT
^
ocsptool-args.c:995:7: note: in expansion of macro 'OPTPROC_BASE'
( OPTPROC_BASE
^~~~~~~~~~~~
ocsptool-args.c:42:0: warning: macro "OPTION_CODE_COMPILE" is not used [-Wunused-macros]
#define OPTION_CODE_COMPILE 1
ar: `u' modifier ignored since `D' is the default (see `U')
serv-args.c:1279:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
# define OPTPROC_BASE OPTPROC_TRANSLATE | OPTPROC_NXLAT_OPT
^
serv-args.c:1661:7: note: in expansion of macro 'OPTPROC_BASE'
( OPTPROC_BASE
^~~~~~~~~~~~
serv-args.c:42:0: warning: macro "OPTION_CODE_COMPILE" is not used [-Wunused-macros]
#define OPTION_CODE_COMPILE 1
ar: `u' modifier ignored since `D' is the default (see `U')
cli-args.c:1781:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
# define OPTPROC_BASE OPTPROC_TRANSLATE | OPTPROC_NXLAT_OPT
^
cli-args.c:2094:7: note: in expansion of macro 'OPTPROC_BASE'
( OPTPROC_BASE
^~~~~~~~~~~~
cli-args.c:42:0: warning: macro "OPTION_CODE_COMPILE" is not used [-Wunused-macros]
#define OPTION_CODE_COMPILE 1
ar: `u' modifier ignored since `D' is the default (see `U')
cli-debug-args.c:341:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
# define OPTPROC_BASE OPTPROC_TRANSLATE | OPTPROC_NXLAT_OPT
^
cli-debug-args.c:499:7: note: in expansion of macro 'OPTPROC_BASE'
( OPTPROC_BASE
^~~~~~~~~~~~
cli-debug-args.c:42:0: warning: macro "OPTION_CODE_COMPILE" is not used [-Wunused-macros]
#define OPTION_CODE_COMPILE 1
ar: `u' modifier ignored since `D' is the default (see `U')
certtool-args.c:2497:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
# define OPTPROC_BASE OPTPROC_TRANSLATE | OPTPROC_NXLAT_OPT
^
certtool-args.c:2676:7: note: in expansion of macro 'OPTPROC_BASE'
( OPTPROC_BASE
^~~~~~~~~~~~
certtool-args.c:42:0: warning: macro "OPTION_CODE_COMPILE" is not used [-Wunused-macros]
#define OPTION_CODE_COMPILE 1
ar: `u' modifier ignored since `D' is the default (see `U')
danetool-args.c:958:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
# define OPTPROC_BASE OPTPROC_TRANSLATE | OPTPROC_NXLAT_OPT
^
danetool-args.c:1137:7: note: in expansion of macro 'OPTPROC_BASE'
( OPTPROC_BASE
^~~~~~~~~~~~
danetool-args.c:42:0: warning: macro "OPTION_CODE_COMPILE" is not used [-Wunused-macros]
#define OPTION_CODE_COMPILE 1
ar: `u' modifier ignored since `D' is the default (see `U')
p11tool-args.c:2097:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
# define OPTPROC_BASE OPTPROC_TRANSLATE | OPTPROC_NXLAT_OPT
^
p11tool-args.c:2444:7: note: in expansion of macro 'OPTPROC_BASE'
( OPTPROC_BASE
^~~~~~~~~~~~
p11tool-args.c:42:0: warning: macro "OPTION_CODE_COMPILE" is not used [-Wunused-macros]
#define OPTION_CODE_COMPILE 1
ar: `u' modifier ignored since `D' is the default (see `U')
systemkey-args.c:402:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
# define OPTPROC_BASE OPTPROC_TRANSLATE | OPTPROC_NXLAT_OPT
^
systemkey-args.c:533:7: note: in expansion of macro 'OPTPROC_BASE'
( OPTPROC_BASE
^~~~~~~~~~~~
systemkey-args.c:42:0: warning: macro "OPTION_CODE_COMPILE" is not used [-Wunused-macros]
#define OPTION_CODE_COMPILE 1
ar: `u' modifier ignored since `D' is the default (see `U')
../lib/.libs/libgnutls.so: undefined reference to `CHECK_AES_KEYSIZE'
collect2: error: ld returned 1 exit status
make[4]: *** [psktool] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Expected results:
it compiles