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

Bug 926344

Summary: net-wireless/bluez-5.72 - tools/hex2hcd.c:305:18: error: call to undeclared function 'basename'
Product: Gentoo Linux Reporter: ernsteiswuerfel <erhard_f>
Component: Current packagesAssignee: Pacho Ramos <pacho>
Status: UNCONFIRMED ---    
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 10:03:33 UTC
Created attachment 886893 [details]
build.log

[...]
/bin/sh ./libtool  --tag=CC   --mode=link clang       -Os -march=x86-64-v2 -pipe  -fuse-ld=bfd -Wl,-O1 -Wl,--as-needed -o tools/bluemoon tools/bluemoon.o src/libshared-mainloop.la 
libtool: link: clang -Os -march=x86-64-v2 -pipe -fuse-ld=bfd -Wl,-O1 -o tools/bluemoon tools/bluemoon.o  -Wl,--as-needed src/.libs/libshared-mainloop.a
clang -DHAVE_CONFIG_H -I.   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/elogind -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I./lib        -Os -march=x86-64-v2 -pipe -c -o tools/hex2hcd.o tools/hex2hcd.c
tools/hex2hcd.c:305:18: error: call to undeclared function 'basename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  305 |                 ver_parse_file(basename(pathname));
      |                                ^
tools/hex2hcd.c:305:18: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion]
  305 |                 ver_parse_file(basename(pathname));
      |                                ^~~~~~~~~~~~~~~~~~
tools/hex2hcd.c:234:40: note: passing argument to parameter 'pathname' here
  234 | static void ver_parse_file(const char *pathname)
      |                                        ^
2 errors generated.
make[1]: *** [Makefile:7839: tools/hex2hcd.o] Error 1
make: *** [Makefile:4689: all] Error 2
Comment 1 ernsteiswuerfel archtester 2024-03-07 10:04:58 UTC
Created attachment 886894 [details]
emerge --info