All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
To: buildroot@buildroot.org
Cc: Nathaniel Roach <nroach44@gmail.com>,
	Fabrice Fontaine <fontaine.fabrice@gmail.com>
Subject: [Buildroot] [PATCH 1/1] package/bandwidthd: fix build with gcc >= 14
Date: Mon, 22 Jul 2024 14:29:41 +0200	[thread overview]
Message-ID: <20240722122941.63050-1-fontaine.fabrice@gmail.com> (raw)

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

             reply	other threads:[~2024-07-22 12:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-22 12:29 Fabrice Fontaine [this message]
2024-07-22 12:46 ` [Buildroot] [PATCH 1/1] package/bandwidthd: fix build with gcc >= 14 Thomas Petazzoni via buildroot
2024-08-31 11:36 ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240722122941.63050-1-fontaine.fabrice@gmail.com \
    --to=fontaine.fabrice@gmail.com \
    --cc=buildroot@buildroot.org \
    --cc=nroach44@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.