Hi,
Quick fix for clang6 error:
libqpdf/QUtil.cc:284:16: error: reinterpret_cast from 'nullptr_t' to 'char *'
is not allowed
setvbuf(f, reinterpret_cast<char *>(NULL), _IOLBF, 0);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Here's patch to fix current version. Noticed that latest version of this port is
8.0.2 which doesn't need any patching to work with clang6.
timo
Index: Makefile
===================================================================
RCS file: /cvs/ports/print/qpdf/Makefile,v
retrieving revision 1.21
diff -u -p -r1.21 Makefile
--- Makefile 23 Aug 2017 07:40:49 -0000 1.21
+++ Makefile 9 Apr 2018 04:58:36 -0000
@@ -4,6 +4,7 @@ COMMENT= PDF transformation and inspecti
DISTNAME= qpdf-7.0.b1
PKGNAME= qpdf-7.0beta1
+REVISION= 0
SHARED_LIBS += qpdf 4.0 # 18.0
Index: patches/patch-libqpdf_QUtil_cc
===================================================================
RCS file: patches/patch-libqpdf_QUtil_cc
diff -N patches/patch-libqpdf_QUtil_cc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-libqpdf_QUtil_cc 9 Apr 2018 04:58:36 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+
+Index: libqpdf/QUtil.cc
+--- libqpdf/QUtil.cc.orig
++++ libqpdf/QUtil.cc
+@@ -281,7 +281,7 @@ void
+ QUtil::setLineBuf(FILE* f)
+ {
+ #ifndef _WIN32
+- setvbuf(f, reinterpret_cast<char *>(NULL), _IOLBF, 0);
++ setvbuf(f, reinterpret_cast<char *>(0), _IOLBF, 0);
+ #endif
+ }
+