Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926294 - sys-apps/attr-2.5.2-r1 - .../work/attr-2.5.2/tools/attr.c:69:13: error: call to undeclared function 'basename'
Summary: sys-apps/attr-2.5.2-r1 - .../work/attr-2.5.2/tools/attr.c:69:13: error: call ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 926147
  Show dependency tree
 
Reported: 2024-03-07 00:40 UTC by ernsteiswuerfel
Modified: 2024-03-31 04:16 UTC (History)
1 user (show)

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


Attachments
build.log (attr-2.5.2-r1:20240307-001515.log,10.14 KB, text/plain)
2024-03-07 00:40 UTC, ernsteiswuerfel
Details
emerge --info (file_926294.txt,7.42 KB, text/plain)
2024-03-07 00:41 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2024-03-07 00:40:26 UTC
Created attachment 886841 [details]
build.log

[...]
clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-apps/attr-2.5.2-r1/work/attr-2.5.2 -I./include  -I./include -I/var/tmp/portage/sys-apps/attr-2.5.2-r1/work/attr-2.5.2/include -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -DNDEBUG  -Os -march=x86-64-v2 -pipe -fvisibility=hidden -c -o tools/attr.o /var/tmp/portage/sys-apps/attr-2.5.2-r1/work/attr-2.5.2/tools/attr.c
/var/tmp/portage/sys-apps/attr-2.5.2-r1/work/attr-2.5.2/tools/attr.c:69:13: error: call to undeclared function 'basename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   69 |         progname = basename(argv[0]);
      |                    ^
/var/tmp/portage/sys-apps/attr-2.5.2-r1/work/attr-2.5.2/tools/attr.c:69:11: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
   69 |         progname = basename(argv[0]);
      |                  ^ ~~~~~~~~~~~~~~~~~
2 errors generated.
make[1]: *** [Makefile:992: tools/attr.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-apps/attr-2.5.2-r1/work/attr-2.5.2-abi_x86_64.amd64'
make: *** [Makefile:1240: all-recursive] Error 1
Comment 1 ernsteiswuerfel archtester 2024-03-07 00:41:16 UTC
Created attachment 886842 [details]
emerge --info