bugGNU a2ps - Bugs: bug #66678, a2ps fails to build with GCC 15

 
 

bug #66678: a2ps fails to build with GCC 15

Submitter:  zdohnal <zdohnal>
Submitted:  Fri 17 Jan 2025 08:53:28 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
   

Fri 17 Jan 2025 08:53:28 AM UTC, original submission:  

Hi,

Fedora 42 introduces GCC 15, which includes more strict rules regarding data types and other changes, which causes a2ps build to fail.

It fails on two yacc files, parseppd.y and parsessh.y, which declare `yyprint()` function without parameters, but later the function definition uses 3 arguments.

The patch which works adds the arguments into the function declaration, however YYSTYPE was not defined at the scope, so the corresponding header files were added to have YYSTYPE definition.

The patch from Fedora attached, would you mind adding it into the project?

If there are issues with the patch, do let me know - I can adjust it according feedback.

Thank you in advance!


Zdenek Dohnal
a2ps Fedora maintainer

zdohnal <zdohnal>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #56777:  a2ps-gcc15.patch added by zdohnal (1KiB - text/x-patch - Proposed patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by zdohnal (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
    2025-01-17 zdohnal Attached File- Added a2ps-gcc15.patch, #56777

    Back to the top

    Powered by Savane 3.14-7003.
    Corresponding source code