Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931886 - media-gfx/sane-backends-1.2.1 - scanimage.c:1263:42: error: call to undeclared function 'basename'
Summary: media-gfx/sane-backends-1.2.1 - scanimage.c:1263:42: error: call to undeclare...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: musl-1.2.5
  Show dependency tree
 
Reported: 2024-05-13 20:32 UTC by ernsteiswuerfel
Modified: 2024-05-13 20:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (sane-backends-1.2.1:20240513-201759.log,96.71 KB, text/plain)
2024-05-13 20:32 UTC, ernsteiswuerfel
Details
emerge --info (file_931886.txt,7.65 KB, text/plain)
2024-05-13 20:33 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2024-05-13 20:32:35 UTC
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
Comment 1 ernsteiswuerfel archtester 2024-05-13 20:33:13 UTC
Created attachment 892892 [details]
emerge --info