bugattr - Bugs: bug #64972, use posix version of basename...

 
 

bug #64972: use posix version of basename signature

Submitter:  Khem Raj <khem>
Submitted:  Mon 04 Dec 2023 03:40:19 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 13 Jan 2024 05:06:16 AM UTC, comment #1: 

please send patches to the mailing list

Mike Frysinger <vapier>
Group Member
Mon 04 Dec 2023 03:40:19 AM UTC, original submission:  

With latest musl the build is failing when using clang-17+ because it treats implicit function declarations as errors. Musl has removed the declaration in string.h [1]

It fails with following errors

../attr-2.5.1/tools/attr.c:72:13: error: call to undeclared function 'basename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   72 |         progname = basename(argv[0]);
      |                    ^
../attr-2.5.1/tools/attr.c:72:11: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
   72 |         progname = basename(argv[0]);
      |                  ^ ~~~~~~~~~~~~~~~~~
2 errors generated.
make[1]: * [Makefile:980: tools/attr.o] Error 1

[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7

Khem Raj <khem>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vapier (Posted a comment)
  • -email is unavailable- added by khem (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-12-04 khem Attached File- Added 0001-attr.c-Include-libgen.h-for-posix-version-of-basenam.patch, #55397

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code