[Buildroot] [git commit branch/2022.02.x] package/fbv: fix build with giflib and gcc >= 10

Peter Korsgaard peter at korsgaard.com
Mon Jun 6 12:26:39 UTC 2022


commit: https://git.buildroot.net/buildroot/commit/?id=b7b006373005d406d5aca2401bb4a2ed04c73aaa
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2022.02.x

Fix the following build failure with giflib and gcc >= 10:

/nvmedata/autobuild/instance-30/output-1/per-package/fbv/host/bin/../lib/gcc/powerpc-buildroot-linux-uclibc/11.3.0/../../../../powerpc-buildroot-linux-uclibc/bin/ld: gif.o: in function `fh_gif_load':
gif.c:(.text+0x338): undefined reference to `m_rend_gif_decodecolormap'

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

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit 9eeb5cd96dcfb6b579eb745ee5f7e76fcdc51251)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/fbv/0007-gif.c-fic-build-with-gcc-10.patch | 36 ++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/package/fbv/0007-gif.c-fic-build-with-gcc-10.patch b/package/fbv/0007-gif.c-fic-build-with-gcc-10.patch
new file mode 100644
index 0000000000..57d5777b61
--- /dev/null
+++ b/package/fbv/0007-gif.c-fic-build-with-gcc-10.patch
@@ -0,0 +1,36 @@
+From 8877207b290da1c3bc100f2705c30e6bdafcd985 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice at gmail.com>
+Date: Thu, 26 May 2022 23:59:46 +0200
+Subject: [PATCH] gif.c: fic build with gcc >= 10
+
+Fix the following build failure with gcc >= 10::
+
+/nvmedata/autobuild/instance-30/output-1/per-package/fbv/host/bin/../lib/gcc/powerpc-buildroot-linux-uclibc/11.3.0/../../../../powerpc-buildroot-linux-uclibc/bin/ld: gif.o: in function `fh_gif_load':
+gif.c:(.text+0x338): undefined reference to `m_rend_gif_decodecolormap'
+
+Fixes:
+ - http://autobuild.buildroot.org/results/dca603a61b1fd0558992b4a40152d23b5b9c0049
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
+[Upstream status: not upstreamable (most active fork dropped gif
+support: https://github.com/godspeed1989/fbv/pull/17)]
+---
+ gif.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gif.c b/gif.c
+index 689e549..5560f25 100644
+--- a/gif.c
++++ b/gif.c
+@@ -48,7 +48,7 @@ int fh_gif_id(char *name)
+     return(0);
+ }
+ 
+-inline void m_rend_gif_decodecolormap(unsigned char *cmb,unsigned char *rgbb,ColorMapObject *cm,int s,int l, int transparency)
++static inline void m_rend_gif_decodecolormap(unsigned char *cmb,unsigned char *rgbb,ColorMapObject *cm,int s,int l, int transparency)
+ {
+     GifColorType *cmentry;
+     int i;
+-- 
+2.35.1
+



More information about the buildroot mailing list