Hi,
let gdcm build with poppler-0.72.0.
Build and runtime tests both against the old (0.61.1) and new
(0.72.2) poppler are welcome.
If it still builds and works with the old poppler, this could be
committed before the poppler update.
Ciao,
Kili
Index: patches/patch-Applications_Cxx_gdcminfo_cxx
===================================================================
RCS file: patches/patch-Applications_Cxx_gdcminfo_cxx
diff -N patches/patch-Applications_Cxx_gdcminfo_cxx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-Applications_Cxx_gdcminfo_cxx 27 Dec 2018 21:23:01 -0000
@@ -0,0 +1,40 @@
+$OpenBSD$
+
+Fix for newer poppler.
+
+Index: Applications/Cxx/gdcminfo.cxx
+--- Applications/Cxx/gdcminfo.cxx.orig
++++ Applications/Cxx/gdcminfo.cxx
+@@ -202,7 +202,7 @@ static std::string getInfoDate(Dict *infoDict, const c
+ #endif
+ {
+ const GooString* gs = obj.getString();
+- s = gs->getCString();
++ s = gs->c_str();
+ if (s[0] == 'D' && s[1] == ':')
+ {
+ s += 2;
+@@ -258,7 +258,7 @@ static std::string getInfoString(Dict *infoDict, const
+ {
+ Object obj;
+ const GooString *s1;
+- GBool isUnicode;
++ bool isUnicode;
+ Unicode u;
+ char buf[8];
+ int i, n;
+@@ -274,12 +274,12 @@ static std::string getInfoString(Dict *infoDict, const
+ if ((s1->getChar(0) & 0xff) == 0xfe &&
+ (s1->getChar(1) & 0xff) == 0xff)
+ {
+- isUnicode = gTrue;
++ isUnicode = true;
+ i = 2;
+ }
+ else
+ {
+- isUnicode = gFalse;
++ isUnicode = false;
+ i = 0;
+ }
+ while (i < obj.getString()->getLength())
Index: patches/patch-Applications_Cxx_gdcmpdf_cxx
===================================================================
RCS file: patches/patch-Applications_Cxx_gdcmpdf_cxx
diff -N patches/patch-Applications_Cxx_gdcmpdf_cxx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-Applications_Cxx_gdcmpdf_cxx 27 Dec 2018 21:23:01 -0000
@@ -0,0 +1,54 @@
+$OpenBSD$
+
+Fix for newer poppler.
+
+Index: Applications/Cxx/gdcmpdf.cxx
+--- Applications/Cxx/gdcmpdf.cxx.orig
++++ Applications/Cxx/gdcmpdf.cxx
+@@ -50,7 +50,7 @@ static std::string getInfoDate(Dict *infoDict, const c
+ #endif
+ {
+ const GooString* gs = obj.getString();
+- s = gs->getCString();
++ s = gs->c_str();
+ if (s[0] == 'D' && s[1] == ':')
+ {
+ s += 2;
+@@ -102,11 +102,11 @@ static std::string getInfoDate(Dict *infoDict, const c
+ return out;
+ }
+
+-static std::string getInfoString(Dict *infoDict, const char *key, UnicodeMap
*uMap, GBool & unicode)
++static std::string getInfoString(Dict *infoDict, const char *key, UnicodeMap
*uMap, bool & unicode)
+ {
+ Object obj;
+ const GooString *s1;
+- GBool isUnicode = gFalse;
++ bool isUnicode = false;
+ Unicode u;
+ char buf[8];
+ int i, n;
+@@ -122,12 +122,12 @@ static std::string getInfoString(Dict *infoDict, const
+ if ((s1->getChar(0) & 0xff) == 0xfe &&
+ (s1->getChar(1) & 0xff) == 0xff)
+ {
+- isUnicode = gTrue;
++ isUnicode = true;
+ i = 2;
+ }
+ else
+ {
+- isUnicode = gFalse;
++ isUnicode = false;
+ i = 0;
+ }
+ while (i < obj.getString()->getLength())
+@@ -398,7 +398,7 @@ http://msdn.microsoft.com/en-us/library/078sfkak(VS.80
+ std::string creationdate;
+ std::string moddate;
+
+- GBool isUnicode = gFalse;
++ bool isUnicode = false;
+ if (doc->isOk())
+ {
+ #ifdef LIBPOPPLER_NEW_OBJECT_API