Index | Thread | Search

From:
Antoine Jacoutot <ajacoutot@bsdfrog.org>
Subject:
Re: libppd fix for gcc15
To:
ports@openbsd.org
Date:
Tue, 18 Nov 2025 08:34:18 +0100

Download raw body.

Thread
  • Claudio Jeker:

    libppd fix for gcc15

    • Antoine Jacoutot:

      libppd fix for gcc15

On Mon, Nov 17, 2025 at 08:32:49PM +0100, Claudio Jeker wrote:
> Not sure why but libppd fails to build for me with:
> ppd/ppd-collection.cxx: In function 'int ppdCollectionDumpCache(const
> char*, cf_logfunc_t, void*)':
> ppd/ppd-collection.cxx:853:13: error: 'intmax_t' was not declared in this
> scope
>   853 |            (intmax_t)ppd->record.mtime, (long)ppd->record.size,
>       |             ^~~~~~~~
> 
> With the diff below the code compiles. Not sure if this is the proper way
> to fix this though.

Dunno either, but it seems fine.
ok for me.


> Index: patches/patch-ppd_ppd-collection_cxx
> ===================================================================
> RCS file: patches/patch-ppd_ppd-collection_cxx
> diff -N patches/patch-ppd_ppd-collection_cxx
> --- /dev/null	1 Jan 1970 00:00:00 -0000
> +++ patches/patch-ppd_ppd-collection_cxx	15 Nov 2025 13:00:22 -0000
> @@ -0,0 +1,13 @@
> +ppd-collection.cxx:853:13: error: 'intmax_t' was not declared in this scope
> +
> +Index: ppd/ppd-collection.cxx
> +--- ppd/ppd-collection.cxx.orig
> ++++ ppd/ppd-collection.cxx
> +@@ -16,6 +16,7 @@
> + // Include necessary headers...
> + //
> + 
> ++#include <stdint.h>
> + #include <cups/dir.h>
> + #include <cups/transcode.h>
> + #include <ppd/ppd.h>
> 

-- 
Antoine