Skip to content

community/tofi: enable check() and fix build

Andy Postnikov requested to merge andypost/aports:tofi into master

it fails on builders and test now exists

[34/102] Compiling C object tofi.p/src_fuzzy_match.c.o
ninja: job failed: gcc -Itofi.p -I. -I.. -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/blkid -I/usr/include/libmount -I/usr/include/fribidi -I/usr/include/gio-unix-2.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c2x -pedantic -Wshadow -Wno-unused-parameter -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -fno-asynchronous-unwind-tables -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -fPIE -pthread -MD -MQ tofi.p/src_history.c.o -MF tofi.p/src_history.c.o.d -o tofi.p/src_history.c.o -c ../src/history.c
In file included from /usr/include/fortify/string.h:23,
                 from ../src/history.c:7:
/usr/include/string.h:99:7: error: conflicting types for 'basename'; have 'char *(void)'
   99 | char *basename();
      |       ^~~~~~~~
In file included from ../src/history.c:3:
/usr/include/libgen.h:9:7: note: previous declaration of 'basename' with type 'char *(char *)'
    9 | char *basename(char *);
      |       ^~~~~~~~
ninja: subcommand failed

Merge request reports

Loading