Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926288 - sys-fs/btrfs-progs-6.7.1 - common/device-utils.c:350:9: error: call to undeclared function 'basename'
Summary: sys-fs/btrfs-progs-6.7.1 - common/device-utils.c:350:9: error: call to undecl...
Status: RESOLVED FIXED
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-06 23:43 UTC by ernsteiswuerfel
Modified: 2024-04-25 12:21 UTC (History)
2 users (show)

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


Attachments
build.log (btrfs-progs-6.7.1:20240306-233554.log,104.19 KB, text/x-log)
2024-03-06 23:43 UTC, ernsteiswuerfel
Details
emerge --info (file_926288.txt,7.42 KB, text/plain)
2024-03-06 23:44 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-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(+)