Bug 414751 - calligra-3.1.0: karbon - fails to build with poppler >= 0.82.0
Summary: calligra-3.1.0: karbon - fails to build with poppler >= 0.82.0
Status: REPORTED
Alias: None
Product: karbon
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jan Hambrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-02 12:54 UTC by Timo Gurr
Modified: 2019-12-02 12:54 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.