Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926337 - sys-apps/pciutils-3.11.1 - sysfs.c:456:53: error: call to undeclared function 'basename'
Summary: sys-apps/pciutils-3.11.1 - sysfs.c:456:53: error: call to undeclared function...
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:
Depends on:
Blocks: 926147
  Show dependency tree
 
Reported: 2024-03-07 09:40 UTC by ernsteiswuerfel
Modified: 2024-03-07 09:42 UTC (History)
1 user (show)

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


Attachments
build.log (pciutils-3.11.1:20240307-092518.log,6.96 KB, text/plain)
2024-03-07 09:40 UTC, ernsteiswuerfel
Details
emerge --info (file_926337.txt,7.42 KB, text/plain)
2024-03-07 09:42 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 09:40:59 UTC
Created attachment 886887 [details]
build.log

[...]
clang -Os -march=x86-64-v2 -pipe -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -fPIC -fvisibility=hidden  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -c -o caps.o caps.c
clang -Os -march=x86-64-v2 -pipe -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -fPIC -fvisibility=hidden  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -c -o sysfs.o sysfs.c
sysfs.c:456:53: error: call to undeclared function 'basename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  456 |           pci_set_property(d, PCI_FILL_IOMMU_GROUP, basename(group_link));
      |                                                     ^
sysfs.c:456:53: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'char *' [-Wint-conversion]
  456 |           pci_set_property(d, PCI_FILL_IOMMU_GROUP, basename(group_link));
      |                                                     ^~~~~~~~~~~~~~~~~~~~
./internal.h:131:58: note: passing argument to parameter 'value' here
  131 | char *pci_set_property(struct pci_dev *d, u32 key, char *value);
      |                                                          ^
2 errors generated.
make[1]: *** [<builtin>: sysfs.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-apps/pciutils-3.11.1/work/pciutils-3.11.1-abi_x86_64.amd64/lib'
make: *** [Makefile:79: lib/libpci.so.3.11.1] Error 2
Comment 1 ernsteiswuerfel archtester 2024-03-07 09:42:29 UTC
Created attachment 886888 [details]
emerge --info