Menu

#533 fail to build gdcm 3.0.10 with GDCM_USE_SYSTEM_POPPLER=ON

3.0.12
closed
None
5
2022-03-31
2022-03-09
Darcy
No

It seems poppler changes PDFDoc::PDFDoc? related log:

/build/gdcm/src/GDCM-3.0.10/Applications/Cxx/gdcmpdf.cxx: In function int main(int, char**):
/build/gdcm/src/GDCM-3.0.10/Applications/Cxx/gdcmpdf.cxx:379:45: error: no matching function for call to PDFDoc::PDFDoc(GooString*&, GooString*&, GooString*&)
  379 |   doc = new PDFDoc(fileName, ownerPW, userPW);
      |                                             ^
In file included from /build/gdcm/src/GDCM-3.0.10/Applications/Cxx/gdcmpdf.cxx:24:
/usr/include/poppler/PDFDoc.h:371:5: note: candidate: PDFDoc::PDFDoc()
  371 |     PDFDoc();
      |     ^~~~~~
/usr/include/poppler/PDFDoc.h:371:5: note:   candidate expects 0 arguments, 3 provided
/usr/include/poppler/PDFDoc.h:139:14: note: candidate: PDFDoc::PDFDoc(BaseStream*, const std::optional<GooString>&, const std::optional<GooString>&, void*, const std::function<void()>&)
  139 |     explicit PDFDoc(BaseStream *strA, const std::optional<GooString> &ownerPassword = {}, const std::optional<GooString> &userPassword = {}, void *guiDataA = nullptr, const std::function<void()> &xrefReconstructedCallback = {});

gcc: 11.2.0
poppler: 22.03.0

1 Attachments

Discussion

  • Mathieu Malaterre

    • assigned_to: Mathieu Malaterre
    • Group: 3.1 --> 3.0.11
     
  • Mathieu Malaterre

     
    • Axel Braun

      Axel Braun - 2022-03-24

      ...probably because 22.03. introduced the change (There is always some 'fun' around poppler, unfortunately)

      Do you have an estimate when a patch may be ready?

       
  • Mathieu Malaterre

    • status: open --> accepted
     
  • Mathieu Malaterre

    • Group: 3.0.11 --> 3.1
     
  • Mathieu Malaterre

    Well I've just release 3.0.11. You'll need to patch your copy with some kind of hack (nullptr function if I read the prototype well in the log).

    I'll work on a patch once 22.03 hits Debian archive.

     
  • Mathieu Malaterre

    • Group: 3.1 --> 3.0.12
     
  • Mathieu Malaterre

    d4557f8f1da6ae5cce2fd73fb82b8c8bb9328a87

     
  • Mathieu Malaterre

    • status: accepted --> closed
     

Log in to post a comment.