maintainer-feedback requested: [Bug 275615] multimedia/ffmpeg: compilation failure in libavcodec/librsvgdec.c
Date: Thu, 07 Dec 2023 22:13:23 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-multimedia (Nobody) <multimedia@FreeBSD.org> for maintainer-feedback: Bug 275615: multimedia/ffmpeg: compilation failure in libavcodec/librsvgdec.c https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275615 --- Description --- Compilation fails at this point: cc -I. -I./ -DLIBICONV_PLUG -isystem /usr/local/include -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -DZLIB_CONST -DHAVE_AV_CONFIG_H -DBUILDING_avcodec -O2 -pipe -march=broadwell -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -std=c11 -fomit-frame-pointer -fPIC -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include -D_THREAD_SAFE -pthread -I/usr/local/include -I/usr/local/include/p11-kit-1 -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/libdrm -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16 -I/usr/local/include/freetype2 -I/usr/local/include/libpng16 -I/usr/local/include/harfbuzz -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16 -I/usr/local/include/openjpeg-2.5 -I/usr/local/include/librsvg-2.0 -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/cairo -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -D_THREAD_SAFE -I/usr/local/include/libpng16 -I/usr/local/include/pixman-1 -pthread -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/webp -I/usr/local/include -I/usr/local/include/webp -I/usr/local/include -DX264_API_IMPORTS -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/libdrm -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -Wno-unused-const-variable -Wno-bool-operation -Wno-char-subscripts -O3 -fno-math-errno -fno-signed-zeros -flto -mstack-alignment=16 -Qunused-arguments -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -MMD -MF libavcodec/librsvgdec.d -MT libavcodec/librsvgdec.o -c -o libavcodec/librsvgdec.o libavcodec/librsvgdec.c libavcodec/librsvgdec.c:93:5: error: use of undeclared identifier 'viewport' viewport.width = dimensions.width; ^ libavcodec/librsvgdec.c:94:5: error: use of undeclared identifier 'viewport' viewport.height = dimensions.height; ^ 2 errors generated. gmake[2]: *** [ffbuild/common.mak:81: libavcodec/librsvgdec.o] Error 1 gmake[2]: Leaving directory '/usr/ports/multimedia/ffmpeg/work/ffmpeg-6.1' Earlier references to viewport in the same file, including its declaration, but not those in lines 93 and 94, are conditional on #if LIBRSVG_MAJOR_VERSION > 2 || LIBRSVG_MAJOR_VERSION == 2 && LIBRSVG_MINOR_VER SION >= 52 which probably is not true with the build starting with this message: ===>>> The dependency for graphics/librsvg2-rust seems to be handled by librsvg2-2.40.21_3