Summary: | net-misc/curl-7.87.0[gnutls,openssl]: md4.c:500:3: error: unknown type name 'MD4_CTX' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Leonid Kopylov <leonchik1976> |
Component: | Current packages | Assignee: | Anthony Basile <blueness> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | Adrian.Bassett, grknight, sam |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://github.com/curl/curl/issues/10110 https://github.com/curl/curl/pull/10142 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 887745 | ||
Attachments: | build.log |
Description
Leonid Kopylov
2022-12-22 07:31:27 UTC
Created attachment 844611 [details]
build.log
USE='-gnutls' emerge curl should workaround this issue. Something wrong in this logic: #if defined(USE_GNUTLS) #include <nettle/md4.h> #elif defined(USE_WOLFSSL) && !defined(WOLFSSL_NO_MD4) #include <wolfssl/openssl/md4.h> #elif defined(USE_OPENSSL) && !defined(OPENSSL_NO_MD4) #include <openssl/md4.h> PS. FYI: configure: WARNING: unrecognized options: --with-nettle --- a/lib/md4.c +++ b/lib/md4.c @@ -86,11 +86,7 @@ #include "memdebug.h" -#if defined(USE_WOLFSSL) && !defined(WOLFSSL_NO_MD4) - -#elif defined(USE_OPENSSL) && !defined(OPENSSL_NO_MD4) - -#elif defined(USE_GNUTLS) +#if defined(USE_GNUTLS) typedef struct md4_ctx MD4_CTX; @@ -109,6 +105,10 @@ static void MD4_Final(unsigned char *result, MD4_CTX *ctx) md4_digest(ctx, MD4_DIGEST_SIZE, result); } +#elif defined(USE_WOLFSSL) && !defined(WOLFSSL_NO_MD4) + +#elif defined(USE_OPENSSL) && !defined(OPENSSL_NO_MD4) + #elif defined(AN_APPLE_OS) typedef CC_MD4_CTX MD4_CTX; upstream bug https://github.com/curl/curl/issues/10110 upstream pull request https://github.com/curl/curl/pull/10142 (In reply to Maxim Britov from comment #2) > PS. FYI: configure: WARNING: unrecognized options: --with-nettle That part seems to be from 7.86.0: https://github.com/curl/curl/pull/6625. I'll fix while backporting. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26ad093791c6f0d4953b939e87eb259b49eb3b89 commit 26ad093791c6f0d4953b939e87eb259b49eb3b89 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-12-23 01:28:08 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-12-23 01:28:42 +0000 net-misc/curl: fix build w/ USE='gnutls openssl' Closes: https://bugs.gentoo.org/887833 Signed-off-by: Sam James <sam@gentoo.org> net-misc/curl/curl-7.87.0.ebuild | 16 +++++---- .../files/curl-7.87.0-gnutls-openssl-build.patch | 39 ++++++++++++++++++++++ 2 files changed, 48 insertions(+), 7 deletions(-) |