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
Priority:  5 - Normal Item Group:  None
Status:  Need Info Privacy:  Public
Assigned to:  thinkerwim Open/Closed:  Open
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Sun 14 Sep 2025 12:01:50 PM UTC, comment #3: 

Hi Wim,
a couple of days ago I created a similar patch for Debian.

comment #1:

> Hi could you tell me if you tried it with version 1.7rc or an other version.


The patch is required and apply on the version used by the Debian package and on current enscript git.

Bye,
Giuseppe

Giuseppe S. <eppesuig2>
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>

 

Attached Files

Attached Files
file #56951:  enscript-c23.patch added by zdohnal (492B - text/x-patch - Proposed patch)

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by eppesuig2 (Posted a comment)
  • -email is unavailable- added by thinkerwim (Posted a comment)
  • -email is unavailable- added by zdohnal (Submitted the item)
  •  

    Votes

    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.

     

    History

    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.16-ed84.
    Corresponding source code