| Summary: | Build fails with poppler >= 22.03 | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Rajeesh KV <rajeeshknambiar> |
| Component: | Printing and PDF export | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED MOVED | ||
| Severity: | normal | CC: | 79045_79045, michael.stahl, xiscofauli |
| Priority: | medium | ||
| Version: | 7.3.4.2 release | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
|
Description
Rajeesh KV
2022-06-21 10:22:23 UTC
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,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
Rajeesh, what will happen if you will try to build the latest master? Michael, I saw your +2 in this Poppler related patch https://gerrit.libreoffice.org/c/core/+/136261 Could you please look at this one too? Hi Rajeesh KV, Since this is an issue related to the building process and not to the software itself, please, send an email to the development mailing list: https://wiki.documentfoundation.org/Development/Mailing_List (In reply to Roman Kuznetsov from comment #2) > Rajeesh, what will happen if you will try to build the latest master? I did not try with master. I was trying to update poppler in Fedora COPR (https://copr.fedorainfracloud.org/coprs/rajeeshknambiar/poppler/builds/); where at least TeXLive and LibreOffice need to be built in tandem (due to libpoppler.so.nnn dependency). Hit the error after 6 hours into building or so. I will try to build the master branch, but I’m afraid it would require a number of hoops to jump (to create a release tarball, generate localization if any, etc.). Good to know that update to Poppler 22.06 is already in the works! (Sorry I checked gerrit first to find if there is work in progress, but I missed it). I am happy to report that the patch here (https://gerrit.libreoffice.org/c/core/+/136261) fixes the build with poppler 22.06 (both GfxFont and PDFDoc issues). You can find the build log at https://download.copr.fedorainfracloud.org/results/rajeeshknambiar/poppler/fedora-36-x86_64/04561828-libreoffice/builder-live.log.gz |