Bug#812025: vdr-plugin-vcd: FTBFS with GCC 6: flexible array member...

Martin Michlmayr tbm at hpe.com
Wed Jan 20 04:37:37 UTC 2016


Package: vdr-plugin-vcd
Version: 0.9-25
Severity: important
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.

Note that only the first error is reported; there might be more.  You
can find a snapshot of GCC 6 in experimental.  To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.

You may be able to find out more about this issue at
https://gcc.gnu.org/gcc-6/changes.html

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> make[2]: Entering directory '/<<PKGBUILDDIR>>'
> g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -c -DPLUGIN_NAME_I18N='"vcd"' -D_GNU_SOURCE -I/usr/include/vdr/include vcd.c
> In file included from vcd.c:27:0:
> functions.h:170:23: error: flexible array member 'psd_vcd::<anonymous struct>::play_item' not at end of 'union psd_vcd'
>       __u16  play_item[];
>                        ^
> 
> functions.h:173:13: note: next member '__u8 psd_vcd::<anonymous struct>::header' declared here
>       __u8   header;
>              ^~~~~~
> 
> functions.h:158:7: note: in the definition of 'union psd_vcd'
>  union psd_vcd {
>        ^~~~~~~
> 
> vcd.c: In member function 'virtual const char* cPluginVcd::Description()':
> vcd.c:73:56: warning: ignoring return value of 'int asprintf(char**, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
>       asprintf(&buf, "%s (%s)", DESCRIPTION, option_vcd);
>                                                         ^
> 
> vcd.c: In member function 'virtual const char* cPluginVcd::MainMenuEntry()':
> vcd.c:121:65: warning: ignoring return value of 'int asprintf(char**, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
>          asprintf(&buf, "%s (%s)", tr(MAINMENUENTRY), option_vcd);
>                                                                  ^
> 
> Makefile:61: recipe for target 'vcd.o' failed
> make[2]: *** [vcd.o] Error 1

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise



More information about the pkg-vdr-dvb-devel mailing list