Skip to contentSkip to conversation

package/gstreamer1/gst1-plugins-base: fix build with gcc 4.8

PATCH Applied Fabrice Fontaine 2 participants 2 messages Feb 11, 2022 – Feb 16, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/gstreamer1/gst1-plugins-base: fix build with gcc 4.8

Fix the following build failure with gcc 4.8 raised since bump to version 1.20.0 in commit 801131157dcef2c97e947a1d3e8c9bfa7aa3d870:

../gst-libs/gst/video/video-converter.c: In function 'convert_I420_v210':
../gst-libs/gst/video/video-converter.c:3771:7: error: 'for' loop initial declarations are only allowed in C99 mode

       for (int j = width * 4 - 1; j >= 0; j--) {
       ^

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

---
 package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk | 2 ++
 1 file changed, 2 insertions(+)
package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk +2 -0
index 68281738fa..08aac850cd 100644
@@ -11,6 +11,8 @@ GST1_PLUGINS_BASE_INSTALL_STAGING = YES
 GST1_PLUGINS_BASE_LICENSE_FILES = COPYING
 GST1_PLUGINS_BASE_LICENSE = LGPL-2.1+
 
+GST1_PLUGINS_BASE_CFLAGS = $(TARGET_CFLAGS) -std=gnu99
+
 GST1_PLUGINS_BASE_CONF_OPTS = \
 	-Dexamples=disabled \
 	-Dtests=disabled \
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 5 lines · Fabrice Fontaine

Fix the following build failure with gcc 4.8 raised since bump to version 1.20.0 in commit 801131157dcef2c97e947a1d3e8c9bfa7aa3d870:

../gst-libs/gst/video/video-converter.c: In function 'convert_I420_v210':
../gst-libs/gst/video/video-converter.c:3771:7: error: 'for' loop initial declarations are only allowed in C99 mode

Quoted 7 lines
        for (int j = width * 4 - 1; j >= 0; j--) {
        ^

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

Applied to master, thanks.

Regards,
Arnout

Quoted 9 lines
---
  package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk | 2 ++
  1 file changed, 2 insertions(+)
package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk +0 -0
index 68281738fa..08aac850cd 100644

package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk GST1_PLUGINS_BASE_INSTALL_STAGING = YES · line 18

Quoted 8 lines
package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk +2 -0
@@ -11,6 +11,8 @@ GST1_PLUGINS_BASE_INSTALL_STAGING = YES
  GST1_PLUGINS_BASE_LICENSE_FILES = COPYING
  GST1_PLUGINS_BASE_LICENSE = LGPL-2.1+
 
+GST1_PLUGINS_BASE_CFLAGS = $(TARGET_CFLAGS) -std=gnu99
+
  GST1_PLUGINS_BASE_CONF_OPTS = \
  	-Dexamples=disabled \
  	-Dtests=disabled \

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot