* [Buildroot] [PATCH 1/1] package/udpcast: fix musl build
@ 2022-08-13 19:59 Fabrice Fontaine
2022-08-14 12:30 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Fontaine @ 2022-08-13 19:59 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine
Fix the following musl build failure raised since bump to version
20211207 in commit ecf85b4ef58873e9acf749adedfbaa90baaaf3c0:
receivedata.c: In function 'findSlice':
receivedata.c:348:2: error: unknown type name 'ptrdiff_t'
348 | ptrdiff_t pos = slice - clst->slices;
| ^~~~~~~~~
receivedata.c:17:1: note: 'ptrdiff_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
16 | #include "fec.h"
+++ |+#include <stddef.h>
17 |
Fixes:
- http://autobuild.buildroot.org/results/30208c6f175967fed6de690447a09e0c86547b24
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/udpcast/0001-fix-musl-build.patch | 31 +++++++++++++++++++++++
1 file changed, 31 insertions(+)
create mode 100644 package/udpcast/0001-fix-musl-build.patch
diff --git a/package/udpcast/0001-fix-musl-build.patch b/package/udpcast/0001-fix-musl-build.patch
new file mode 100644
index 0000000000..0e213b2793
--- /dev/null
+++ b/package/udpcast/0001-fix-musl-build.patch
@@ -0,0 +1,31 @@
+fix musl build
+
+Fix the following musl build failure:
+
+receivedata.c: In function 'findSlice':
+receivedata.c:348:2: error: unknown type name 'ptrdiff_t'
+ 348 | ptrdiff_t pos = slice - clst->slices;
+ | ^~~~~~~~~
+receivedata.c:17:1: note: 'ptrdiff_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
+ 16 | #include "fec.h"
+ +++ |+#include <stddef.h>
+ 17 |
+
+Fixes:
+ - http://autobuild.buildroot.org/results/30208c6f175967fed6de690447a09e0c86547b24
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status:
+https://udpcast.linux.lu/mailman3/hyperkitty/list/udpcast@udpcast.linux.lu/thread/4MBES2CPUSUNIZTC7NXCQYS2GAE4DQSG/]
+
+diff '--color=auto' -Nura udpcast-20211207.orig/receivedata.c udpcast-20211207/receivedata.c
+--- udpcast-20211207.orig/receivedata.c 2022-08-13 21:48:06.226588614 +0200
++++ udpcast-20211207/receivedata.c 2022-08-13 21:48:40.242992238 +0200
+@@ -1,6 +1,7 @@
+ #include <assert.h>
+ #include <sys/types.h>
+ #include <unistd.h>
++#include <stddef.h>
+ #include <stdlib.h>
+ #include <sys/time.h>
+ #include <errno.h>
--
2.35.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/udpcast: fix musl build
2022-08-13 19:59 [Buildroot] [PATCH 1/1] package/udpcast: fix musl build Fabrice Fontaine
@ 2022-08-14 12:30 ` Thomas Petazzoni via buildroot
2022-08-14 19:58 ` Yann E. MORIN
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-08-14 12:30 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
On Sat, 13 Aug 2022 21:59:43 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fix the following musl build failure raised since bump to version
> 20211207 in commit ecf85b4ef58873e9acf749adedfbaa90baaaf3c0:
>
> receivedata.c: In function 'findSlice':
> receivedata.c:348:2: error: unknown type name 'ptrdiff_t'
> 348 | ptrdiff_t pos = slice - clst->slices;
> | ^~~~~~~~~
> receivedata.c:17:1: note: 'ptrdiff_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
> 16 | #include "fec.h"
> +++ |+#include <stddef.h>
> 17 |
>
> Fixes:
> - http://autobuild.buildroot.org/results/30208c6f175967fed6de690447a09e0c86547b24
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/udpcast/0001-fix-musl-build.patch | 31 +++++++++++++++++++++++
> 1 file changed, 31 insertions(+)
> create mode 100644 package/udpcast/0001-fix-musl-build.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/udpcast: fix musl build
2022-08-14 12:30 ` Thomas Petazzoni via buildroot
@ 2022-08-14 19:58 ` Yann E. MORIN
0 siblings, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2022-08-14 19:58 UTC (permalink / raw)
To: Thomas Petazzoni; +Cc: Fabrice Fontaine, buildroot
Fabrice, All,
On 2022-08-14 14:30 +0200, Thomas Petazzoni via buildroot spake thusly:
> On Sat, 13 Aug 2022 21:59:43 +0200
> Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
>
> > Fix the following musl build failure raised since bump to version
> > 20211207 in commit ecf85b4ef58873e9acf749adedfbaa90baaaf3c0:
> >
> > receivedata.c: In function 'findSlice':
> > receivedata.c:348:2: error: unknown type name 'ptrdiff_t'
> > 348 | ptrdiff_t pos = slice - clst->slices;
> > | ^~~~~~~~~
> > receivedata.c:17:1: note: 'ptrdiff_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
> > 16 | #include "fec.h"
> > +++ |+#include <stddef.h>
> > 17 |
> >
> > Fixes:
> > - http://autobuild.buildroot.org/results/30208c6f175967fed6de690447a09e0c86547b24
> >
> > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> > ---
> > package/udpcast/0001-fix-musl-build.patch | 31 +++++++++++++++++++++++
> > 1 file changed, 31 insertions(+)
> > create mode 100644 package/udpcast/0001-fix-musl-build.patch
>
> Applied to master, thanks.
And now, really applied to master, thanks. ;-)
Regards,
Yann E. MORIN.
> 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
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
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:[~2022-08-14 19:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-13 19:59 [Buildroot] [PATCH 1/1] package/udpcast: fix musl build Fabrice Fontaine
2022-08-14 12:30 ` Thomas Petazzoni via buildroot
2022-08-14 19:58 ` 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.