Opened 5 weeks ago

Closed 5 weeks ago

#21050 closed defect (fixed)

Fix building inkscape with poppler-25.02.0

Reported by: Douglas R. Reno Owned by: Douglas R. Reno
Priority: normal Milestone: 12.3
Component: BOOK Version: git
Severity: normal Keywords:
Cc:

Description

When doing my standard testing for a poppler update, I encountered an issue with building Inkscape due to poppler-25.02.0.

There is a bug upstream for it: https://gitlab.com/inkscape/inkscape/-/issues/5507

Change History (6)

comment:1 by Douglas R. Reno, 5 weeks ago

Owner: changed from blfs-book to Douglas R. Reno
Status: newassigned

comment:2 by Douglas R. Reno, 5 weeks ago

The related lines from my build log are:

/sources/inkscape-1.4/inkscape-1.4_2024-10-09_e7c3feb100/src/extension/internal/pdfinput/poppler-cairo-font-engine.cpp:410:36: error: could not convert ‘((std::shared_ptr_access<GfxCIDFont, gnu_cxx::_S_atomic, false, false>*)(& gfxcid))->std::shared_ptr_access<GfxCIDFont, gnu_cxx::_S_atomic, false, false>::operator->()->GfxCIDFont::getCIDToGID()’ from ‘const std::vector<int>’ to ‘bool’

/sources/inkscape-1.4/inkscape-1.4_2024-10-09_e7c3feb100/src/extension/internal/pdfinput/poppler-cairo-font-engine.cpp:413:57: error: cannot convert ‘const std::vector<int>’ to ‘const int*’ in initialization

/sources/inkscape-1.4/inkscape-1.4_2024-10-09_e7c3feb100/src/extension/internal/pdfinput/poppler-cairo-font-engine.cpp:432:51: error: no matching function for call to ‘GfxCIDFont::getCodeToGIDMap(std::unique_ptr<FoFiTrueType>::pointer, int*)’

/sources/inkscape-1.4/inkscape-1.4_2024-10-09_e7c3feb100/src/extension/internal/pdfinput/poppler-cairo-font-engine.cpp:460:52: error: cannot convert ‘std::vector<int>’ to ‘int*’ in initialization

/sources/inkscape-1.4/inkscape-1.4_2024-10-09_e7c3feb100/src/extension/internal/pdfinput/poppler-cairo-font-engine.cpp:484:52: error: no matching function for call to ‘FoFiType1C::getCIDToGIDMap(int*)’

/sources/inkscape-1.4/inkscape-1.4_2024-10-09_e7c3feb100/src/extension/internal/pdfinput/poppler-cairo-font-engine.cpp:500:36: error: could not convert ‘((std::shared_ptr_access<GfxCIDFont, gnu_cxx::_S_atomic, false, false>*)(& gfxcid))->std::shared_ptr_access<GfxCIDFont, gnu_cxx::_S_atomic, false, false>::operator->()->GfxCIDFont::getCIDToGID()’ from ‘const std::vector<int>’ to ‘bool’

/sources/inkscape-1.4/inkscape-1.4_2024-10-09_e7c3feb100/src/extension/internal/pdfinput/poppler-cairo-font-engine.cpp:503:57: error: cannot convert ‘const std::vector<int>’ to ‘const int*’ in initialization

/sources/inkscape-1.4/inkscape-1.4_2024-10-09_e7c3feb100/src/extension/internal/pdfinput/poppler-cairo-font-engine.cpp:523:58: error: no matching function for call to ‘FoFiTrueType::getCIDToGIDMap(int*)’

comment:3 by Xi Ruoyao, 5 weeks ago

Note that the linked MR is incorrect. I've left a comment there.

comment:4 by Bruce Dubbs, 5 weeks ago

The attached patch from upstream is said to work.

comment:5 by Douglas R. Reno, 5 weeks ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.