Index | Thread | Search

From:
Claudio Jeker <cjeker@diehard.n-r-g.com>
Subject:
libppd fix for gcc15
To:
Antoine Jacoutot <ajacoutot@openbsd.org>
Cc:
ports@openbsd.org
Date:
Mon, 17 Nov 2025 20:32:49 +0100

Download raw body.

Thread
  • Claudio Jeker:

    libppd fix for gcc15

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.

-- 
:wq Claudio

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>