* [Buildroot] [PATCH 1/1] package/pound: include limits.h
@ 2023-09-17 20:13 Fabrice Fontaine
2023-09-21 19:30 ` Arnout Vandecappelle via buildroot
2023-09-26 5:47 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2023-09-17 20:13 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine
Fix the following build failure raised since bump to version 4.8 in
commit 525cb6a8fbe04a959ea6e3a21a3f6f8828d7e9dc and
https://github.com/graygnuorg/pound/commit/c951f2357d9f606a9e1f8727e74b55f1da91fa2f:
Fixes:
- http://autobuild.buildroot.org/results/4edfffcd5d4383c57947d97139331e0bf2cb6155
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/pound/0001-include-limits.h.patch | 75 +++++++++++++++++++++++
1 file changed, 75 insertions(+)
create mode 100644 package/pound/0001-include-limits.h.patch
diff --git a/package/pound/0001-include-limits.h.patch b/package/pound/0001-include-limits.h.patch
new file mode 100644
index 0000000000..8f188af07c
--- /dev/null
+++ b/package/pound/0001-include-limits.h.patch
@@ -0,0 +1,75 @@
+From a0374d946e55129b36ba1e0024e1d94675a8f044 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sun, 17 Sep 2023 22:01:21 +0200
+Subject: [PATCH] include limits.h
+
+Include limits.h to avoid the following build failure:
+
+poundctl.c: In function 'oi_getn':
+poundctl.c:232:29: error: 'INT_MAX' undeclared (first use in this function)
+ 232 | if (errno || n < 0 || n > INT_MAX)
+ | ^~~~~~~
+
+Fixes:
+ - http://autobuild.buildroot.org/results/4edfffcd5d4383c57947d97139331e0bf2cb6155
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Upstream: https://github.com/graygnuorg/pound/pull/17
+---
+ src/config.c | 1 +
+ src/poundctl.c | 1 +
+ src/svc.c | 1 +
+ src/tmpl.c | 1 +
+ 4 files changed, 4 insertions(+)
+
+diff --git a/src/config.c b/src/config.c
+index b7e3150..12f5cfa 100644
+--- a/src/config.c
++++ b/src/config.c
+@@ -21,6 +21,7 @@
+ #include "extern.h"
+ #include <openssl/x509v3.h>
+ #include <assert.h>
++#include <limits.h>
+
+ \f
+ /*
+diff --git a/src/poundctl.c b/src/poundctl.c
+index bd1459f..7fa18c8 100644
+--- a/src/poundctl.c
++++ b/src/poundctl.c
+@@ -19,6 +19,7 @@
+ #include "pound.h"
+ #include "json.h"
+ #include <assert.h>
++#include <limits.h>
+
+ char *conf_name = POUND_CONF;
+ char *socket_name;
+diff --git a/src/svc.c b/src/svc.c
+index 6e810a6..457f1e0 100644
+--- a/src/svc.c
++++ b/src/svc.c
+@@ -20,6 +20,7 @@
+ #include "pound.h"
+ #include "extern.h"
+ #include "json.h"
++#include <limits.h>
+
+ /*
+ * basic hashing function, based on fmv
+diff --git a/src/tmpl.c b/src/tmpl.c
+index 2efa72f..0e5b65d 100644
+--- a/src/tmpl.c
++++ b/src/tmpl.c
+@@ -26,6 +26,7 @@
+
+ #include "pound.h"
+ #include <assert.h>
++#include <limits.h>
+ #include "json.h"
+
+ static void
+--
+2.40.1
+
--
2.40.1
_______________________________________________
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/pound: include limits.h
2023-09-17 20:13 [Buildroot] [PATCH 1/1] package/pound: include limits.h Fabrice Fontaine
@ 2023-09-21 19:30 ` Arnout Vandecappelle via buildroot
2023-09-26 5:47 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2023-09-21 19:30 UTC (permalink / raw)
To: Fabrice Fontaine, buildroot
On 17/09/2023 22:13, Fabrice Fontaine wrote:
> Fix the following build failure raised since bump to version 4.8 in
> commit 525cb6a8fbe04a959ea6e3a21a3f6f8828d7e9dc and
> https://github.com/graygnuorg/pound/commit/c951f2357d9f606a9e1f8727e74b55f1da91fa2f:
>
> Fixes:
> - http://autobuild.buildroot.org/results/4edfffcd5d4383c57947d97139331e0bf2cb6155
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Applied to master, thanks.
Regards,
Arnout
> ---
> package/pound/0001-include-limits.h.patch | 75 +++++++++++++++++++++++
> 1 file changed, 75 insertions(+)
> create mode 100644 package/pound/0001-include-limits.h.patch
>
> diff --git a/package/pound/0001-include-limits.h.patch b/package/pound/0001-include-limits.h.patch
> new file mode 100644
> index 0000000000..8f188af07c
> --- /dev/null
> +++ b/package/pound/0001-include-limits.h.patch
> @@ -0,0 +1,75 @@
> +From a0374d946e55129b36ba1e0024e1d94675a8f044 Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Sun, 17 Sep 2023 22:01:21 +0200
> +Subject: [PATCH] include limits.h
> +
> +Include limits.h to avoid the following build failure:
> +
> +poundctl.c: In function 'oi_getn':
> +poundctl.c:232:29: error: 'INT_MAX' undeclared (first use in this function)
> + 232 | if (errno || n < 0 || n > INT_MAX)
> + | ^~~~~~~
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/4edfffcd5d4383c57947d97139331e0bf2cb6155
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Upstream: https://github.com/graygnuorg/pound/pull/17
> +---
> + src/config.c | 1 +
> + src/poundctl.c | 1 +
> + src/svc.c | 1 +
> + src/tmpl.c | 1 +
> + 4 files changed, 4 insertions(+)
> +
> +diff --git a/src/config.c b/src/config.c
> +index b7e3150..12f5cfa 100644
> +--- a/src/config.c
> ++++ b/src/config.c
> +@@ -21,6 +21,7 @@
> + #include "extern.h"
> + #include <openssl/x509v3.h>
> + #include <assert.h>
> ++#include <limits.h>
> +
> + \f
> + /*
> +diff --git a/src/poundctl.c b/src/poundctl.c
> +index bd1459f..7fa18c8 100644
> +--- a/src/poundctl.c
> ++++ b/src/poundctl.c
> +@@ -19,6 +19,7 @@
> + #include "pound.h"
> + #include "json.h"
> + #include <assert.h>
> ++#include <limits.h>
> +
> + char *conf_name = POUND_CONF;
> + char *socket_name;
> +diff --git a/src/svc.c b/src/svc.c
> +index 6e810a6..457f1e0 100644
> +--- a/src/svc.c
> ++++ b/src/svc.c
> +@@ -20,6 +20,7 @@
> + #include "pound.h"
> + #include "extern.h"
> + #include "json.h"
> ++#include <limits.h>
> +
> + /*
> + * basic hashing function, based on fmv
> +diff --git a/src/tmpl.c b/src/tmpl.c
> +index 2efa72f..0e5b65d 100644
> +--- a/src/tmpl.c
> ++++ b/src/tmpl.c
> +@@ -26,6 +26,7 @@
> +
> + #include "pound.h"
> + #include <assert.h>
> ++#include <limits.h>
> + #include "json.h"
> +
> + static void
> +--
> +2.40.1
> +
_______________________________________________
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/pound: include limits.h
2023-09-17 20:13 [Buildroot] [PATCH 1/1] package/pound: include limits.h Fabrice Fontaine
2023-09-21 19:30 ` Arnout Vandecappelle via buildroot
@ 2023-09-26 5:47 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2023-09-26 5:47 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Fix the following build failure raised since bump to version 4.8 in
> commit 525cb6a8fbe04a959ea6e3a21a3f6f8828d7e9dc and
> https://github.com/graygnuorg/pound/commit/c951f2357d9f606a9e1f8727e74b55f1da91fa2f:
> Fixes:
> - http://autobuild.buildroot.org/results/4edfffcd5d4383c57947d97139331e0bf2cb6155
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2023.08.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:[~2023-09-26 5:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-17 20:13 [Buildroot] [PATCH 1/1] package/pound: include limits.h Fabrice Fontaine
2023-09-21 19:30 ` Arnout Vandecappelle via buildroot
2023-09-26 5:47 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox