bugGNU Enscript - Bugs: bug #66845, enscript does not build with C23...

 
 

bug #66845: enscript does not build with C23 standard

Submitter:  zdohnal <zdohnal>
Submitted:  Tue 25 Feb 2025 03:03:45 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Need Info
Privacy:  Public Assigned to:  thinkerwim
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 14 Apr 2025 03:11:25 PM UTC, comment #2: 

Hi Wim,

we have the last stable enscript version - 1.6.6, but when I see the code available at git://git.savannah.gnu.org/enscript.git , the code in question is the same as in 1.6.6.

You can get the error in the project by:

$ CFLAGS="${CFLAGS} -std=c23" ./configure && CFLAGS="${CFLAGS} -std=c23" make

if the compiler supports the C standard c23.

zdohnal <zdohnal>
Sat 05 Apr 2025 08:21:26 PM UTC, comment #1: 

Hi could you tell me if you tried it with version 1.7rc or an other version.
Kind regards,
Wim Stockman

Wim Stockman <thinkerwim>
Group administrator
Tue 25 Feb 2025 03:03:45 PM UTC, original submission:  

Hi,

GCC 15 defaults to standard C23, and enscript currently is not able to be built with it.

The issue is in one function in compat/regex.c, where function declaration does not include any arguments, but the function later uses arguments. The fix is to declare arguments and their types as well.

Would you mind including the attached patch into the project?

Thank you in advance!

Zdenek Dohnal
enscript Fedora/Centos Stream/RHEL 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 #56951:  enscript-c23.patch added by zdohnal (492B - 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 thinkerwim (Posted a comment)
  • -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.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-04-05 thinkerwim StatusNone Need Info
        Assigned toNone thinkerwim
    2025-02-25 zdohnal Attached File- Added enscript-c23.patch, #56951

    Back to the top

    Powered by Savane 3.15-f85b.
    Corresponding source code