I need to compile from the source a newer version of gnutls that the one available when using apt. I chose version 3.7.5. But I during the make phase I run into a couple of errors that indicate a redefinition of a couple of structures:
In file included from mac.c:39:
gost/hmac-gost.h:60:8: error: redefinition of 'struct hmac_streebog512_ctx'
60 | struct hmac_streebog512_ctx HMAC_CTX(struct streebog512_ctx);
| ^~~~~~~~~~~~~~~~~~~~
In file included from mac.c:33:
/usr/include/nettle/hmac.h:250:8: note: originally defined here
250 | struct hmac_streebog512_ctx HMAC_CTX(struct streebog512_ctx);
| ^~~~~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:2348: mac.lo] Error 1
In file included from gost/hmac-gost.h:42,
from mac.c:39:
gost/streebog.h:62:8: error: redefinition of 'struct streebog512_ctx'
62 | struct streebog512_ctx
| ^~~~~~~~~~~~~~~
In file included from /usr/include/nettle/hmac.h:44,
from mac.c:33:
/usr/include/nettle/streebog.h:58:8: note: originally defined here
58 | struct streebog512_ctx
| ^~~~~~~~~~~~~~~
I installed the dependencies and run the configure script:
/configure –prefix=/home/lmolina/local/gnutls_3.7.5 –with-included-libtasn1 –with-included-unistring
Then I launched the make command.
I did not set any additional compiler options.
Has anybody faced this problem or would have clues as to where to start to fix this and install gnutls succesfully?
lmolina is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.