All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/gstreamer1/gstd: fix build with gcc 4.8
@ 2022-04-03 21:17 Fabrice Fontaine
  2022-04-04 19:45 ` Arnout Vandecappelle
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2022-04-03 21:17 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine

Fix the following build failure with gcc 4.8 raised since bump to
version 0.14.0 in commit a334b9a7668ba412cb2da79b75a019cd89985145 and
https://github.com/RidgeRun/gstd-1.x/commit/e83c94920bb33846ff0642dcf070fc5fd124e4f6:

../libgstd/libgstd.c: In function 'gstd_set_ipc':
../libgstd/libgstd.c:119:5: error: 'for' loop initial declarations are only allowed in C99 mode
     for (gint ipc_idx = 0; ipc_idx < num_ipcs; ipc_idx++) {
     ^

Fixes:
 - http://autobuild.buildroot.org/results/00ad1b8979000aa10a20228c998389bc913cbbd4

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/gstreamer1/gstd/gstd.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/gstreamer1/gstd/gstd.mk b/package/gstreamer1/gstd/gstd.mk
index 08a29f26ff..817e9143ae 100644
--- a/package/gstreamer1/gstd/gstd.mk
+++ b/package/gstreamer1/gstd/gstd.mk
@@ -28,6 +28,8 @@ GSTD_CONF_OPTS = \
 	-Dwith-gstd-logstatedir=/var/log/gstd \
 	-Dwith-gstd-systemddir=/usr/lib/systemd/system
 
+GSTD_CFLAGS = $(TARGET_CFLAGS) -std=gnu99
+
 ifeq ($(BR2_PACKAGE_SYSTEMD),y)
 GSTD_CONF_OPTS += -Denable-systemd=enabled -Denable-initd=disabled
 GSTD_DEPENDENCIES += systemd
-- 
2.35.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/gstreamer1/gstd: fix build with gcc 4.8
  2022-04-03 21:17 [Buildroot] [PATCH 1/1] package/gstreamer1/gstd: fix build with gcc 4.8 Fabrice Fontaine
@ 2022-04-04 19:45 ` Arnout Vandecappelle
  0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2022-04-04 19:45 UTC (permalink / raw)
  To: Fabrice Fontaine, buildroot



On 03/04/2022 23:17, Fabrice Fontaine wrote:
> Fix the following build failure with gcc 4.8 raised since bump to
> version 0.14.0 in commit a334b9a7668ba412cb2da79b75a019cd89985145 and
> https://github.com/RidgeRun/gstd-1.x/commit/e83c94920bb33846ff0642dcf070fc5fd124e4f6:
> 
> ../libgstd/libgstd.c: In function 'gstd_set_ipc':
> ../libgstd/libgstd.c:119:5: error: 'for' loop initial declarations are only allowed in C99 mode
>       for (gint ipc_idx = 0; ipc_idx < num_ipcs; ipc_idx++) {
>       ^
> 
> Fixes:
>   - http://autobuild.buildroot.org/results/00ad1b8979000aa10a20228c998389bc913cbbd4
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
>   package/gstreamer1/gstd/gstd.mk | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/package/gstreamer1/gstd/gstd.mk b/package/gstreamer1/gstd/gstd.mk
> index 08a29f26ff..817e9143ae 100644
> --- a/package/gstreamer1/gstd/gstd.mk
> +++ b/package/gstreamer1/gstd/gstd.mk
> @@ -28,6 +28,8 @@ GSTD_CONF_OPTS = \
>   	-Dwith-gstd-logstatedir=/var/log/gstd \
>   	-Dwith-gstd-systemddir=/usr/lib/systemd/system
>   
> +GSTD_CFLAGS = $(TARGET_CFLAGS) -std=gnu99
> +
>   ifeq ($(BR2_PACKAGE_SYSTEMD),y)
>   GSTD_CONF_OPTS += -Denable-systemd=enabled -Denable-initd=disabled
>   GSTD_DEPENDENCIES += systemd
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-04 19:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-03 21:17 [Buildroot] [PATCH 1/1] package/gstreamer1/gstd: fix build with gcc 4.8 Fabrice Fontaine
2022-04-04 19:45 ` Arnout Vandecappelle

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.