Article View: linux.debian.bugs.dist
Article #7544Bug#1156401: rtmpdump build error against nettle 4
From: Andreas Metzler
Date: Sat, 05 Dec 2026 06:50
Date: Sat, 05 Dec 2026 06:50
35 lines
2706 bytes
2706 bytes
Package: rtmpdump
Version: 2.6-1
Hello,
rtmpdump FTBFS agains nettle 4 with multiple errors like these:
handshake.h:55:70: error: too many arguments to function ‘nettle_hmac_sha256_digest’; expected 2, have 3
55 | #define HMAC_finish(ctx, dig, dlen) dlen = SHA256_DIGEST_LENGTH; hmac_sha256_digest(&ctx, SHA256_DIGEST_LENGTH, dig)
| ^~~~~~~~~~~~~~~~~~
Nettle 4.0 is a API breaking release, see the NEWS file.
The most disruptive API change is that the *_digest functions no longer takes the desired digest size as argument. Truncated hashes appeared to be an important use case decades ago when the previous interface was designed, but that is now rather obscure.
nettle3 compat can be kept with #ifdefs e.g. (ocserv):
+#include <nettle/version.h>
[...]
+#if NETTLE_VERSION_MAJOR >= 4
+ sha1_digest(&ctx, output);
+#else
sha1_digest(&ctx, 20, output);
+#endif
I sent this to the upstream ML (rtmpdump at mplayerhq.hu) in October but
looking at the archives the list seems to have been shut down.
cu Andreas
----- End forwarded message -----
--
"You people are noisy," Nia said.
I made the gesture of agreement.
Technical Details
Message-ID:
<O6RKN-g5j2-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Andreas Metzler <ametzler@bebt.de> Newsgroups: linux.debian.bugs.dist Subject: Bug#1156401: rtmpdump build error against nettle 4 Date: Sat, 05 Dec 2026 07:50:01 +0100 Message-ID: <O6RKN-g5j2-1@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sat Dec 5 06:45:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Andreas Metzler <ametzler@bebt.de>, 1156401@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: ametzler@bebt.de, debian-multimedia@lists.debian.org X-Debian-Pr-Message: report 1156401 X-Debian-Pr-Package: rtmpdump X-Debian-Pr-Source: rtmpdump MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2007080 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 35 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sat, 5 Dec 2026 07:42:13 +0100 X-Original-Message-ID: <axOyRd505rWq4k4p@argenau.bebt.de>