5.0.0 fails build with old poppler 0.12

Tomáš Chvátal tomas.chvatal at gmail.com
Sat Jun 13 06:36:51 PDT 2015


Hello,

I am building 5.0 betas on our openSUSE and while building it also for our
old SLE11 It suddenly fails compared to 4.4 series.

The version we have there is 0.12 which is supposed to work based on
configure.ac but fails as follows:

 [  442s] In file included from
/usr/src/packages/BUILD/libreoffice-5.0.0.0.beta3/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx:20:0:

[  442s]
/usr/src/packages/BUILD/libreoffice-5.0.0.0.beta3/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx:
In member function 'bool pdfi::FontAttributes::operator==(const
pdfi::FontAttributes&) const':
[  442s]
/usr/src/packages/BUILD/libreoffice-5.0.0.0.beta3/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx:126:58:
error: passing 'const GooString' as 'this' argument of 'int
GooString::cmp(GooString*)' discards qualifiers [-fpermissive]
[  442s] In file included from
/usr/src/packages/BUILD/libreoffice-5.0.0.0.beta3/sdext/source/pdfimport/xpdfwrapper/pnghelper.hxx:24:0,

[  442s]                  from
/usr/src/packages/BUILD/libreoffice-5.0.0.0.beta3/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx:20:

[  442s]
/usr/src/packages/BUILD/libreoffice-5.0.0.0.beta3/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx:
In member function 'bool pdfi::FontAttributes::operator==(const
pdfi::FontAttributes&) const':
[  442s]
/usr/src/packages/BUILD/libreoffice-5.0.0.0.beta3/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx:126:58:
error: passing 'const GooString' as 'this' argument of 'int
GooString::cmp(GooString*)' discards qualifiers [-fpermissive]
[  442s]
/usr/src/packages/BUILD/libreoffice-5.0.0.0.beta3/solenv/gbuild/LinkTarget.mk:189:
recipe for target
'/usr/src/packages/BUILD/libreoffice-5.0.0.0.beta3/workdir/CxxObject/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.o'
failed
[  442s] make[1]: ***
[/usr/src/packages/BUILD/libreoffice-5.0.0.0.beta3/workdir/CxxObject/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.o]
Error 1
[  442s] make[1]: *** Waiting for unfinished jobs....
[  442s] In file included from
/usr/src/packages/BUILD/libreoffice-5.0.0.0.beta3/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx:20:0:

[  442s]
/usr/src/packages/BUILD/libreoffice-5.0.0.0.beta3/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx:
In member function 'bool pdfi::FontAttributes::operator==(const
pdfi::FontAttributes&) const':
[  442s]
/usr/src/packages/BUILD/libreoffice-5.0.0.0.beta3/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx:126:58:
error: passing 'const GooString' as 'this' argument of 'int
GooString::cmp(GooString*)' discards qualifiers [-fpermissive]
[  442s]
/usr/src/packages/BUILD/libreoffice-5.0.0.0.beta3/solenv/gbuild/LinkTarget.mk:189:
recipe for target
'/usr/src/packages/BUILD/libreoffice-5.0.0.0.beta3/workdir/CxxObject/sdext/source/pdfimport/xpdfwrapper/pnghelper.o'
failed
[  442s] make[1]: ***
[/usr/src/packages/BUILD/libreoffice-5.0.0.0.beta3/workdir/CxxObject/sdext/source/pdfimport/xpdfwrapper/pnghelper.o]
Error 1
[  442s]
/usr/src/packages/BUILD/libreoffice-5.0.0.0.beta3/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx:
In constructor 'pdfi::PDFOutDev::PDFOutDev(PDFDoc*)':
[  442s]
/usr/src/packages/BUILD/libreoffice-5.0.0.0.beta3/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx:535:56:
warning: deprecated conversion from string constant to 'char*'
[-Wwrite-strings]
[  442s]
/usr/src/packages/BUILD/libreoffice-5.0.0.0.beta3/solenv/gbuild/LinkTarget.mk:189:
recipe for target
'/usr/src/packages/BUILD/libreoffice-5.0.0.0.beta3/workdir/CxxObject/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.o'
failed
[  442s] make[1]: ***
[/usr/src/packages/BUILD/libreoffice-5.0.0.0.beta3/workdir/CxxObject/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.o]
Error 1
[  444s] Makefile:247: recipe for target 'build' failed
[  444s] make: *** [build] Error 2

I will try to dig into it cca at the end of the next week, but maybe some
of you might fix it faster, thus "reporting" it here.

Cheers

Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20150613/6b56ca86/attachment.html>


More information about the LibreOffice mailing list