Created attachment 892891 [details] build.log make[2]: Entering directory '/var/tmp/portage/media-gfx/sane-backends-1.2.1/work/sane-backends-1.2.1-abi_x86_64.amd64/frontend' clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-gfx/sane-backends-1.2.1/work/sane-backends-1.2.1/frontend -I../include/sane -D_REENTRANT -DPATH_SANE_CONFIG_DIR=/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/share -DPATH_SANE_LOCK_DIR=/var/lib/lock -DV_MAJOR=1 -DV_MINOR=2 -I. -I/var/tmp/portage/media-gfx/sane-backends-1.2.1/work/sane-backends-1.2.1/frontend -I../include -I/var/tmp/portage/media-gfx/sane-backends-1.2.1/work/sane-backends-1.2.1/include -Wall -Os -march=x86-64-v2 -pipe -fno-strict-aliasing -c -o scanimage.o scanimage.c scanimage.c:1263:42: error: call to undeclared function 'basename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1263 | png_set_iCCP(*png_ptr, *info_ptr, basename(icc_profile), PNG_COMPRESSION_TYPE_BASE, icc_buffer, icc_size); | ^ scanimage.c:1263:42: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'png_const_charp' (aka 'const char *') [-Wint-conversion] 1263 | png_set_iCCP(*png_ptr, *info_ptr, basename(icc_profile), PNG_COMPRESSION_TYPE_BASE, icc_buffer, icc_size); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/png.h:2123:42: note: passing argument to parameter 'name' here 2123 | png_inforp info_ptr, png_const_charp name, int compression_type, | ^ 2 errors generated. make[2]: *** [Makefile:609: scanimage.o] Error 1 make[2]: Leaving directory '/var/tmp/portage/media-gfx/sane-backends-1.2.1/work/sane-backends-1.2.1-abi_x86_64.amd64/frontend' make[1]: *** [Makefile:609: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/media-gfx/sane-backends-1.2.1/work/sane-backends-1.2.1-abi_x86_64.amd64' make: *** [Makefile:499: all] Error 2 * ERROR: media-gfx/sane-backends-1.2.1::gentoo failed (compile phase): * emake failed
Created attachment 892892 [details] emerge --info
Tested git-master and 1.3.1 which both build fine on musl-1.2.4.