Bug 133234 - LibreOffice 7.0.0-alpha1 fails to compile with current poppler
Summary: LibreOffice 7.0.0-alpha1 fails to compile with current poppler
Status: RESOLVED DUPLICATE of bug 131353
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.0.0.0.alpha1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2020-05-21 15:37 UTC by Bernhard Rosenkraenzer
Modified: 2020-05-21 18:03 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Proposed fix (871 bytes, patch)
2020-05-21 15:38 UTC, Bernhard Rosenkraenzer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Rosenkraenzer 2020-05-21 15:37:21 UTC
Description:
Building LibreOffice 7.0.0-alpha1 with current poppler results in

/home/bero/temp/abf/libreoffice/BUILD/libreoffice-7.0.0/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx:567:64: error: member reference type 'const std::string' (aka 'const basic_string<char>') is not a pointer; did you mean to use '.'?
    const char* pURI = static_cast<LinkURI*>(pAction)->getURI()->c_str();
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
                                                               .
1 error generated.
make[1]: *** [/home/bero/temp/abf/libreoffice/BUILD/libreoffice-7.0.0/solenv/gbuild/LinkTarget.mk:303: /home/bero/temp/abf/libreoffice/BUILD/libreoffice-7.0.0/workdir/CxxObject/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.o] Error 1


Steps to Reproduce:
1. Install current poppler
2. Build LibreOffice 7.0.0-alpha1


Actual Results:
error: member reference type 'const std::string' (aka 'const basic_string<char>') is not a pointer; did you mean to use '.'?

Expected Results:
It compiles


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Using poppler 0.88.0
Comment 1 Bernhard Rosenkraenzer 2020-05-21 15:38:09 UTC
Created attachment 161086 [details]
Proposed fix
Comment 2 Ming Hua 2020-05-21 18:03:21 UTC
Hi Bernhard, Thanks for the report and the patch.

The issue of building with new poppler has been reported as bug 131353, so I'm marking this as a DUPLICATE.  Unfortunately that bug seems to be stuck with the original reporter's reluctance to provide a full license statement.

I don't know how to proceed as I'm not a developer, but please have further discussion in that bug.

*** This bug has been marked as a duplicate of bug 131353 ***