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

Bug 926288

Summary: sys-fs/btrfs-progs-6.7.1 - common/device-utils.c:350:9: 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, holger
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/kdave/btrfs-progs/issues/778
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 926147    
Attachments: build.log
emerge --info

Description ernsteiswuerfel archtester 2024-03-06 23:43:45 UTC
Created attachment 886833 [details]
build.log

[...]
clang -Os -march=x86-64-v2 -pipe -std=gnu11 -include include/config.h -DBTRFS_FLAT_INCLUDES -D_XOPEN_SOURCE=700 -fno-strict-aliasing -fPIC -Wall -Wunused-but-set-parameter -I. -I./include -DCRYPTOPROVIDER_BUILTIN=1 -DCOMPRESSION_LZO=1 -DCOMPRESSION_ZSTD=1  -Wno-address-of-packed-member  -Wimplicit-fallthrough  -Wmissing-prototypes -Wshadow    -c common/device-utils.c -o common/device-utils.o  \
	
common/device-utils.c:350:9: error: call to undeclared function 'basename';
      ISO C99 and later do not support implicit function declarations
      [-Wimplicit-function-declaration]
  350 |         name = basename(path);
      |                ^
common/device-utils.c:350:7: error: incompatible integer to pointer
      conversion assigning to 'char *' from 'int' [-Wint-conversion]
  350 |         name = basename(path);
      |              ^ ~~~~~~~~~~~~~~
2 errors generated.
make: *** [Makefile:479: common/device-utils.o] Error 1
Comment 1 ernsteiswuerfel archtester 2024-03-06 23:44:17 UTC
Created attachment 886834 [details]
emerge --info
Comment 2 Holger Hoffstätte 2024-04-15 09:20:44 UTC
Reported upstream at https://github.com/kdave/btrfs-progs/issues/778
Comment 3 Larry the Git Cow gentoo-dev 2024-04-25 12:21:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88baf5b6fe33648858e7a2a8c00aae1c4a990f12

commit 88baf5b6fe33648858e7a2a8c00aae1c4a990f12
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2024-04-25 12:20:19 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2024-04-25 12:21:11 +0000

    sys-fs/btrfs-progs: backport musl-1.2.5 basename patch
    
    Closes: https://bugs.gentoo.org/926288
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 sys-fs/btrfs-progs/btrfs-progs-6.8.ebuild          |   3 +
 .../files/btrfs-progs-6.8-musl-1.2.5.patch         | 209 +++++++++++++++++++++
 2 files changed, 212 insertions(+)