Bug#1004819: mediastreamer2: FTBFS with ffmpeg 5.0

Sebastian Ramacher sramacher at debian.org
Tue Feb 1 22:30:13 GMT 2022


Source: mediastreamer2
Version: 1:4.4.21-3.1
Severity: important
X-Debbugs-Cc: sramacher at debian.org
Tags: sid bookworm ftbfs
Usertags: ffmpeg5.0

mediastreamer2 FTBFS with ffmpeg 5.0 in experimental:

[ 63%] Building C object src/CMakeFiles/mediastreamer.dir/videofilters/turbojpegnowebcam.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/lib/ccache/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 -Wstrict-prototypes -Wno-error=strict-prototypes -MD -MT src/CMakeFiles/mediastreamer.dir/videofilters/turbojpegnowebcam.c.o -MF CMakeFiles/mediastreamer.dir/videofilters/turbojpegnowebcam.c.o.d -o CMakeFiles/mediastreamer.dir/videofilters/turbojpegnowebcam.c.o -c /<<PKGBUILDDIR>>/src/videofilters/turbojpegnowebcam.c
In file included from /<<PKGBUILDDIR>>/src/voip/msvideo.c:23:
/<<PKGBUILDDIR>>/src/utils/ffmpeg-priv.h:124:17: error: conflicting types for ‘avcodec_alloc_context3’; have ‘AVCodecContext *(AVCodec *)’
  124 | AVCodecContext *avcodec_alloc_context3(AVCodec *codec);
      |                 ^~~~~~~~~~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/utils/ffmpeg-priv.h:52,
                 from /<<PKGBUILDDIR>>/src/voip/msvideo.c:23:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:2326:17: note: previous declaration of ‘avcodec_alloc_context3’ with type ‘AVCodecContext *(const AVCodec *)’
 2326 | AVCodecContext *avcodec_alloc_context3(const AVCodec *codec);
      |                 ^~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [src/CMakeFiles/mediastreamer.dir/build.make:1213: src/CMakeFiles/mediastreamer.dir/voip/msvideo.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
[ 63%] Building C object src/CMakeFiles/mediastreamer.dir/utils/ffmpeg-priv.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/lib/ccache/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 -Wstrict-prototypes -Wno-error=strict-prototypes -MD -MT src/CMakeFiles/mediastreamer.dir/utils/ffmpeg-priv.c.o -MF CMakeFiles/mediastreamer.dir/utils/ffmpeg-priv.c.o.d -o CMakeFiles/mediastreamer.dir/utils/ffmpeg-priv.c.o -c /<<PKGBUILDDIR>>/src/utils/ffmpeg-priv.c
In file included from /<<PKGBUILDDIR>>/src/utils/ffmpeg-priv.c:21:
/<<PKGBUILDDIR>>/src/utils/ffmpeg-priv.h:124:17: error: conflicting types for ‘avcodec_alloc_context3’; have ‘AVCodecContext *(AVCodec *)’
  124 | AVCodecContext *avcodec_alloc_context3(AVCodec *codec);
      |                 ^~~~~~~~~~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/utils/ffmpeg-priv.h:52,
                 from /<<PKGBUILDDIR>>/src/utils/ffmpeg-priv.c:21:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:2326:17: note: previous declaration of ‘avcodec_alloc_context3’ with type ‘AVCodecContext *(const AVCodec *)’
 2326 | AVCodecContext *avcodec_alloc_context3(const AVCodec *codec);
      |                 ^~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/utils/ffmpeg-priv.c: In function ‘avcodec_encode_video2’:
/<<PKGBUILDDIR>>/src/utils/ffmpeg-priv.c:26:19: warning: implicit declaration of function ‘avcodec_encode_video’; did you mean ‘avcodec_encode_video2’? [-Wimplicit-function-declaration]
   26 |         int error=avcodec_encode_video(avctx, avpkt->data, avpkt->size,frame);
      |                   ^~~~~~~~~~~~~~~~~~~~
      |                   avcodec_encode_video2
/<<PKGBUILDDIR>>/src/utils/ffmpeg-priv.c: In function ‘avcodec_get_context_defaults3’:
/<<PKGBUILDDIR>>/src/utils/ffmpeg-priv.c:43:9: warning: implicit declaration of function ‘avcodec_get_context_defaults’; did you mean ‘avcodec_get_context_defaults3’? [-Wimplicit-function-declaration]
   43 |         avcodec_get_context_defaults(s);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         avcodec_get_context_defaults3
/<<PKGBUILDDIR>>/src/utils/ffmpeg-priv.c: At top level:
/<<PKGBUILDDIR>>/src/utils/ffmpeg-priv.c:47:17: error: conflicting types for ‘avcodec_alloc_context3’; have ‘AVCodecContext *(AVCodec *)’
   47 | AVCodecContext *avcodec_alloc_context3(AVCodec *codec){
      |                 ^~~~~~~~~~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/utils/ffmpeg-priv.h:52,
                 from /<<PKGBUILDDIR>>/src/utils/ffmpeg-priv.c:21:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:2326:17: note: previous declaration of ‘avcodec_alloc_context3’ with type ‘AVCodecContext *(const AVCodec *)’
 2326 | AVCodecContext *avcodec_alloc_context3(const AVCodec *codec);
      |                 ^~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/utils/ffmpeg-priv.c: In function ‘avcodec_alloc_context3’:
/<<PKGBUILDDIR>>/src/utils/ffmpeg-priv.c:48:16: warning: implicit declaration of function ‘avcodec_alloc_context’; did you mean ‘avcodec_alloc_context3’? [-Wimplicit-function-declaration]
   48 |         return avcodec_alloc_context();
      |                ^~~~~~~~~~~~~~~~~~~~~
      |                avcodec_alloc_context3
/<<PKGBUILDDIR>>/src/utils/ffmpeg-priv.c:48:16: warning: returning ‘int’ from a function with return type ‘AVCodecContext *’ makes pointer from integer without a cast [-Wint-conversion]
   48 |         return avcodec_alloc_context();
      |                ^~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [src/CMakeFiles/mediastreamer.dir/build.make:1297: src/CMakeFiles/mediastreamer.dir/utils/ffmpeg-priv.c.o] Error 1
In file included from /usr/include/string.h:519,
                 from /usr/include/bctoolbox/port.h:38,
                 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:95:10: warning: ‘__builtin_strncpy’ output may be truncated copying 31 bytes from a string of length 31 [-Wstringop-truncation]
   95 |   return __builtin___strncpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   96 |                                   __glibc_objsize (__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:95:10: warning: ‘__builtin_strncpy’ specified bound 64 equals destination size [-Wstringop-truncation]
   95 |   return __builtin___strncpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   96 |                                   __glibc_objsize (__dest));
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:95: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:95:10: warning: ‘__builtin_strncpy’ output may be truncated copying 31 bytes from a string of length 31 [-Wstringop-truncation]
   95 |   return __builtin___strncpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   96 |                                   __glibc_objsize (__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:95:10: warning: ‘__builtin_strncpy’ output may be truncated copying 31 bytes from a string of length 31 [-Wstringop-truncation]
   95 |   return __builtin___strncpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   96 |                                   __glibc_objsize (__dest));
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'

Cheers
-- 
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-voip-maintainers/attachments/20220201/97c1c9fa/attachment.sig>


More information about the Pkg-voip-maintainers mailing list