All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/beecrypt: fix build with gcc 14
@ 2024-06-15 20:42 Fabrice Fontaine
  2024-06-16  8:57 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2024-06-15 20:42 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine

Fix the following build failure with gcc 14:

blockmode.c: In function 'blockEncryptCTR':
blockmode.c:162:42: error: implicit declaration of function 'swapu32' [-Wimplicit-function-declaration]
  162 |                                 buf[i] = swapu32(fdback[j]);
      |                                          ^~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/651e0e31305b1f211071d94ea74f7b7a5793b03e

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/beecrypt/0004-beecrypt-4.2.1-c99.patch | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 package/beecrypt/0004-beecrypt-4.2.1-c99.patch

diff --git a/package/beecrypt/0004-beecrypt-4.2.1-c99.patch b/package/beecrypt/0004-beecrypt-4.2.1-c99.patch
new file mode 100644
index 0000000000..489ce437f6
--- /dev/null
+++ b/package/beecrypt/0004-beecrypt-4.2.1-c99.patch
@@ -0,0 +1,17 @@
+Add missing header to fix C99 conformance in blockmode.c
+
+Upstream: https://sourceforge.net/p/beecrypt/patches/13
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+
+diff --git a/blockmode.c b/blockmode.c
+index 46d1fde..9998c23 100644
+--- a/blockmode.c
++++ b/blockmode.c
+@@ -29,6 +29,7 @@
+ # include "config.h"
+ #endif
+ 
++#include "beecrypt/endianness.h"
+ #include "beecrypt/blockmode.h"
+ 
+ int blockEncryptECB(const blockCipher* bc, blockCipherParam* bp, uint32_t* dst, const uint32_t* src, unsigned int nblocks)
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2024-06-16  8:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-15 20:42 [Buildroot] [PATCH 1/1] package/beecrypt: fix build with gcc 14 Fabrice Fontaine
2024-06-16  8:57 ` Yann E. MORIN

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.