#1144332 blender: FTBFS with ffmpeg 9.0

Package:
src:blender
Source:
src:blender
Submitter:
Sebastian Ramacher
Date:
2026-10-02 13:51:04 UTC
Severity:
normal
Tags:
#1144332#5
Date:
2026-08-13 20:20:51 UTC
From:
To:
Source: blender
Version: 5.0.1+dfsg-3
Severity: important
Tags: ftbfs sid forky
X-Debbugs-Cc: sramacher@debian.org

Dear maintainer,

blender FTBFS with ffmpeg 9.0 (available in experimental):

cd /build/blender-V3rruN/blender-5.0.1+dfsg/obj-x86_64-linux-gnu/extern/bullet2 && /usr/lib/ccache/x86_64-linux-gnu-g++ -DBT_USE_DOUBLE_PRECISION -DHAVE_EXECINFO_H -DWITH_ASSERT_ABORT -DWITH_GHOST_WAYLAND_LIBDECOR -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D__LITTLE_ENDIAN__ -I/build/blender-V3rruN/blender-5.0.1+dfsg/extern/bullet2 -I/build/blender-V3rruN/blender-5.0.1+dfsg/extern/bullet2/src -Wuninitialized   -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits  -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith    -Wcomma-subscript -Wformat-signedness -Wrestrict -Wno-suggest-override -Wuninitialized -Wno-stringop-overread -Wno-stringop-overflow -Wimplicit-fallthrough=5   -g -O2 -ffile-prefix-map=/build/blender-V3rruN/blender-5.0.1+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat  -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -march=x86-64-v2 -pipe -fPIC -funsigned-char -fno-strict-aliasing -ffp-contract=off -fmacro-prefix-map="/build/blender-V3rruN/blender-5.0.1+dfsg/"="" -fmacro-prefix-map="/build/blender-V3rruN/blender-5.0.1+dfsg/obj-x86_64-linux-gnu/"=""  -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-function -Wno-type-limits -Wno-int-in-bool-context -Wno-switch -Wno-unused-variable -Wno-uninitialized -Wno-implicit-fallthrough -Wno-error=unused-but-set-variable  -Wno-class-memaccess -Wno-comment -Wno-unused-local-typedefs -Wno-unused-variable -Wno-uninitialized -Wno-reorder -fpermissive -std=c++17 -MD -MT extern/bullet2/CMakeFiles/extern_bullet.dir/src/BulletDynamics/MLCPSolvers/btLemkeAlgorithm.cpp.o -MF CMakeFiles/extern_bullet.dir/src/BulletDynamics/MLCPSolvers/btLemkeAlgorithm.cpp.o.d -o CMakeFiles/extern_bullet.dir/src/BulletDynamics/MLCPSolvers/btLemkeAlgorithm.cpp.o -c /build/blender-V3rruN/blender-5.0.1+dfsg/extern/bullet2/src/BulletDynamics/MLCPSolvers/btLemkeAlgorithm.cpp
/build/blender-V3rruN/blender-5.0.1+dfsg/extern/audaspace/plugins/ffmpeg/FFMPEGWriter.cpp: In constructor ‘aud::FFMPEGWriter::FFMPEGWriter(const std::string&, aud::DeviceSpecs, aud::Container, aud::Codec, unsigned int)’:
/build/blender-V3rruN/blender-5.0.1+dfsg/extern/audaspace/plugins/ffmpeg/FFMPEGWriter.cpp:335:39: error: ‘const AVCodec’ {aka ‘const struct AVCodec’} has no member named ‘sample_fmts’
  335 |                 for(int i = 0; codec->sample_fmts[i] != -1; i++)
      |                                       ^~~~~~~~~~~
/build/blender-V3rruN/blender-5.0.1+dfsg/extern/audaspace/plugins/ffmpeg/FFMPEGWriter.cpp:337:57: error: ‘const AVCodec’ {aka ‘const struct AVCodec’} has no member named ‘sample_fmts’
  337 |                         if(av_get_alt_sample_fmt(codec->sample_fmts[i], false) == m_codecCtx->sample_fmt)
      |                                                         ^~~~~~~~~~~
/build/blender-V3rruN/blender-5.0.1+dfsg/extern/audaspace/plugins/ffmpeg/FFMPEGWriter.cpp:339:81: error: ‘const AVCodec’ {aka ‘const struct AVCodec’} has no member named ‘sample_fmts’
  339 |                                 m_deinterleave = av_sample_fmt_is_planar(codec->sample_fmts[i]);
      |                                                                                 ^~~~~~~~~~~
/build/blender-V3rruN/blender-5.0.1+dfsg/extern/audaspace/plugins/ffmpeg/FFMPEGWriter.cpp:340:65: error: ‘const AVCodec’ {aka ‘const struct AVCodec’} has no member named ‘sample_fmts’
  340 |                                 m_codecCtx->sample_fmt = codec->sample_fmts[i];
      |                                                                 ^~~~~~~~~~~
/build/blender-V3rruN/blender-5.0.1+dfsg/extern/audaspace/plugins/ffmpeg/FFMPEGWriter.cpp:348:68: error: ‘const AVCodec’ {aka ‘const struct AVCodec’} has no member named ‘sample_fmts’
  348 |                         auto chosen = av_get_alt_sample_fmt(codec->sample_fmts[chosen_index], false);
      |                                                                    ^~~~~~~~~~~
/build/blender-V3rruN/blender-5.0.1+dfsg/extern/audaspace/plugins/ffmpeg/FFMPEGWriter.cpp:349:47: error: ‘const AVCodec’ {aka ‘const struct AVCodec’} has no member named ‘sample_fmts’
  349 |                         for(int i = 1; codec->sample_fmts[i] != -1; i++)
      |                                               ^~~~~~~~~~~
/build/blender-V3rruN/blender-5.0.1+dfsg/extern/audaspace/plugins/ffmpeg/FFMPEGWriter.cpp:351:73: error: ‘const AVCodec’ {aka ‘const struct AVCodec’} has no member named ‘sample_fmts’
  351 |                                 auto fmt = av_get_alt_sample_fmt(codec->sample_fmts[i], false);
      |                                                                         ^~~~~~~~~~~
/build/blender-V3rruN/blender-5.0.1+dfsg/extern/audaspace/plugins/ffmpeg/FFMPEGWriter.cpp:359:57: error: ‘const AVCodec’ {aka ‘const struct AVCodec’} has no member named ‘sample_fmts’
  359 |                         m_codecCtx->sample_fmt = codec->sample_fmts[chosen_index];
      |                                                         ^~~~~~~~~~~
/build/blender-V3rruN/blender-5.0.1+dfsg/extern/audaspace/plugins/ffmpeg/FFMPEGWriter.cpp:390:27: error: ‘const AVCodec’ {aka ‘const struct AVCodec’} has no member named ‘supported_samplerates’
  390 |                 if(codec->supported_samplerates)
      |                           ^~~~~~~~~~~~~~~~~~~~~
/build/blender-V3rruN/blender-5.0.1+dfsg/extern/audaspace/plugins/ffmpeg/FFMPEGWriter.cpp:392:47: error: ‘const AVCodec’ {aka ‘const struct AVCodec’} has no member named ‘supported_samplerates’
  392 |                         for(int i = 0; codec->supported_samplerates[i]; i++)
      |                                               ^~~~~~~~~~~~~~~~~~~~~
/build/blender-V3rruN/blender-5.0.1+dfsg/extern/audaspace/plugins/ffmpeg/FFMPEGWriter.cpp:394:43: error: ‘const AVCodec’ {aka ‘const struct AVCodec’} has no member named ‘supported_samplerates’
  394 |                                 if(codec->supported_samplerates[i] == m_specs.rate)
      |                                           ^~~~~~~~~~~~~~~~~~~~~
/build/blender-V3rruN/blender-5.0.1+dfsg/extern/audaspace/plugins/ffmpeg/FFMPEGWriter.cpp:396:74: error: ‘const AVCodec’ {aka ‘const struct AVCodec’} has no member named ‘supported_samplerates’
  396 |                                         m_codecCtx->sample_rate = codec->supported_samplerates[i];
      |                                                                          ^~~~~~~~~~~~~~~~~~~~~
/build/blender-V3rruN/blender-5.0.1+dfsg/extern/audaspace/plugins/ffmpeg/FFMPEGWriter.cpp:399:49: error: ‘const AVCodec’ {aka ‘const struct AVCodec’} has no member named ‘supported_samplerates’
  399 |                                 else if((codec->supported_samplerates[i] > m_codecCtx->sample_rate && m_specs.rate > m_codecCtx->sample_rate) ||
      |                                                 ^~~~~~~~~~~~~~~~~~~~~
/build/blender-V3rruN/blender-5.0.1+dfsg/extern/audaspace/plugins/ffmpeg/FFMPEGWriter.cpp:400:57: error: ‘const AVCodec’ {aka ‘const struct AVCodec’} has no member named ‘supported_samplerates’
  400 |                                                 (codec->supported_samplerates[i] < m_codecCtx->sample_rate && m_specs.rate < codec->supported_samplerates[i]))
      |                                                         ^~~~~~~~~~~~~~~~~~~~~
/build/blender-V3rruN/blender-5.0.1+dfsg/extern/audaspace/plugins/ffmpeg/FFMPEGWriter.cpp:400:133: error: ‘const AVCodec’ {aka ‘const struct AVCodec’} has no member named ‘supported_samplerates’
  400 |                                                 (codec->supported_samplerates[i] < m_codecCtx->sample_rate && m_specs.rate < codec->supported_samplerates[i]))
      |                                                                                                                                     ^~~~~~~~~~~~~~~~~~~~~
/build/blender-V3rruN/blender-5.0.1+dfsg/extern/audaspace/plugins/ffmpeg/FFMPEGWriter.cpp:402:74: error: ‘const AVCodec’ {aka ‘const struct AVCodec’} has no member named ‘supported_samplerates’
  402 |                                         m_codecCtx->sample_rate = codec->supported_samplerates[i];
      |                                                                          ^~~~~~~~~~~~~~~~~~~~~
make[3]: *** [extern/audaspace/CMakeFiles/audaspace.dir/build.make:1622: extern/audaspace/CMakeFiles/audaspace.dir/plugins/ffmpeg/FFMPEGWriter.cpp.o] Error 1


See the attached build log for more details.

Cheers

#1144332#12
Date:
2026-09-30 08:57:45 UTC
From:
To:
FYI: This is fixable with just one commit to cherry-pick from upstream
https://projects.blender.org/blender/blender/commit/e3c92c22817dc0310a460c22f6b1e8e397517e3b

#1144332#17
Date:
2026-10-02 13:09:13 UTC
From:
To:
Hello,

Bug #1144332 in blender reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/multimedia-team/blender/-/commit/b275efcdfbeb30751b1d0819f0910db88cfd6016
------------------------------------------------------------------------
fix FTBFS with FFmpeg 9 -- Closes: #1144332
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1144332

#1144332#24
Date:
2026-10-02 13:49:36 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
blender, 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 1144332@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Antoine Lassagne <antoine.lassagne@canonical.com> (supplier of updated blender 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: Fri, 02 Oct 2026 15:13:44 +0200
Source: blender
Architecture: source
Version: 5.0.1+dfsg-6
Distribution: unstable
Urgency: medium
Maintainer: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Changed-By: Antoine Lassagne <antoine.lassagne@canonical.com>
Closes: 1144332
Changes:
 blender (5.0.1+dfsg-6) unstable; urgency=medium
 .
   * Team upload.
   [ Sébastien Noel ]
   * fix FTBFS with FFmpeg 9 -- Closes: #1144332
Checksums-Sha1:
 a503afac8cf2d1cacbb6874852c7ceb2f046a9ff 3325 blender_5.0.1+dfsg-6.dsc
 734f9f0caee00c61f926ebdfa1a0e30475a9be8d 36500 blender_5.0.1+dfsg-6.debian.tar.xz
 b10578d60652cbb35b39f29b02bde9d273a344fb 247565656 blender_5.0.1+dfsg-6.git.tar.xz
 6598830e1dd433a77ee0e4203bfdb0e7f4a56b3e 17744 blender_5.0.1+dfsg-6_source.buildinfo
Checksums-Sha256:
 987c057ea94e659b89cce7752a2586a2530225e637a6598403db4aed28aa3864 3325 blender_5.0.1+dfsg-6.dsc
 de057870143d0b91978a69175d8b67b15bdd16c3bf626d32e3fc1d393316a6d3 36500 blender_5.0.1+dfsg-6.debian.tar.xz
 e8a0ff9e38698b35d6b0ee5f090af012d7cd7224eab47c29904a154faf264397 247565656 blender_5.0.1+dfsg-6.git.tar.xz
 7312d2428b07db5a05d5603cefbd1baed1c62f05d8d13dab614fef33da54db10 17744 blender_5.0.1+dfsg-6_source.buildinfo
Files:
 04b6adac857eaaa508b8eb83d2c6c192 3325 graphics optional blender_5.0.1+dfsg-6.dsc
 063bcd5272514c336812d43016a0ff8e 36500 graphics optional blender_5.0.1+dfsg-6.debian.tar.xz
 e3150e62727c75b15ca68b5082bdd2a6 247565656 graphics None blender_5.0.1+dfsg-6.git.tar.xz
 d5ae494018d9bf6d6d7964bc89d82b02 17744 graphics optional blender_5.0.1+dfsg-6_source.buildinfo
Git-Tag-Info: tag=d1e7fe9cb486e46408a03b46d2125873e31992a3 fp=296e927eb5441315c8fba1acb73336c4ce0c6cdc
Git-Tag-Tagger: Antoine Lassagne <antoine.lassagne@canonical.com>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmq/sZAACgkQYG0ITkaD
wHlgJw/+Ko5v0XHYrMVBGjwg+lliaxNq2vkbb23byVWgHwkoiztFOJypQzdst+d7
5R/rX7v+UdCWJ1L1OgxX+36FnO4SiWmpRs+kC2a8OHXuzW2kHmAFz6Md0zzoGgvp
s3WHSu4Nn06MT47HjiPQnwgjilDKdw29dwxVWc8R23xvfUgob+aVHkJrSYhwAygC
QvYOYgVJ2YVlp9akE02pV7EAKwG+m9haApnXr89jcxwwVdth1+1mziGeRStsWKHL
qyjLS8EXE6kQtVLLkmtjisiG3ePvDk8U7Q1i2mIHfCwilwkDWkq25O8luG+vW7H+
H+zs+6Z5+7J/MTcxlg26M/YSh46hZSCOfJPFK6j7SsZ6I+z5eWlBh1u3qeFYh7M/
51ghkaKoJqkjX6fmS1vsRMSBpdjryZNODeviKRPf3BF9/Gpiu7aqDEEdAt98Ov4t
CPY+3kkb3T+f4bK6dTzVlO5hveUhlLMJ9birPlXAuP5KhO2+7lVCrhaxTM+zjQ21
lw/4UFSqkBqHYfPNqkSPxTd2FvNUfVs3PNz8jg2f9lexta7wE3mZ8Glr0VAZtNhD
6S7ZdsODC+FgTq18JzJasXdMcvNXo/EQfe3asNPOBr7xJxb0XQLN9rM8PiDL/amg
QKzbrQ9G6G+VuYyN3PGzzOjA3u8ED+H3HyBXt7Zw1pzDM1qKuqQ=
=yWne
-----END PGP SIGNATURE-----