bugShell Archive Utilities - Bugs: bug #65790, sharutils fails to compile with...

 
 

bug #65790: sharutils fails to compile with GCC 10 or higher due to default -fno-common

Submitter:  A. Wilcox <awilfox>
Submitted:  Sat 25 May 2024 05:42:32 PM 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 25 May 2024 05:42:32 PM UTC, original submission:  

GCC 10 (and newer) default to -fno-common, which breaks the current way shar-std.def declares program_name:

/usr/lib/gcc/powerpc64-foxkit-linux-musl/13.3.0/../../../../powerpc64-foxkit-linux-musl/bin/ld: uuencode-opts.o:/home/awilcox/Code/awilfox/gcc-next/system/sharutils/src/sharutils-4.15.2/src/uuencode-opts.h:169: multiple definition of `program_name'; mv -f .deps/unshar-opts.Tpo .deps/unshar-opts.Po
uuencode.o:/home/awilcox/Code/awilfox/gcc-next/system/sharutils/src/sharutils-4.15.2/src/uuencode-opts.h:169: first defined here
collect2: error: ld returned 1 exit status
make[2]: * [Makefile:1371: uuencode] Error 1

With the attached patch, sharutils builds with GCC 13.3.0 and passes its test suite on my machine.

A. Wilcox <awilfox>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #56103:  0001-Declare-program_name-extern-in-header.patch added by awilfox (887B - application/octet-stream - Patch to fix declaration of program_name)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by awilfox (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
    2024-05-25 awilfox Attached File- Added 0001-Declare-program_name-extern-in-header.patch, #56103

    Back to the top

    Powered by Savane 3.14-573e.
    Corresponding source code