Bug#1072424: janus: FTBFS with ffmpeg 7.0: postprocessing/pp-g722.c:215:61: error: ‘AVCodecContext’ has no member named ‘channels’
Sebastian Ramacher
sramacher at debian.org
Sun Jun 2 14:20:39 BST 2024
Source: janus
Version: 1.1.2-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):
> gcc -DPACKAGE_NAME=\"Janus\ WebRTC\ Server\" -DPACKAGE_TARNAME=\"janus-gateway\" -DPACKAGE_VERSION=\"1.1.2\" -DPACKAGE_STRING=\"Janus\ WebRTC\ Server\ 1.1.2\" -DPACKAGE_BUGREPORT=\"https://github.com/meetecho/janus-gateway\" -DPACKAGE_URL=\"https://janus.conf.meetecho.com\" -DPACKAGE=\"janus-gateway\" -DVERSION=\"1.1.2\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DSTDC_HEADERS=1 -D_ALL_SOURCE=1 -D_DARWIN_C_SOURCE=1 -D_GNU_SOURCE=1 -D_HPUX_ALT_XOPEN_SOCKET_API=1 -D_NETBSD_SOURCE=1 -D_OPENBSD_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D__STDC_WANT_IEC_60559_ATTRIBS_EXT__=1 -D__STDC_WANT_IEC_60559_BFP_EXT__=1 -D__STDC_WANT_IEC_60559_DFP_EXT__=1 -D__STDC_WANT_IEC_60559_FUNCS_EXT__=1 -D__STDC_WANT_IEC_60559_TYPES_EXT__=1 -D__STDC_WANT_LIB_EXT2__=1 -D__STDC_WANT_MATH_SPEC_FUNCS__=1 -D_TANDEM_SOURCE=1 -D__EXTENSIONS__=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAS_DTLS_WINDOW_SIZE=1 -DHAVE_SRTP_AESGCM=1 -DHAVE_PORTRANGE=1 -DHAVE_LIBNICE_TCP=1 -DHAVE_CLOSE_ASYNC=1 -DHAVE_ICE_NOMINATION=1 -DHAVE_SRTP_2=1 -DHAVE_SCTP=1 -DHAVE_LIBCURL=1 -DHAVE_TURNRESTAPI=1 -DHAVE_SAMPLEEVH=1 -DHAVE_ENUM_MHD_RESULT=1 -DHAVE_WEBSOCKETS=1 -DHAVE_LIBWEBSOCKETS_PEER_SIMPLE=1 -DHAVE_WSEVH=1 -DHAVE_RABBITMQ=1 -DHAVE_RABBITMQEVH=1 -DHAVE_MQTT=1 -DHAVE_MQTTEVH=1 -DHAVE_NANOMSG=1 -DHAVE_NANOMSGEVH=1 -DHAVE_PFUNIX=1 -DHAVE_LIBSYSTEMD=1 -DHAVE_LIBOGG=1 -DHAVE_LIBPCAP=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I../src/postprocessing -I/usr/include/aarch64-linux-gnu -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/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 -fPIC -fstack-protector-all -fstrict-aliasing -ggdb3 -pthread -Wall -Warray-bounds -Wextra -Wformat-nonliteral -Wformat-security -Wformat=2 -Winit-self -Wlarger-than=65537 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wswitch-default -Wunused -Wno-unused-parameter -Wno-unused-result -Wwrite-strings -Werror=implicit-function-declaration -Wcast-align -Wno-override-init -Wunsafe-loop-optimizations -Wunused-but-set-variable -c -o postprocessing/janus_pp_rec-pp-g722.o `test -f 'postprocessing/pp-g722.c' || echo './'`postprocessing/pp-g722.c
> postprocessing/pp-g722.c: In function ‘janus_pp_g722_process’:
> postprocessing/pp-g722.c:215:61: error: ‘AVCodecContext’ has no member named ‘channels’
> 215 | for(ch=0; ch<dec_ctx->channels; ch++) {
> | ^~
> postprocessing/pp-g722.c: In function ‘janus_pp_g722_close’:
> postprocessing/pp-g722.c:238:9: warning: ‘avcodec_close’ is deprecated [-Wdeprecated-declarations]
> 238 | avcodec_close(dec_ctx);
> | ^~~~~~~~~~~~~
> In file included from postprocessing/pp-avformat.h:13,
> from postprocessing/pp-g722.c:23:
> /usr/include/aarch64-linux-gnu/libavcodec/avcodec.h:2387:5: note: declared here
> 2387 | int avcodec_close(AVCodecContext *avctx);
> | ^~~~~~~~~~~~~
> make[4]: *** [Makefile:2683: postprocessing/janus_pp_rec-pp-g722.o] Error 1
The full build log is available from:
https://people.debian.org/~sramacher/ffmpeg-7.0/janus_arm64.build
ffmpeg 7.0 is available in experimental.
Cheers
--
Sebastian Ramacher
More information about the Pkg-voip-maintainers
mailing list