Bug#984234: mediastreamer2: ftbfs with GCC-11

Matthias Klose doko at debian.org
Wed Mar 3 16:15:27 GMT 2021


Package: src:mediastreamer2
Version: 1:4.4.21-3
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-11

[This bug is not targeted to the upcoming bullseye release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.

The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/mediastreamer2_4.4.21-3_unstable_gcc11.log
The last lines of the build log are at the end of this report.

To build with GCC 11, either set CC=gcc-11 CXX=g++-11 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-11/porting_to.html

GCC 11 defaults to the GNU++17 standard.  If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.

[...]
                 from /usr/include/bctoolbox/list.h:23,
                 from /usr/include/ortp/rtpsession.h:34,
                 from /<<PKGBUILDDIR>>/include/mediastreamer2/stun.h:24,
                 from /<<PKGBUILDDIR>>/src/voip/ice.c:31:
In function ‘strncpy’,
    inlined from ‘ice_compute_candidate_foundation’ at /<<PKGBUILDDIR>>/src/voip/ice.c:3277:4:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 31 bytes from a string of length 31 [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy’,
    inlined from ‘ice_candidate_new’ at /<<PKGBUILDDIR>>/src/voip/ice.c:2988:2:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 64 equals destination size [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 64 equals destination size [-Wstringop-truncation]
In function ‘strncpy’,
    inlined from ‘ice_generate_pair_foundations_list’ at /<<PKGBUILDDIR>>/src/voip/ice.c:3583:2:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 31 bytes from a string of length 31 [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy’,
    inlined from ‘ice_generate_pair_foundations_list’ at /<<PKGBUILDDIR>>/src/voip/ice.c:3584:2:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 31 bytes from a string of length 31 [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 44%] Building C object src/CMakeFiles/mediastreamer.dir/otherfilters/rfc4103_source.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_LOG_DOMAIN=\"mediastreamer\" -DBCTBX_STATIC -DHAVE_CONFIG_H -DMS2_EXPORTS -DMS2_FILTERS -DMS2_INTERNAL -DORTP_STATIC -DVIDEO_ENABLED -D_TRUE_TIME -Dmediastreamer_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src/audiofilters -I/<<PKGBUILDDIR>>/src/utils -I/<<PKGBUILDDIR>>/src/voip -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC  -Wall -Wuninitialized -Wno-format-truncation -Wno-error=stringop-truncation -Wno-cast-function-type -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -Wno-missing-field-initializers -Wno-error=deprecated-declarations -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/mediastreamer.dir/otherfilters/rfc4103_source.c.o -c /<<PKGBUILDDIR>>/src/otherfilters/rfc4103_source.c
[ 44%] Building C object src/CMakeFiles/mediastreamer.dir/otherfilters/rfc4103_sink.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_LOG_DOMAIN=\"mediastreamer\" -DBCTBX_STATIC -DHAVE_CONFIG_H -DMS2_EXPORTS -DMS2_FILTERS -DMS2_INTERNAL -DORTP_STATIC -DVIDEO_ENABLED -D_TRUE_TIME -Dmediastreamer_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src/audiofilters -I/<<PKGBUILDDIR>>/src/utils -I/<<PKGBUILDDIR>>/src/voip -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC  -Wall -Wuninitialized -Wno-format-truncation -Wno-error=stringop-truncation -Wno-cast-function-type -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -Wno-missing-field-initializers -Wno-error=deprecated-declarations -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/mediastreamer.dir/otherfilters/rfc4103_sink.c.o -c /<<PKGBUILDDIR>>/src/otherfilters/rfc4103_sink.c
[ 45%] Building C object src/CMakeFiles/mediastreamer.dir/otherfilters/msudp.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_LOG_DOMAIN=\"mediastreamer\" -DBCTBX_STATIC -DHAVE_CONFIG_H -DMS2_EXPORTS -DMS2_FILTERS -DMS2_INTERNAL -DORTP_STATIC -DVIDEO_ENABLED -D_TRUE_TIME -Dmediastreamer_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src/audiofilters -I/<<PKGBUILDDIR>>/src/utils -I/<<PKGBUILDDIR>>/src/voip -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC  -Wall -Wuninitialized -Wno-format-truncation -Wno-error=stringop-truncation -Wno-cast-function-type -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -Wno-missing-field-initializers -Wno-error=deprecated-declarations -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/mediastreamer.dir/otherfilters/msudp.c.o -c /<<PKGBUILDDIR>>/src/otherfilters/msudp.c
[ 46%] Building C object src/CMakeFiles/mediastreamer.dir/voip/rfc4103_textstream.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_LOG_DOMAIN=\"mediastreamer\" -DBCTBX_STATIC -DHAVE_CONFIG_H -DMS2_EXPORTS -DMS2_FILTERS -DMS2_INTERNAL -DORTP_STATIC -DVIDEO_ENABLED -D_TRUE_TIME -Dmediastreamer_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src/audiofilters -I/<<PKGBUILDDIR>>/src/utils -I/<<PKGBUILDDIR>>/src/voip -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC  -Wall -Wuninitialized -Wno-format-truncation -Wno-error=stringop-truncation -Wno-cast-function-type -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -Wno-missing-field-initializers -Wno-error=deprecated-declarations -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/mediastreamer.dir/voip/rfc4103_textstream.c.o -c /<<PKGBUILDDIR>>/src/voip/rfc4103_textstream.c
[ 46%] Building C object src/CMakeFiles/mediastreamer.dir/voip/ringstream.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_LOG_DOMAIN=\"mediastreamer\" -DBCTBX_STATIC -DHAVE_CONFIG_H -DMS2_EXPORTS -DMS2_FILTERS -DMS2_INTERNAL -DORTP_STATIC -DVIDEO_ENABLED -D_TRUE_TIME -Dmediastreamer_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src/audiofilters -I/<<PKGBUILDDIR>>/src/utils -I/<<PKGBUILDDIR>>/src/voip -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC  -Wall -Wuninitialized -Wno-format-truncation -Wno-error=stringop-truncation -Wno-cast-function-type -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -Wno-missing-field-initializers -Wno-error=deprecated-declarations -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/mediastreamer.dir/voip/ringstream.c.o -c /<<PKGBUILDDIR>>/src/voip/ringstream.c
[ 47%] Building C object src/CMakeFiles/mediastreamer.dir/voip/stun.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_LOG_DOMAIN=\"mediastreamer\" -DBCTBX_STATIC -DHAVE_CONFIG_H -DMS2_EXPORTS -DMS2_FILTERS -DMS2_INTERNAL -DORTP_STATIC -DVIDEO_ENABLED -D_TRUE_TIME -Dmediastreamer_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src/audiofilters -I/<<PKGBUILDDIR>>/src/utils -I/<<PKGBUILDDIR>>/src/voip -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC  -Wall -Wuninitialized -Wno-format-truncation -Wno-error=stringop-truncation -Wno-cast-function-type -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -Wno-missing-field-initializers -Wno-error=deprecated-declarations -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/mediastreamer.dir/voip/stun.c.o -c /<<PKGBUILDDIR>>/src/voip/stun.c
[ 48%] Building C object src/CMakeFiles/mediastreamer.dir/voip/offeranswer.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_LOG_DOMAIN=\"mediastreamer\" -DBCTBX_STATIC -DHAVE_CONFIG_H -DMS2_EXPORTS -DMS2_FILTERS -DMS2_INTERNAL -DORTP_STATIC -DVIDEO_ENABLED -D_TRUE_TIME -Dmediastreamer_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src/audiofilters -I/<<PKGBUILDDIR>>/src/utils -I/<<PKGBUILDDIR>>/src/voip -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC  -Wall -Wuninitialized -Wno-format-truncation -Wno-error=stringop-truncation -Wno-cast-function-type -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -Wno-missing-field-initializers -Wno-error=deprecated-declarations -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/mediastreamer.dir/voip/offeranswer.c.o -c /<<PKGBUILDDIR>>/src/voip/offeranswer.c
[ 49%] Building C object src/CMakeFiles/mediastreamer.dir/audiofilters/alsa.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_LOG_DOMAIN=\"mediastreamer\" -DBCTBX_STATIC -DHAVE_CONFIG_H -DMS2_EXPORTS -DMS2_FILTERS -DMS2_INTERNAL -DORTP_STATIC -DVIDEO_ENABLED -D_TRUE_TIME -Dmediastreamer_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src/audiofilters -I/<<PKGBUILDDIR>>/src/utils -I/<<PKGBUILDDIR>>/src/voip -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC  -Wall -Wuninitialized -Wno-format-truncation -Wno-error=stringop-truncation -Wno-cast-function-type -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -Wno-missing-field-initializers -Wno-error=deprecated-declarations -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/mediastreamer.dir/audiofilters/alsa.c.o -c /<<PKGBUILDDIR>>/src/audiofilters/alsa.c
[ 49%] Building C object src/CMakeFiles/mediastreamer.dir/audiofilters/pulseaudio.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_LOG_DOMAIN=\"mediastreamer\" -DBCTBX_STATIC -DHAVE_CONFIG_H -DMS2_EXPORTS -DMS2_FILTERS -DMS2_INTERNAL -DORTP_STATIC -DVIDEO_ENABLED -D_TRUE_TIME -Dmediastreamer_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src/audiofilters -I/<<PKGBUILDDIR>>/src/utils -I/<<PKGBUILDDIR>>/src/voip -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC  -Wall -Wuninitialized -Wno-format-truncation -Wno-error=stringop-truncation -Wno-cast-function-type -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -Wno-missing-field-initializers -Wno-error=deprecated-declarations -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/mediastreamer.dir/audiofilters/pulseaudio.c.o -c /<<PKGBUILDDIR>>/src/audiofilters/pulseaudio.c
In file included from /usr/include/string.h:495,
                 from /usr/include/bctoolbox/port.h:38,
                 from /<<PKGBUILDDIR>>/include/mediastreamer2/mscommon.h:22,
                 from /<<PKGBUILDDIR>>/include/mediastreamer2/msfilter.h:23,
                 from /<<PKGBUILDDIR>>/src/audiofilters/pulseaudio.c:20:
In function ‘strncpy’,
    inlined from ‘pulse_card_merge_lists’ at /<<PKGBUILDDIR>>/src/audiofilters/pulseaudio.c:240:3:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/audiofilters/pulseaudio.c: In function ‘pulse_card_compare’:
/<<PKGBUILDDIR>>/src/audiofilters/pulseaudio.c:232:16: error: ‘strncmp’ specified bound 512 exceeds source size 256 [-Werror=stringop-overread]
  232 |         return strncmp(sink->description, source->description, 512);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 50%] Building C object src/CMakeFiles/mediastreamer.dir/audiofilters/gsm.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DBCTBX_LOG_DOMAIN=\"mediastreamer\" -DBCTBX_STATIC -DHAVE_CONFIG_H -DMS2_EXPORTS -DMS2_FILTERS -DMS2_INTERNAL -DORTP_STATIC -DVIDEO_ENABLED -D_TRUE_TIME -Dmediastreamer_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src/audiofilters -I/<<PKGBUILDDIR>>/src/utils -I/<<PKGBUILDDIR>>/src/voip -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC  -Wall -Wuninitialized -Wno-format-truncation -Wno-error=stringop-truncation -Wno-cast-function-type -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -Wno-missing-field-initializers -Wno-error=deprecated-declarations -Wstrict-prototypes -Wno-error=strict-prototypes -o CMakeFiles/mediastreamer.dir/audiofilters/gsm.c.o -c /<<PKGBUILDDIR>>/src/audiofilters/gsm.c
cc1: all warnings being treated as errors
make[3]: *** [src/CMakeFiles/mediastreamer.dir/build.make:956: src/CMakeFiles/mediastreamer.dir/audiofilters/pulseaudio.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:280: src/CMakeFiles/mediastreamer.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:152: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j4 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:11: binary] Error 25
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2



More information about the Pkg-voip-maintainers mailing list