Bug#1072450: ring: FTBFS with ffmpeg 7.0: media/media_decoder.cpp:349:40: error: ‘const struct AVInputFormat’ has no member named ‘read_header’
Sebastian Ramacher
sramacher at debian.org
Sun Jun 2 14:26:17 BST 2024
Source: ring
Version: 20231201.0~ds1-1
Severity: important
Tags: trixie sid ftbfs
Usertags: ffmpeg-7.0
Hi,
during a rebuild of the reverse dependencies for the transition to
ffmpeg 7.0, your package failed to build
Relevant part (hopefully):
> /bin/bash ../libtool --tag=CXX --mode=compile g++ -std=gnu++17 -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -DLIBJAMI_BUILD -DASIO_STANDALONE -DMSGPACK_NO_BOOST -I/<<PKGBUILDDIR>>/daemon/contrib/aarch64-linux-gnu/include -DPJ_AUTOCONF=1 -I/usr/include/jsoncpp -I/<<PKGBUILDDIR>>/daemon/src -I/<<PKGBUILDDIR>>/daemon/src/config -I/<<PKGBUILDDIR>>/daemon/src/media -I/<<PKGBUILDDIR>>/daemon/test -I/<<PKGBUILDDIR>>/daemon/src/jami -DPREFIX=\"/usr\" -DJAMI_DATADIR=\"/usr/share/jami\" -DENABLE_TRACE -DJAMI_REVISION=\"\" -DJAMI_DIRTY_REPO=\"dirty\" -DPJSIP_MAX_PKT_LEN=8000 -DPJ_AUTOCONF=1 -I../src/jamidht/eth -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG=1 -O3 -Wno-deprecated -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -MT media/media_encoder.lo -MD -MP -MF $depbase.Tpo -c -o media/media_encoder.lo media/media_encoder.cpp &&\
> mv -f $depbase.Tpo $depbase.Plo
> libtool: compile: g++ -std=gnu++17 -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -DLIBJAMI_BUILD -DASIO_STANDALONE -DMSGPACK_NO_BOOST "-I/<<PKGBUILDDIR>>/daemon/contrib/aarch64-linux-gnu/include" -DPJ_AUTOCONF=1 -I/usr/include/jsoncpp "-I/<<PKGBUILDDIR>>/daemon/src" "-I/<<PKGBUILDDIR>>/daemon/src/config" "-I/<<PKGBUILDDIR>>/daemon/src/media" "-I/<<PKGBUILDDIR>>/daemon/test" "-I/<<PKGBUILDDIR>>/daemon/src/jami" -DPREFIX=\"/usr\" -DJAMI_DATADIR=\"/usr/share/jami\" -DENABLE_TRACE -DJAMI_REVISION=\"\" -DJAMI_DIRTY_REPO=\"dirty\" -DPJSIP_MAX_PKT_LEN=8000 -DPJ_AUTOCONF=1 -I../src/jamidht/eth -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG=1 -O3 -Wno-deprecated -g -O2 "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -MT media/media_encoder.lo -MD -MP -MF media/.deps/media_encoder.Tpo -c media/media_encoder.cpp -o media/media_encoder.o
> media/media_decoder.cpp: In member function ‘jami::MediaDemuxer::Status jami::MediaDemuxer::decode()’:
> media/media_decoder.cpp:349:40: error: ‘const struct AVInputFormat’ has no member named ‘read_header’
> 349 | auto ret = inputCtx_->iformat->read_header(inputCtx_);
> | ^~~~~~~~~~~
> media/media_decoder.cpp: In member function ‘jami::DecodeStatus jami::MediaDecoder::flush()’:
> media/media_decoder.cpp:750:19: warning: ‘void av_init_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
> 750 | av_init_packet(&inpacket);
> | ~~~~~~~~~~~~~~^~~~~~~~~~~
> In file included from /usr/include/aarch64-linux-gnu/libavcodec/avcodec.h:44,
> from media/libav_deps.h:28,
> from media/media_decoder.cpp:23:
> /usr/include/aarch64-linux-gnu/libavcodec/packet.h:653:6: note: declared here
> 653 | void av_init_packet(AVPacket *pkt);
> | ^~~~~~~~~~~~~~
> make[4]: *** [Makefile:2455: media/media_decoder.lo] Error 1
The full build log is available from:
https://people.debian.org/~sramacher/ffmpeg-7.0/ring_arm64.build
ffmpeg 7.0 is available in experimental.
Cheers
--
Sebastian Ramacher
More information about the Pkg-voip-maintainers
mailing list