* [Buildroot] [PATCH 1/1] package/bandwidthd: fix build with gcc >= 14
@ 2024-07-22 12:29 Fabrice Fontaine
2024-07-22 12:46 ` Thomas Petazzoni via buildroot
2024-08-31 11:36 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2024-07-22 12:29 UTC (permalink / raw)
To: buildroot; +Cc: Nathaniel Roach, Fabrice Fontaine
Fix the following build failure with gcc >= 14:
parser.c: In function 'yyparse':
parser.c:1196:16: error: implicit declaration of function 'yylex' [-Wimplicit-function-declaration]
1196 | yychar = yylex ();
| ^~~~~
While at it, update Upstream tag of first patch
Fixes:
- http://autobuild.buildroot.org/results/33364071de4e5e51a2ac2337b82d145f71e0e64a
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
.checkpackageignore | 1 -
...c-bandwidthd.h-fix-build-with-gcc-10.patch | 2 +-
...2-src-parser.y-fix-build-with-gcc-14.patch | 36 +++++++++++++++++++
3 files changed, 37 insertions(+), 2 deletions(-)
create mode 100644 package/bandwidthd/0002-src-parser.y-fix-build-with-gcc-14.patch
diff --git a/.checkpackageignore b/.checkpackageignore
index 66d427ae68..757c9a3c0d 100644
--- a/.checkpackageignore
+++ b/.checkpackageignore
@@ -342,7 +342,6 @@ package/avahi/S05avahi-setup.sh lib_sysv.Indent lib_sysv.Variables
package/avahi/S50avahi-daemon lib_sysv.Indent lib_sysv.Variables
package/babeld/S50babeld Shellcheck lib_sysv.Indent lib_sysv.Variables
package/babeltrace2/0001-configure-simplify-warning-flags-detection.patch lib_patch.Upstream
-package/bandwidthd/0001-src-bandwidthd.h-fix-build-with-gcc-10.patch lib_patch.Upstream
package/bash/0001-input.h-add-missing-include-on-stdio.h.patch lib_patch.Upstream
package/bash/0002-parse.y-fix-compilation-for-non-multibyte-builds.patch lib_patch.Upstream
package/bash/0003-configure-invert-condition-for-strtoimax-builtin.patch lib_patch.Upstream
diff --git a/package/bandwidthd/0001-src-bandwidthd.h-fix-build-with-gcc-10.patch b/package/bandwidthd/0001-src-bandwidthd.h-fix-build-with-gcc-10.patch
index e7d0dec8d6..727e18ea84 100644
--- a/package/bandwidthd/0001-src-bandwidthd.h-fix-build-with-gcc-10.patch
+++ b/package/bandwidthd/0001-src-bandwidthd.h-fix-build-with-gcc-10.patch
@@ -15,7 +15,7 @@ Fixes:
- http://autobuild.buildroot.org/results/6308c8ee38b6017215038d47c009b238113bd36f
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-[Upstream status: https://github.com/nroach44/bandwidthd/pull/1]
+Upstream: https://github.com/nroach44/bandwidthd/commit/dde68ed77114d7b19bfed3068edefc9dc0644445
---
src/bandwidthd.h | 4 ++--
src/graph.c | 1 +
diff --git a/package/bandwidthd/0002-src-parser.y-fix-build-with-gcc-14.patch b/package/bandwidthd/0002-src-parser.y-fix-build-with-gcc-14.patch
new file mode 100644
index 0000000000..d31070855c
--- /dev/null
+++ b/package/bandwidthd/0002-src-parser.y-fix-build-with-gcc-14.patch
@@ -0,0 +1,36 @@
+From 96f5ad56b1bb872c2c24f0c83d06d94ae2936838 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Mon, 22 Jul 2024 14:08:45 +0200
+Subject: [PATCH] src/parser.y: fix build with gcc >= 14
+
+Fix the following build failure with gcc >= 14:
+
+parser.c: In function 'yyparse':
+parser.c:1196:16: error: implicit declaration of function 'yylex' [-Wimplicit-function-declaration]
+ 1196 | yychar = yylex ();
+ | ^~~~~
+
+Fixes:
+ - http://autobuild.buildroot.org/results/33364071de4e5e51a2ac2337b82d145f71e0e64a
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Upstream: https://github.com/nroach44/bandwidthd/pull/3
+---
+ src/parser.y | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/parser.y b/src/parser.y
+index d9acc10..15ce61c 100644
+--- a/src/parser.y
++++ b/src/parser.y
+@@ -11,6 +11,7 @@
+ #include <arpa/inet.h>
+ #include "bandwidthd.h"
+
++extern int yylex (void);
+ extern unsigned int SubnetCount;
+ extern struct SubnetData SubnetTable[];
+ extern struct config config;
+--
+2.43.0
+
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/bandwidthd: fix build with gcc >= 14
2024-07-22 12:29 [Buildroot] [PATCH 1/1] package/bandwidthd: fix build with gcc >= 14 Fabrice Fontaine
@ 2024-07-22 12:46 ` Thomas Petazzoni via buildroot
2024-08-31 11:36 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-07-22 12:46 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Nathaniel Roach, buildroot
On Mon, 22 Jul 2024 14:29:41 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fix the following build failure with gcc >= 14:
>
> parser.c: In function 'yyparse':
> parser.c:1196:16: error: implicit declaration of function 'yylex' [-Wimplicit-function-declaration]
> 1196 | yychar = yylex ();
> | ^~~~~
>
> While at it, update Upstream tag of first patch
>
> Fixes:
> - http://autobuild.buildroot.org/results/33364071de4e5e51a2ac2337b82d145f71e0e64a
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> .checkpackageignore | 1 -
> ...c-bandwidthd.h-fix-build-with-gcc-10.patch | 2 +-
> ...2-src-parser.y-fix-build-with-gcc-14.patch | 36 +++++++++++++++++++
> 3 files changed, 37 insertions(+), 2 deletions(-)
> create mode 100644 package/bandwidthd/0002-src-parser.y-fix-build-with-gcc-14.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/bandwidthd: fix build with gcc >= 14
2024-07-22 12:29 [Buildroot] [PATCH 1/1] package/bandwidthd: fix build with gcc >= 14 Fabrice Fontaine
2024-07-22 12:46 ` Thomas Petazzoni via buildroot
@ 2024-08-31 11:36 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2024-08-31 11:36 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Nathaniel Roach, buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Fix the following build failure with gcc >= 14:
> parser.c: In function 'yyparse':
> parser.c:1196:16: error: implicit declaration of function 'yylex' [-Wimplicit-function-declaration]
> 1196 | yychar = yylex ();
> | ^~~~~
> While at it, update Upstream tag of first patch
> Fixes:
> - http://autobuild.buildroot.org/results/33364071de4e5e51a2ac2337b82d145f71e0e64a
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2024.05.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-08-31 11:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-22 12:29 [Buildroot] [PATCH 1/1] package/bandwidthd: fix build with gcc >= 14 Fabrice Fontaine
2024-07-22 12:46 ` Thomas Petazzoni via buildroot
2024-08-31 11:36 ` Peter Korsgaard
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.