Bug 414751

Summary: calligra-3.1.0: karbon - fails to build with poppler >= 0.82.0
Product: [Applications] karbon Reporter: Timo Gurr <timo.gurr>
Component: generalAssignee: Jan Hambrecht <jaham>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Timo Gurr 2019-12-02 12:54:04 UTC
/var/tmp/paludis/build/app-office-calligra-3.1.0-r3/work/calligra-3.1.0/filters/karbon/pdf/SvgOutputDev.cpp: In member function 'virtual void SvgOutputDev::drawString(GfxState*, const GooString*)':
/var/tmp/paludis/build/app-office-calligra-3.1.0-r3/work/calligra-3.1.0/filters/karbon/pdf/SvgOutputDev.cpp:424:50: error: invalid conversion from 'Unicode**' {aka 'unsigned int**'} to 'const Unicode**' {aka 'const unsigned int**'} [-fpermissive]
  424 |         int n = font->getNextChar(p, len, &code, &u, &uLen, &dx, &dy, &originX, &originY);
      |                                                  ^~
      |                                                  |
      |                                                  Unicode** {aka unsigned int**}
In file included from /var/tmp/paludis/build/app-office-calligra-3.1.0-r3/work/calligra-3.1.0/filters/karbon/pdf/SvgOutputDev.cpp:27:
/usr/x86_64-pc-linux-gnu/include/poppler/GfxFont.h:273:22: note:   initializing argument 4 of 'virtual int GfxFont::getNextChar(const char*, int, CharCode*, const Unicode**, int*, double*, double*, double*, double*) const'
  273 |      Unicode const **u, int *uLen,
      |      ~~~~~~~~~~~~~~~~^
make[2]: *** [filters/karbon/pdf/CMakeFiles/calligra_filter_pdf2svg.dir/build.make:92: filters/karbon/pdf/CMakeFiles/calligra_filter_pdf2svg.dir/PdfImport.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....

There are some downstream patches like https://gitweb.gentoo.org/repo/gentoo.git/tree/app-office/calligra/files/calligra-3.1.0-poppler-0.82.patch but they are not backwards compatible with older poppler releases.