#1004819 mediastreamer2: FTBFS with ffmpeg 5.0

#1004819#5
Date:
2022-02-01 22:30:13 UTC
From:
To:
Source: mediastreamer2
Version: 1:4.4.21-3.1
Severity: important
X-Debbugs-Cc: sramacher@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

#1004819#14
Date:
2022-06-28 07:19:37 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
mediastreamer2, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1004819@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bernhard Schmidt <berni@debian.org> (supplier of updated mediastreamer2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 27 Jun 2022 18:08:50 +0200
Source: mediastreamer2
Architecture: source
Version: 1:4.4.21-4
Distribution: unstable
Urgency: medium
Maintainer: Debian VoIP Team <pkg-voip-maintainers@lists.alioth.debian.org>
Changed-By: Bernhard Schmidt <berni@debian.org>
Closes: 1004819
Changes:
 mediastreamer2 (1:4.4.21-4) unstable; urgency=medium
 .
   [ Dennis Filder ]
   * Fix FTBFS by porting to ffmpeg 5.0 API (Closes: #1004819)
Checksums-Sha1:
 3e6ca97939c61784c95c77a69f7228bb6175f238 2930 mediastreamer2_4.4.21-4.dsc
 8421f4ffd57bfa5bb3fe427eb7e1ec80e354a348 11296 mediastreamer2_4.4.21-4.debian.tar.xz
 1e41812d13aeb3cebae7be8c7f1b9a5f14baba19 16111 mediastreamer2_4.4.21-4_amd64.buildinfo
Checksums-Sha256:
 78bfc08ad0cde172cb54e5224f32fe4e7c09a80ca92aa3f9de8ed0a2aeb5adb1 2930 mediastreamer2_4.4.21-4.dsc
 206a818106c3473ac51dd1f6f56491f50fb4254e4a0608348a8ce54921ab0d6e 11296 mediastreamer2_4.4.21-4.debian.tar.xz
 78ea65c30c6ef451409f6ad043ff114da380568380d182916e070c6b7413ddf1 16111 mediastreamer2_4.4.21-4_amd64.buildinfo
Files:
 8c54d28cdd385c0a6991280183734387 2930 libs optional mediastreamer2_4.4.21-4.dsc
 1402f1b8d11776cbe7605eee0aa47412 11296 libs optional mediastreamer2_4.4.21-4.debian.tar.xz
 2d4d7a80a7637f768b8d83b808968cbc 16111 libs optional mediastreamer2_4.4.21-4_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEE1uAexRal3873GVbTd1B55bhQvJMFAmK6qO0RHGJlcm5pQGRl
Ymlhbi5vcmcACgkQd1B55bhQvJPkxA//e6ghV8iOvDtiv3OKmF230h74RAJ8156m
0zkCaEE15MylaRYdcCL7AODc6zTMUh9JfogGufIPDT3TYYiQMY+xmP98A9fvCWw4
skUdFpIXLEnUz9WmxUJibYq57QL6sdvBs92vVYjzEo0cGtA51DhQufq1eLae+rH2
KXhPdCFUPDd7atXN7BCcaPABueVZlmfM1APrpapc//DLHu7IQTM5rAp4rwMIbi/f
GBdPO7nlERVDQcmhUX9Xiu8qu1pCuWD53kPt26Taq8/jXU6WkyD7mC3NL0jiZHey
JTY1bpNJhBBqi5kIWl2yHRr9Iy3aMpXGIQa4q7CVdCFStBzIugMp/MMziG26qkDY
4kd23soevDCxDfUjFpcyDUCFowLTCGmQgNq/1k/WzLefcCcoYD2gVOXZzkKjAIJN
ZGhg4m6/vO/4D0W3QQpDK3FmL49TRJMgoXh0p2rR28lVr5sx4tdOMG7qdNzKTifL
VSQbWKyYurPAc7Sjt9wQvyVOR5srAcPHXPZiPCOnmSnP9kbKFi7HhrphYm3Hzasr
yEDrxFLDPU4OpG0bQtwwUsXXBPBakEQqpm18wLUKnsrXmAbiPBL9F3MsrTyz99mK
UQREUlOkp6NFDnxTv/nfUH3VOPPO6+o4kLM5GdDAERk2qVLSQxmU+ivCfnJEX9Pu
iLckq0SEr5M=
=5Ymd
-----END PGP SIGNATURE-----