https://bugs.documentfoundation.org/show_bug.cgi?id=149653

Rajeesh KV <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Build fails with poppler >= |Build fails with poppler >=
                   |22.04                       |22.03

--- Comment #1 from Rajeesh KV <[email protected]> ---
Build also fails with Poppler 22.03 due to (private) API changes with following
error:

/builddir/build/BUILD/libreoffice-7.3.4.2/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx:
In function 'int main(int, char**)':
/builddir/build/BUILD/libreoffice-7.3.4.2/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx:143:35:
error: no matching function for call to 'PDFDoc::PDFDoc(GooString*&,
GooString*&, GooString*&)'
  143 |                  pUserPasswordStr );
      |                                   ^
In file included from
/builddir/build/BUILD/libreoffice-7.3.4.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx:43,
                 from
/builddir/build/BUILD/libreoffice-7.3.4.2/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx:20:
/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 =
{});
      |              ^~~~~~
/usr/include/poppler/PDFDoc.h:139:33: note:   no known conversion for argument
1 from 'GooString*' to 'BaseStream*'
  139 |     explicit PDFDoc(BaseStream *strA, const std::optional<GooString>
&ownerPassword = {}, const std::optional<GooString> &userPassword = {}, void
*guiDataA = nullptr, const std::function<void()> &xrefReconstructedCallback =
{});
      |                     ~~~~~~~~~~~~^~~~
/usr/include/poppler/PDFDoc.h:132:14: note: candidate:
'PDFDoc::PDFDoc(std::unique_ptr<GooString>&&, const std::optional<GooString>&,
const std::optional<GooString>&, void*, const std::function<void()>&)'
  132 |     explicit PDFDoc(std::unique_ptr<GooString> &&fileNameA, const
std::optional<GooString> &ownerPassword = {}, const std::optional<GooString>
&userPassword = {}, void *guiDataA = nullptr,
      |              ^~~~~~
/usr/include/poppler/PDFDoc.h:132:50: note:   no known conversion for argument
1 from 'GooString*' to 'std::unique_ptr<GooString>&&'
  132 |     explicit PDFDoc(std::unique_ptr<GooString> &&fileNameA, const
std::optional<GooString> &ownerPassword = {}, const std::optional<GooString>
&userPassword = {}, void *guiDataA = nullptr,
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/builddir/build/BUILD/libreoffice-7.3.4.2/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx:147:35:
error: no matching function for call to 'PDFDoc::PDFDoc(GooString*&,
GooString*&, GooString*&)'
  147 |                  pUserPasswordStr );
      |                                   ^
/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 =
{});
      |              ^~~~~~
/usr/include/poppler/PDFDoc.h:139:33: note:   no known conversion for argument
1 from 'GooString*' to 'BaseStream*'
  139 |     explicit PDFDoc(BaseStream *strA, const std::optional<GooString>
&ownerPassword = {}, const std::optional<GooString> &userPassword = {}, void
*guiDataA = nullptr, const std::function<void()> &xrefReconstructedCallback =
{});
      |                     ~~~~~~~~~~~~^~~~
/usr/include/poppler/PDFDoc.h:132:14: note: candidate:
'PDFDoc::PDFDoc(std::unique_ptr<GooString>&&, const std::optional<GooString>&,
const std::optional<GooString>&, void*, const std::function<void()>&)'
  132 |     explicit PDFDoc(std::unique_ptr<GooString> &&fileNameA, const
std::optional<GooString> &ownerPassword = {}, const std::optional<GooString>
&userPassword = {}, void *guiDataA = nullptr,
      |              ^~~~~~
/usr/include/poppler/PDFDoc.h:132:50: note:   no known conversion for argument
1 from 'GooString*' to 'std::unique_ptr<GooString>&&'
  132 |     explicit PDFDoc(std::unique_ptr<GooString> &&fileNameA, const
std::optional<GooString> &ownerPassword = {}, const std::optional<GooString>
&userPassword = {}, void *guiDataA = nullptr,
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to