FTBFS with GCC 10 on OMXil module
From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=957915:
vlc 3.0.x (I didn't try the master branch) fails to build with GCC 10 with
libtool: link: gcc -shared -fPIC -DPIC codec/omxil/.libs/libomxil_plugin_la-utils.o packetizer/.libs/libomxil_plugin_la-h264_nal.o packetizer/.libs/libomxil_plugin_la-hevc_nal.o codec/omxil/.libs/libomxil_plugin_la-qcom.o codec/omxil/.libs/libomxil_plugin_la-omxil.o codec/omxil/.libs/libomxil_plugin_la-omxil_core.o -Wl,--whole-archive ./.libs/libchroma_copy.a -Wl,--no-whole-archive -Wl,-rpath -Wl,/<<PKGBUILDDIR>>/src/.libs ../compat/.libs/libcompat.a ../src/.libs/libvlccore.so -Wl,--as-needed -ldl -g -O2 -fstack-protector-strong -O3 -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-z -Wl,defs -Wl,-soname -Wl,libomxil_plugin.so -Wl,-version-script -Wl,.libs/libomxil_plugin.ver -o .libs/libomxil_plugin.so
/usr/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil.o:./modules/codec/omxil/omxil_core.h:32: multiple definition of `pf_free_handle'; codec/omxil/.libs/libomxil_plugin_la-utils.o:./modules/codec/omxil/omxil_core.h:32: first defined here
/usr/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil.o:./modules/codec/omxil/omxil_core.h:30: multiple definition of `pf_get_handle'; codec/omxil/.libs/libomxil_plugin_la-utils.o:./modules/codec/omxil/omxil_core.h:30: first defined here
/usr/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil.o:./modules/codec/omxil/omxil_core.h:39: multiple definition of `pf_get_hal_format'; codec/omxil/.libs/libomxil_plugin_la-utils.o:./modules/codec/omxil/omxil_core.h:39: first defined here
/usr/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil.o:./modules/codec/omxil/omxil_core.h:38: multiple definition of `pf_get_graphic_buffer_usage'; codec/omxil/.libs/libomxil_plugin_la-utils.o:./modules/codec/omxil/omxil_core.h:38: first defined here
/usr/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil.o:./modules/codec/omxil/omxil_core.h:37: multiple definition of `pf_enable_graphic_buffers'; codec/omxil/.libs/libomxil_plugin_la-utils.o:./modules/codec/omxil/omxil_core.h:37: first defined here
/usr/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil.o:./modules/codec/omxil/omxil_core.h:34: multiple definition of `pf_get_roles_of_component'; codec/omxil/.libs/libomxil_plugin_la-utils.o:./modules/codec/omxil/omxil_core.h:34: first defined here
/usr/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil.o:./modules/codec/omxil/omxil_core.h:33: multiple definition of `pf_component_enum'; codec/omxil/.libs/libomxil_plugin_la-utils.o:./modules/codec/omxil/omxil_core.h:33: first defined here
/usr/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil.o:./modules/codec/omxil/omxil_core.h:29: multiple definition of `pf_deinit'; codec/omxil/.libs/libomxil_plugin_la-utils.o:./modules/codec/omxil/omxil_core.h:29: first defined here
/usr/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil.o:./modules/codec/omxil/omxil_core.h:28: multiple definition of `pf_init'; codec/omxil/.libs/libomxil_plugin_la-utils.o:./modules/codec/omxil/omxil_core.h:28: first defined here
/usr/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil_core.o:./modules/codec/omxil/omxil_core.h:28: multiple definition of `pf_init'; codec/omxil/.libs/libomxil_plugin_la-utils.o:./modules/codec/omxil/omxil_core.h:28: first defined here
/usr/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil_core.o:./modules/codec/omxil/omxil_core.h:29: multiple definition of `pf_deinit'; codec/omxil/.libs/libomxil_plugin_la-utils.o:./modules/codec/omxil/omxil_core.h:29: first defined here
/usr/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil_core.o:./modules/codec/omxil/omxil_core.h:30: multiple definition of `pf_get_handle'; codec/omxil/.libs/libomxil_plugin_la-utils.o:./modules/codec/omxil/omxil_core.h:30: first defined here
/usr/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil_core.o:./modules/codec/omxil/omxil_core.h:32: multiple definition of `pf_free_handle'; codec/omxil/.libs/libomxil_plugin_la-utils.o:./modules/codec/omxil/omxil_core.h:32: first defined here
/usr/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil_core.o:./modules/codec/omxil/omxil_core.h:33: multiple definition of `pf_component_enum'; codec/omxil/.libs/libomxil_plugin_la-utils.o:./modules/codec/omxil/omxil_core.h:33: first defined here
/usr/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil_core.o:./modules/codec/omxil/omxil_core.h:34: multiple definition of `pf_get_roles_of_component'; codec/omxil/.libs/libomxil_plugin_la-utils.o:./modules/codec/omxil/omxil_core.h:34: first defined here
/usr/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil_core.o:./modules/codec/omxil/omxil_core.h:39: multiple definition of `pf_get_hal_format'; codec/omxil/.libs/libomxil_plugin_la-utils.o:./modules/codec/omxil/omxil_core.h:39: first defined here
/usr/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil_core.o:./modules/codec/omxil/omxil_core.h:38: multiple definition of `pf_get_graphic_buffer_usage'; codec/omxil/.libs/libomxil_plugin_la-utils.o:./modules/codec/omxil/omxil_core.h:38: first defined here
/usr/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil_core.o:./modules/codec/omxil/omxil_core.h:37: multiple definition of `pf_enable_graphic_buffers'; codec/omxil/.libs/libomxil_plugin_la-utils.o:./modules/codec/omxil/omxil_core.h:37: first defined here
I suppose that is caused by -fno-common
being the default now (see also https://gcc.gnu.org/gcc-10/porting_to.html)
Edited by Jean-Baptiste Kempf