Hello nettle gurus,
I'm trying to build GnuTLS 3.2.6 on CentOS 6.4 x64, but having some issues with nettle during compilation.
nettle 2.7.1 make errors:
configure: summary of build options:
Version: nettle 2.7.1 Host type: x86_64-unknown-linux-gnu ABI: 64 Assembly files: x86_64 Install prefix: /usr/local Library directory: ${exec_prefix}/lib64 Compiler: gcc Static libraries: yes Shared libraries: yes Public key crypto: yes Documentation: no
During "$ make" exits with error:
hogweed-benchmark.c:575: error: ‘struct openssl_ctx’ has no member named ‘key’ hogweed-benchmark.c:576: error: ‘struct openssl_ctx’ has no member named ‘digest’ make[1]: *** [hogweed-benchmark.o] Error 1 make[1]: Leaving directory `/home/mve/Downloads/ocserv/nettle/nettle-2.7.1/examples' make: *** [all] Error 1
It fails "error: ‘struct openssl_ctx’" so I looked configure help options… $ make clean $ ./configure --help #give a few options so I disabled this one as I'm assuming it's not used in my case isn't it? $ ./configre --disable-openssl #Do not include openssl glue in the benchmark program
after doing this "make" successfully finished and I can install "nettle"
Is this proper workaround or not? If not how should be handed properly?
Thank you! Regards,
Martin
Martin Lambev fsh3mve@gmail.com writes:
I'm trying to build GnuTLS 3.2.6 on CentOS 6.4 x64, but having some issues with nettle during compilation.
[...]
$ ./configre --disable-openssl #Do not include openssl glue in the benchmark program
after doing this "make" successfully finished and I can install "nettle"
Is this proper workaround or not? If not how should be handed properly?
I guess the benchmark code expects a more recent version of openssl than you have (but then there should have been additional errors, about missing openssl include files). --disable-openssl is the right option to use.
You could also try the below (untested) patch to configure.ac, and then run
$ autoconf $ make distclean $ ./configure $ make $ make check
The idea is that openssl code in the benchmark program should be disabled automatically.
Regards, /Niels
diff --git a/configure.ac b/configure.ac index 037fbe9..7ce4d5a 100644 --- a/configure.ac +++ b/configure.ac @@ -622,7 +622,7 @@ AC_CHECK_ALIGNOF(uint64_t) ALIGNOF_UINT64_T="$ac_cv_alignof_uint64_t" AC_SUBST(ALIGNOF_UINT64_T)
-AC_CHECK_HEADERS([openssl/blowfish.h openssl/des.h openssl/cast.h openssl/aes.h],, +AC_CHECK_HEADERS([openssl/blowfish.h openssl/des.h openssl/cast.h openssl/aes.h openssl/ecdsa.h],, [enable_openssl=no break])
nettle-bugs@lists.lysator.liu.se