Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/casync: fix build with gcc >= 13
@ 2023-10-15 19:45 Fabrice Fontaine
  2023-10-15 20:00 ` Arnout Vandecappelle via buildroot
  2023-10-26 11:13 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2023-10-15 19:45 UTC (permalink / raw)
  To: buildroot; +Cc: Yair Ben Avraham, Fabrice Fontaine

Fix the following build failure with gcc >= 13:

In file included from ../src/compressor.c:3:
../src/compressor.h:59:59: error: unknown type name 'size_t'
   59 | int compressor_input(CompressorContext *c, const void *p, size_t sz);
      |                                                           ^~~~~~
../src/compressor.h:19:1: note: 'size_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
   18 | #include "cacompression.h"
  +++ |+#include <stddef.h>
   19 |

Fixes:
 - http://autobuild.buildroot.org/results/ab08f3b90d253db45643dd058b80ae1dd5f49d0f

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...c-compressor.h-fix-build-with-gcc-13.patch | 40 +++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 package/casync/0001-src-compressor.h-fix-build-with-gcc-13.patch

diff --git a/package/casync/0001-src-compressor.h-fix-build-with-gcc-13.patch b/package/casync/0001-src-compressor.h-fix-build-with-gcc-13.patch
new file mode 100644
index 0000000000..32af9142a7
--- /dev/null
+++ b/package/casync/0001-src-compressor.h-fix-build-with-gcc-13.patch
@@ -0,0 +1,40 @@
+From 8db993c32f97188bdd6de4b2aa177fc513ee7e9f Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sun, 15 Oct 2023 21:22:58 +0200
+Subject: [PATCH] src/compressor.h: fix build with gcc >= 13
+
+Fix the following build failure with gcc >= 13:
+
+In file included from ../src/compressor.c:3:
+../src/compressor.h:59:59: error: unknown type name 'size_t'
+   59 | int compressor_input(CompressorContext *c, const void *p, size_t sz);
+      |                                                           ^~~~~~
+../src/compressor.h:19:1: note: 'size_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
+   18 | #include "cacompression.h"
+  +++ |+#include <stddef.h>
+   19 |
+
+Fixes:
+ - http://autobuild.buildroot.org/results/ab08f3b90d253db45643dd058b80ae1dd5f49d0f
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Upstream: https://github.com/systemd/casync/pull/270
+---
+ src/compressor.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/compressor.h b/src/compressor.h
+index 2c9f93b..ae2eb30 100644
+--- a/src/compressor.h
++++ b/src/compressor.h
+@@ -4,6 +4,7 @@
+ #define foocompresshorhfoo
+ 
+ #include <stdbool.h>
++#include <stddef.h>
+ 
+ #if HAVE_LIBLZMA
+ #  include <lzma.h>
+-- 
+2.42.0
+
-- 
2.42.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/casync: fix build with gcc >= 13
  2023-10-15 19:45 [Buildroot] [PATCH 1/1] package/casync: fix build with gcc >= 13 Fabrice Fontaine
@ 2023-10-15 20:00 ` Arnout Vandecappelle via buildroot
  2023-10-26 11:13 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2023-10-15 20:00 UTC (permalink / raw)
  To: Fabrice Fontaine, buildroot; +Cc: Yair Ben Avraham



On 15/10/2023 21:45, Fabrice Fontaine wrote:
> Fix the following build failure with gcc >= 13:
> 
> In file included from ../src/compressor.c:3:
> ../src/compressor.h:59:59: error: unknown type name 'size_t'
>     59 | int compressor_input(CompressorContext *c, const void *p, size_t sz);
>        |                                                           ^~~~~~
> ../src/compressor.h:19:1: note: 'size_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
>     18 | #include "cacompression.h"
>    +++ |+#include <stddef.h>
>     19 |
> 
> Fixes:
>   - http://autobuild.buildroot.org/results/ab08f3b90d253db45643dd058b80ae1dd5f49d0f
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
>   ...c-compressor.h-fix-build-with-gcc-13.patch | 40 +++++++++++++++++++
>   1 file changed, 40 insertions(+)
>   create mode 100644 package/casync/0001-src-compressor.h-fix-build-with-gcc-13.patch
> 
> diff --git a/package/casync/0001-src-compressor.h-fix-build-with-gcc-13.patch b/package/casync/0001-src-compressor.h-fix-build-with-gcc-13.patch
> new file mode 100644
> index 0000000000..32af9142a7
> --- /dev/null
> +++ b/package/casync/0001-src-compressor.h-fix-build-with-gcc-13.patch
> @@ -0,0 +1,40 @@
> +From 8db993c32f97188bdd6de4b2aa177fc513ee7e9f Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Sun, 15 Oct 2023 21:22:58 +0200
> +Subject: [PATCH] src/compressor.h: fix build with gcc >= 13
> +
> +Fix the following build failure with gcc >= 13:
> +
> +In file included from ../src/compressor.c:3:
> +../src/compressor.h:59:59: error: unknown type name 'size_t'
> +   59 | int compressor_input(CompressorContext *c, const void *p, size_t sz);
> +      |                                                           ^~~~~~
> +../src/compressor.h:19:1: note: 'size_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
> +   18 | #include "cacompression.h"
> +  +++ |+#include <stddef.h>
> +   19 |
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/ab08f3b90d253db45643dd058b80ae1dd5f49d0f
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Upstream: https://github.com/systemd/casync/pull/270
> +---
> + src/compressor.h | 1 +
> + 1 file changed, 1 insertion(+)
> +
> +diff --git a/src/compressor.h b/src/compressor.h
> +index 2c9f93b..ae2eb30 100644
> +--- a/src/compressor.h
> ++++ b/src/compressor.h
> +@@ -4,6 +4,7 @@
> + #define foocompresshorhfoo
> +
> + #include <stdbool.h>
> ++#include <stddef.h>
> +
> + #if HAVE_LIBLZMA
> + #  include <lzma.h>
> +--
> +2.42.0
> +
_______________________________________________
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/casync: fix build with gcc >= 13
  2023-10-15 19:45 [Buildroot] [PATCH 1/1] package/casync: fix build with gcc >= 13 Fabrice Fontaine
  2023-10-15 20:00 ` Arnout Vandecappelle via buildroot
@ 2023-10-26 11:13 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2023-10-26 11:13 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Yair Ben Avraham, buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Fix the following build failure with gcc >= 13:
 > In file included from ../src/compressor.c:3:
 > ../src/compressor.h:59:59: error: unknown type name 'size_t'
 >    59 | int compressor_input(CompressorContext *c, const void *p, size_t sz);
 >       |                                                           ^~~~~~
 > ../src/compressor.h:19:1: note: 'size_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
 >    18 | #include "cacompression.h"
 >   +++ |+#include <stddef.h>
 >    19 |

 > Fixes:
 >  - http://autobuild.buildroot.org/results/ab08f3b90d253db45643dd058b80ae1dd5f49d0f

 > 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-10-26 11:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-15 19:45 [Buildroot] [PATCH 1/1] package/casync: fix build with gcc >= 13 Fabrice Fontaine
2023-10-15 20:00 ` Arnout Vandecappelle via buildroot
2023-10-26 11:13 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox