Source: loudgain
Version: 0.6.8+ds-3
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):
> /usr/bin/cc  -I/<<PKGBUILDDIR>>/src -I/usr/include/taglib 
> -I/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu -g -O2 
> -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
> -fstack-protector-strong -fstack-clash-protection -Wformat 
> -Werror=format-security -mbranch-protection=standard -Wdate-time 
> -D_FORTIFY_SOURCE=2 -std=gnu99 -D_GNU_SOURCE -Wall -pedantic -g -MD -MT 
> CMakeFiles/loudgain.dir/src/scan.c.o -MF 
> CMakeFiles/loudgain.dir/src/scan.c.o.d -o 
> CMakeFiles/loudgain.dir/src/scan.c.o -c /<<PKGBUILDDIR>>/src/scan.c
> /<<PKGBUILDDIR>>/src/scan.c: In function ‘scan_file’:
> /<<PKGBUILDDIR>>/src/scan.c:160:74: warning: passing argument 5 of 
> ‘av_find_best_stream’ from incompatible pointer type 
> [-Wincompatible-pointer-types]
>   160 |   stream_id = av_find_best_stream(container, AVMEDIA_TYPE_AUDIO, -1, 
> -1, &codec, 0);
>       |                                                                       
>    ^~~~~~
>       |                                                                       
>    |
>       |                                                                       
>    AVCodec **
> In file included from /<<PKGBUILDDIR>>/src/scan.c:45:
> /usr/include/aarch64-linux-gnu/libavformat/avformat.h:2318:48: note: expected 
> ‘const struct AVCodec **’ but argument is of type ‘AVCodec **’
>  2318 |                         const struct AVCodec **decoder_ret,
>       |                         ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
> /<<PKGBUILDDIR>>/src/scan.c:182:13: error: ‘AVCodecContext’ has no member 
> named ‘channel_layout’; did you mean ‘ch_layout’?
>   182 |   if (!ctx->channel_layout)
>       |             ^~~~~~~~~~~~~~
>       |             ch_layout
> /<<PKGBUILDDIR>>/src/scan.c:183:10: error: ‘AVCodecContext’ has no member 
> named ‘channel_layout’; did you mean ‘ch_layout’?
>   183 |     ctx->channel_layout = 
> av_get_default_channel_layout(ctx->channels);
>       |          ^~~~~~~~~~~~~~
>       |          ch_layout
> /<<PKGBUILDDIR>>/src/scan.c:183:27: error: implicit declaration of function 
> ‘av_get_default_channel_layout’ [-Werror=implicit-function-declaration]
>   183 |     ctx->channel_layout = 
> av_get_default_channel_layout(ctx->channels);
>       |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /<<PKGBUILDDIR>>/src/scan.c:183:60: error: ‘AVCodecContext’ has no member 
> named ‘channels’
>   183 |     ctx->channel_layout = 
> av_get_default_channel_layout(ctx->channels);
>       |                                                            ^~
> /<<PKGBUILDDIR>>/src/scan.c:192:3: error: implicit declaration of function 
> ‘av_get_channel_layout_string’; did you mean ‘av_channel_layout_subset’? 
> [-Werror=implicit-function-declaration]
>   192 |   av_get_channel_layout_string(infobuf, sizeof(infobuf), -1, 
> ctx->channel_layout);
>       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>       |   av_channel_layout_subset
> /<<PKGBUILDDIR>>/src/scan.c:192:67: error: ‘AVCodecContext’ has no member 
> named ‘channel_layout’; did you mean ‘ch_layout’?
>   192 |   av_get_channel_layout_string(infobuf, sizeof(infobuf), -1, 
> ctx->channel_layout);
>       |                                                                   
> ^~~~~~~~~~~~~~
>       |                                                                   
> ch_layout
> /<<PKGBUILDDIR>>/src/scan.c:194:65: error: ‘AVCodecContext’ has no member 
> named ‘channels’
>   194 |     stream_id, codec->long_name, infotext, ctx->sample_rate, 
> ctx->channels, infobuf);
>       |                                                                 ^~
> /<<PKGBUILDDIR>>/src/scan.c:198:9: warning: ‘av_init_packet’ is deprecated 
> [-Wdeprecated-declarations]
>   198 |         av_init_packet(&packet);
>       |         ^~~~~~~~~~~~~~
> In file included from /usr/include/aarch64-linux-gnu/libavcodec/avcodec.h:44,
>                  from /<<PKGBUILDDIR>>/src/scan.c:44:
> /usr/include/aarch64-linux-gnu/libavcodec/packet.h:653:6: note: declared here
>   653 | void av_init_packet(AVPacket *pkt);
>       |      ^~~~~~~~~~~~~~
> /<<PKGBUILDDIR>>/src/scan.c:206:21: error: ‘AVCodecContext’ has no member 
> named ‘channels’
>   206 |                 ctx -> channels, ctx -> sample_rate,
>       |                     ^~
> /<<PKGBUILDDIR>>/src/scan.c:270:9: warning: ‘avcodec_close’ is deprecated 
> [-Wdeprecated-declarations]
>   270 |         avcodec_close(ctx);
>       |         ^~~~~~~~~~~~~
> /usr/include/aarch64-linux-gnu/libavcodec/avcodec.h:2387:5: note: declared 
> here
>  2387 | int avcodec_close(AVCodecContext *avctx);
>       |     ^~~~~~~~~~~~~
> /<<PKGBUILDDIR>>/src/scan.c: In function ‘scan_frame’:
> /<<PKGBUILDDIR>>/src/scan.c:418:9: error: implicit declaration of function 
> ‘av_opt_set_channel_layout’; did you mean ‘av_opt_set_chlayout’? 
> [-Werror=implicit-function-declaration]
>   418 |         av_opt_set_channel_layout(swr, "in_channel_layout", frame -> 
> channel_layout, 0);
>       |         ^~~~~~~~~~~~~~~~~~~~~~~~~
>       |         av_opt_set_chlayout
> /<<PKGBUILDDIR>>/src/scan.c:418:70: error: ‘AVFrame’ has no member named 
> ‘channel_layout’; did you mean ‘ch_layout’?
>   418 |         av_opt_set_channel_layout(swr, "in_channel_layout", frame -> 
> channel_layout, 0);
>       |                                                                      
> ^~~~~~~~~~~~~~
>       |                                                                      
> ch_layout
> /<<PKGBUILDDIR>>/src/scan.c:419:71: error: ‘AVFrame’ has no member named 
> ‘channel_layout’; did you mean ‘ch_layout’?
>   419 |         av_opt_set_channel_layout(swr, "out_channel_layout", frame -> 
> channel_layout, 0);
>       |                                                                       
> ^~~~~~~~~~~~~~
>       |                                                                       
> ch_layout
> /<<PKGBUILDDIR>>/src/scan.c:422:50: error: ‘AVFrame’ has no member named 
> ‘channels’
>   422 |   av_opt_set_int(swr, "in_channel_count",  frame -> channels, 0);
>       |                                                  ^~
> /<<PKGBUILDDIR>>/src/scan.c:423:50: error: ‘AVFrame’ has no member named 
> ‘channels’
>   423 |   av_opt_set_int(swr, "out_channel_count", frame -> channels, 0);
>       |                                                  ^~
> /<<PKGBUILDDIR>>/src/scan.c:439:38: error: ‘AVFrame’ has no member named 
> ‘channels’
>   439 |                 &out_linesize, frame -> channels, frame -> 
> nb_samples, out_fmt, 0
>       |                                      ^~
> cc1: some warnings being treated as errors
> make[3]: *** [CMakeFiles/loudgain.dir/build.make:107: 
> CMakeFiles/loudgain.dir/src/scan.c.o] Error 1


The full build log is available from:
https://people.debian.org/~sramacher/ffmpeg-7.0/loudgain_arm64.build

ffmpeg 7.0 is available in experimental.

Cheers

-- 
Sebastian Ramacher

Reply via email to