All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] tools: fix building with OpenSSL 4.0
@ 2026-06-15 16:07 Heinrich Schuchardt
  2026-06-15 16:50 ` Quentin Schulz
  2026-06-15 19:46 ` Sebastian Andrzej Siewior
  0 siblings, 2 replies; 8+ messages in thread
From: Heinrich Schuchardt @ 2026-06-15 16:07 UTC (permalink / raw)
  To: Tom Rini
  Cc: Tobias Olausson, Quentin Schulz, u-boot, Heinrich Schuchardt,
	Sebastian Andrzej Siewior

Building with OpenSSL 4.0 fails:

    In file included from tools/generated/lib/rsa/rsa-sign.c:1:
    ./tools/../lib/rsa/rsa-sign.c: In function ‘rsa_engine_get_pub_key’:
    ./tools/../lib/rsa/rsa-sign.c:115:9: warning:
    ‘ENGINE_get_id’ is deprecated: ENGINE_get_id API symbol is removed.
    Define OPENSSL_ENGINE_STUBS to mask linker errors.
    [-Wdeprecated-declarations]
      115 |         engine_id = ENGINE_get_id(engine);
          |         ^~~~~~~~~

    rsa-sign.c: undefined reference to `ENGINE_load_builtin_engines'
    rsa-sign.c: undefined reference to `ENGINE_by_id'
    rsa-sign.c: undefined reference to `ENGINE_init'
    rsa-sign.c: undefined reference to `ENGINE_set_default_RSA'
    rsa-sign.c: undefined reference to `ENGINE_ctrl_cmd_string'
    rsa-sign.c: undefined reference to `ENGINE_free'
    rsa-sign.c: undefined reference to `ENGINE_finish

Add -DOPENSSL_ENGINE_STUBS -Wno-deprecated-declarations to the
rsa-sign.c build flags.

Link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1138297
Reported-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 tools/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/Makefile b/tools/Makefile
index 1a5f425ecda..ee6c734d321 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -90,6 +90,9 @@ RSA_OBJS-$(CONFIG_TOOLS_LIBCRYPTO) := $(addprefix generated/lib/rsa/, \
 HOSTCFLAGS_generated/lib/rsa/rsa-sign.o += \
 	$(shell pkg-config --cflags libssl libcrypto 2> /dev/null || echo "")
 
+HOSTCFLAGS_generated/lib/rsa/rsa-sign.o += \
+	-DOPENSSL_ENGINE_STUBS -Wno-deprecated-declarations
+
 ECDSA_OBJS-$(CONFIG_TOOLS_LIBCRYPTO) := $(addprefix generated/lib/ecdsa/, ecdsa-libcrypto.o)
 HOSTCFLAGS_generated/lib/ecdsa/ecdsa-libcrypto.o += \
 	$(shell pkg-config --cflags libssl libcrypto 2> /dev/null || echo "")
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-06-16 21:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-15 16:07 [PATCH 1/1] tools: fix building with OpenSSL 4.0 Heinrich Schuchardt
2026-06-15 16:50 ` Quentin Schulz
2026-06-16  6:40   ` Enric Balletbo Serra
2026-06-16 20:20   ` Peter Robinson
2026-06-15 19:46 ` Sebastian Andrzej Siewior
2026-06-16  8:35   ` Quentin Schulz
2026-06-16 18:48     ` Sebastian Andrzej Siewior
2026-06-16 21:52       ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.