Bug#984234: mediastreamer2: ftbfs with GCC-11

Bastian Germann bage at debian.org
Wed Nov 3 12:07:36 GMT 2021


On Wed, 03 Mar 2021 16:15:27 +0000 Matthias Klose <doko at debian.org> wrote:
> [...]
>                  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));
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This should be fixed by adding CMake option ENABLE_STRICT=NO.



More information about the Pkg-voip-maintainers mailing list