Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926344 - net-wireless/bluez-5.72 - tools/hex2hcd.c:305:18: error: call to undeclared function 'basename'
Summary: net-wireless/bluez-5.72 - tools/hex2hcd.c:305:18: error: call to undeclared f...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Pacho Ramos
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 926147
  Show dependency tree
 
Reported: 2024-03-07 10:03 UTC by ernsteiswuerfel
Modified: 2024-03-07 10:04 UTC (History)
1 user (show)

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


Attachments
build.log (bluez-5.72:20240307-095810.log,92.80 KB, text/plain)
2024-03-07 10:03 UTC, ernsteiswuerfel
Details
emerge --info (file_926344.txt,7.42 KB, text/plain)
2024-03-07 10:04 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 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