Discussion:
Bug#1072444: performous: FTBFS with ffmpeg 7.0: ffmpeg.cc:293:94: error: ‘struct AVCodecContext’ has no member named ‘channel_layout’; did you mean ‘ch_layout’?
Add Reply
Sebastian Ramacher
2024-06-02 13:30:03 UTC
Reply
Permalink
Source: performous
Version: 1.3.0+ds-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
cd /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/game && /usr/bin/c++ -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_DYN_LINK -DBOOST_CHRONO_NO_LIB -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOCALE_DYN_LINK -DBOOST_LOCALE_NO_LIB -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -DCPPREST_FORCE_HTTP_CLIENT_ASIO -DCPPREST_FORCE_HTTP_LISTENER_ASIO -DCPPREST_NO_SSL_LEAK_SUPPRESS -DFMT_SHARED -DUSE_OPENCV -DUSE_PORTMIDI -DUSE_WEBSERVER -D_TURN_OFF_PLATFORM_STRING -I/<<PKGBUILDDIR>>/ced -I/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/game -I/<<PKGBUILDDIR>>/game -isystem /usr/include/SDL2 -isystem /usr/include/librsvg-2.0 -isystem /usr/include/cairo -isystem /usr/include/freetype2 -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/lib/aarch64-linux-gnu/libxml++-2.6/include -isystem /usr/include/libxml++-2.6 -isystem /usr/include/libxml2 -isystem /usr/lib/aarch64-linux-gnu/glibmm-2.4/include -isystem /usr/include/glibmm-2.4 -isystem /usr/include/sigc++-2.0 -isystem /usr/lib/aarch64-linux-gnu/sigc++-2.0/include -isystem /usr/include/opencv4 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/aarch64-linux-gnu/glib-2.0/include -isystem /usr/include/sysprof-6 -isystem /usr/include/harfbuzz -isystem /usr/include/libpng16 -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/pixman-1 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -std=c++17 -Wall -Wextra -Wconversion -pthread -MD -MT game/CMakeFiles/performous.dir/ffmpeg.cc.o -MF CMakeFiles/performous.dir/ffmpeg.cc.o.d -o CMakeFiles/performous.dir/ffmpeg.cc.o -c /<<PKGBUILDDIR>>/game/ffmpeg.cc
/<<PKGBUILDDIR>>/game/ffmpeg.cc:293:94: error: ‘struct AVCodecContext’ has no member named ‘channel_layout’; did you mean ‘ch_layout’?
293 | av_opt_set_int(m_resampleContext.get(), "in_channel_layout", m_codecContext->channel_layout ? static_cast<std::int64_t>(m_codecContext->channel_layout) : av_get_default_channel_layout(m_codecContext->channels), 0);
| ^~~~~~~~~~~~~~
| ch_layout
/<<PKGBUILDDIR>>/game/ffmpeg.cc:293:153: error: ‘struct AVCodecContext’ has no member named ‘channel_layout’; did you mean ‘ch_layout’?
293 | av_opt_set_int(m_resampleContext.get(), "in_channel_layout", m_codecContext->channel_layout ? static_cast<std::int64_t>(m_codecContext->channel_layout) : av_get_default_channel_layout(m_codecContext->channels), 0);
| ^~~~~~~~~~~~~~
| ch_layout
/<<PKGBUILDDIR>>/game/ffmpeg.cc:293:217: error: ‘struct AVCodecContext’ has no member named ‘channels’
293 | av_opt_set_int(m_resampleContext.get(), "in_channel_layout", m_codecContext->channel_layout ? static_cast<std::int64_t>(m_codecContext->channel_layout) : av_get_default_channel_layout(m_codecContext->channels), 0);
| ^~~~~~~~
/<<PKGBUILDDIR>>/game/ffmpeg.cc:293:171: error: ‘av_get_default_channel_layout’ was not declared in this scope
293 | av_opt_set_int(m_resampleContext.get(), "in_channel_layout", m_codecContext->channel_layout ? static_cast<std::int64_t>(m_codecContext->channel_layout) : av_get_default_channel_layout(m_codecContext->channels), 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 47%] Building CXX object game/CMakeFiles/performous.dir/fixednotegraphscaler.cc.o
cd /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/game && /usr/bin/c++ -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_DYN_LINK -DBOOST_CHRONO_NO_LIB -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOCALE_DYN_LINK -DBOOST_LOCALE_NO_LIB -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -DCPPREST_FORCE_HTTP_CLIENT_ASIO -DCPPREST_FORCE_HTTP_LISTENER_ASIO -DCPPREST_NO_SSL_LEAK_SUPPRESS -DFMT_SHARED -DUSE_OPENCV -DUSE_PORTMIDI -DUSE_WEBSERVER -D_TURN_OFF_PLATFORM_STRING -I/<<PKGBUILDDIR>>/ced -I/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/game -I/<<PKGBUILDDIR>>/game -isystem /usr/include/SDL2 -isystem /usr/include/librsvg-2.0 -isystem /usr/include/cairo -isystem /usr/include/freetype2 -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/lib/aarch64-linux-gnu/libxml++-2.6/include -isystem /usr/include/libxml++-2.6 -isystem /usr/include/libxml2 -isystem /usr/lib/aarch64-linux-gnu/glibmm-2.4/include -isystem /usr/include/glibmm-2.4 -isystem /usr/include/sigc++-2.0 -isystem /usr/lib/aarch64-linux-gnu/sigc++-2.0/include -isystem /usr/include/opencv4 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/aarch64-linux-gnu/glib-2.0/include -isystem /usr/include/sysprof-6 -isystem /usr/include/harfbuzz -isystem /usr/include/libpng16 -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/pixman-1 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -std=c++17 -Wall -Wextra -Wconversion -pthread -MD -MT game/CMakeFiles/performous.dir/fixednotegraphscaler.cc.o -MF CMakeFiles/performous.dir/fixednotegraphscaler.cc.o.d -o CMakeFiles/performous.dir/fixednotegraphscaler.cc.o -c /<<PKGBUILDDIR>>/game/fixednotegraphscaler.cc
make[3]: *** [game/CMakeFiles/performous.dir/build.make:331: game/CMakeFiles/performous.dir/ffmpeg.cc.o] Error 1
The full build log is available from:
https://people.debian.org/~sramacher/ffmpeg-7.0/performous_arm64.build

ffmpeg 7.0 is available in experimental.

Cheers
--
Sebastian Ramacher
Zixing Liu
2024-09-26 20:40:01 UTC
Reply
Permalink
Package: performous
Version: 1.3.0+ds-1
Followup-For: Bug #1072444
User: ubuntu-***@lists.ubuntu.com
Usertags: origin-ubuntu oracular ubuntu-patch
Control: tags -1 patch ftbfs

Dear Maintainer,

In Ubuntu, the attached patch was applied to achieve the following:

* d/p/ffmpeg-5.1.patch: add a patch to fix FTBFS with FFmpeg 7
(LP: #2080271, #2080302).


Thanks for considering the patch.


-- System Information:
Debian Release: trixie/sid
APT prefers noble-updates
APT policy: (500, 'noble-updates'), (500, 'noble-security'), (500, 'noble'), (100, 'noble-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.8.0-45-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Loading...