Page MenuHomePhabricator

libavif support constantly broken in efl
Open, Incoming QueuePublic

Description

So far I've only seen two libavif releases to work with efl, 0.8.1 and 0.8.3. Every release afterwards seem to be broken. The compilation stops here:

FAILED: src/modules/evas/image_loaders/libshared_loader_avif.so.p/_var_tmp_portage_dev-libs_efl-1.25.1-r10_work_efl-1.25.1_src_modules_evas_image_loaders_avif_evas_image_load_avif.c.o 
x86_64-pc-linux-gnu-gcc -Isrc/modules/evas/image_loaders/libshared_loader_avif.so.p -Isrc/modules/evas/image_loaders -I../efl-1.25.1/src/modules/evas/image_loaders -I. -I../efl-1.25.1 -Isrc/lib/eina -I../efl-1.25.1/src/lib/eina -Isrc/lib/evas/software_generic -I../efl-1.25.1/src/lib/evas/software_generic -I../efl-1.25.1/src/modules/evas/engines/software_generic/filters -Isrc/lib/evas -I../efl-1.25.1/src/lib/evas -Isrc/lib/evas/common -I../efl-1.25.1/src/lib/evas/common -Isrc/lib/evas/include -I../efl-1.25.1/src/lib/evas/include -Isrc/lib/evas/filters -I../efl-1.25.1/src/lib/evas/filters -Isrc/lib/evas/canvas -I../efl-1.25.1/src/lib/evas/canvas -Isrc/static_libs/vg_common -I../efl-1.25.1/src/static_libs/vg_common -Isrc/modules/evas/engines/buffer -I../efl-1.25.1/src/modules/evas/engines/buffer -Isrc/lib/ecore -I../efl-1.25.1/src/lib/ecore -Isrc/lib/eo -I../efl-1.25.1/src/lib/eo -Isrc/lib/efl -I../efl-1.25.1/src/lib/efl -Isrc/lib/ector -I../efl-1.25.1/src/lib/ector -Isrc/lib/emile -I../efl-1.25.1/src/lib/emile -Isrc/lib/eet -I../efl-1.25.1/src/lib/eet -Isrc/static_libs/buildsystem -I../efl-1.25.1/src/static_libs/buildsystem -Isrc/lib -I../efl-1.25.1/src/lib -Isrc/static_libs/libunibreak -I../efl-1.25.1/src/static_libs/libunibreak -Isrc/lib/evas/gesture -Isrc/lib/efl/interfaces -Isrc/lib/ector/gl -Isrc/lib/ector/software -I/usr/include/lua5.1 -I/usr/include/freetype2 -I/usr/include/uuid -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -fvisibility=hidden -Wall -Wpointer-arith -Wunused-parameter -Wsign-compare -Wno-missing-field-initializers -DHAVE_CONFIG_H=1 -D_GNU_SOURCE=1 -DEFL_BETA_API_SUPPORT=1 -DELM_INTERNAL_API_ARGESFSDFEFC=1 -march=native -O2 -frecord-gcc-switches -fPIC -DAVIF_DLL -pthread '-DPACKAGE_DATA_DIR="/usr/share/evas"' -DNEED_RUN_IN_TREE=1 -DEFL_BUILD=1 -MD -MQ src/modules/evas/image_loaders/libshared_loader_avif.so.p/_var_tmp_portage_dev-libs_efl-1.25.1-r10_work_efl-1.25.1_src_modules_evas_image_loaders_avif_evas_image_load_avif.c.o -MF src/modules/evas/image_loaders/libshared_loader_avif.so.p/_var_tmp_portage_dev-libs_efl-1.25.1-r10_work_efl-1.25.1_src_modules_evas_image_loaders_avif_evas_image_load_avif.c.o.d -o src/modules/evas/image_loaders/libshared_loader_avif.so.p/_var_tmp_portage_dev-libs_efl-1.25.1-r10_work_efl-1.25.1_src_modules_evas_image_loaders_avif_evas_image_load_avif.c.o -c /var/tmp/portage/dev-libs/efl-1.25.1-r10/work/efl-1.25.1/src/modules/evas/image_loaders/avif/evas_image_load_avif.c
/var/tmp/portage/dev-libs/efl-1.25.1-r10/work/efl-1.25.1/src/modules/evas/image_loaders/avif/evas_image_load_avif.c: In function 'evas_image_load_file_head_avif_internal':
/var/tmp/portage/dev-libs/efl-1.25.1-r10/work/efl-1.25.1/src/modules/evas/image_loaders/avif/evas_image_load_avif.c:68:10: error: too many arguments to function 'avifDecoderParse'
   68 |    res = avifDecoderParse(decoder, &raw);
      |          ^~~~~~~~~~~~~~~~
In file included from /var/tmp/portage/dev-libs/efl-1.25.1-r10/work/efl-1.25.1/src/modules/evas/image_loaders/avif/evas_image_load_avif.c:7:
/usr/include/avif/avif.h:752:21: note: declared here
  752 | AVIF_API avifResult avifDecoderParse(avifDecoder * decoder);
      |                     ^~~~~~~~~~~~~~~~
/var/tmp/portage/dev-libs/efl-1.25.1-r10/work/efl-1.25.1/src/modules/evas/image_loaders/avif/evas_image_load_avif.c: In function 'evas_image_load_file_data_avif_internal':
/var/tmp/portage/dev-libs/efl-1.25.1-r10/work/efl-1.25.1/src/modules/evas/image_loaders/avif/evas_image_load_avif.c:155:15: error: too many arguments to function 'avifDecoderParse'
  155 |         res = avifDecoderParse(decoder, &raw);
      |               ^~~~~~~~~~~~~~~~
In file included from /var/tmp/portage/dev-libs/efl-1.25.1-r10/work/efl-1.25.1/src/modules/evas/image_loaders/avif/evas_image_load_avif.c:7:
/usr/include/avif/avif.h:752:21: note: declared here
  752 | AVIF_API avifResult avifDecoderParse(avifDecoder * decoder);
      |                     ^~~~~~~~~~~~~~~~

Note that I am using the latest release of efl, but I hear in #e Freenode that this is the situation with git build too.