Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Dec 2023 22:13:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        multimedia@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 275615] multimedia/ffmpeg: compilation failure in libavcodec/librsvgdec.c
Message-ID:  <bug-275615-12827-XPbC1Qn6Bk@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-275615-12827@https.bugs.freebsd.org/bugzilla/>
References:  <bug-275615-12827@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
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=3D275615



--- Description ---
Compilation fails at this point:

cc -I. -I./ -DLIBICONV_PLUG -isystem /usr/local/include -D_ISOC99_SOURCE
-D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE -DPIC -DZLIB_CONST
-DHAVE_AV_CONFIG_H -DBUILDING_avcodec -O2 -pipe -march=3Dbroadwell=20
-DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing	-std=3Dc11 -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_S=
AFE
-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 -Wa=
ll
-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=3D16 -Qunused-arg=
uments
-Werror=3Dimplicit-function-declaration -Werror=3Dmissing-prototypes
-Werror=3Dreturn-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 =3D dimensions.width;
    ^
libavcodec/librsvgdec.c:94:5: error: use of undeclared identifier 'viewport'
    viewport.height =3D 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 =3D=3D 2 &&
LIBRSVG_MINOR_VER
SION >=3D 52
which probably is not true with the build starting with this message:
=3D=3D=3D>>> The dependency for graphics/librsvg2-rust
       seems to be handled by librsvg2-2.40.21_3



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275615-12827-XPbC1Qn6Bk>