Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 926337

Summary: sys-apps/pciutils-3.11.1 - sysfs.c:456:53: error: call to undeclared function 'basename'
Product: Gentoo Linux Reporter: ernsteiswuerfel <erhard_f>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: erhard_f
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 926147    
Attachments: build.log
emerge --info

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
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2024-04-30 15:40:25 UTC
pciutils-3.12.0 builds and installs fine with musl-1.2.5