Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949531 - media-gfx/inkscape-1.4-r1 w/ app-text/poppler-25.02.0: poppler-cairo-font-engine.cpp:523:58: error: no matching function for call to ‘FoFiTrueType::getCIDToGIDMap(int*)’
Summary: media-gfx/inkscape-1.4-r1 w/ app-text/poppler-25.02.0: poppler-cairo-font-eng...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andreas K. Hüttel
URL: https://gitlab.com/inkscape/inkscape/...
Whiteboard:
Keywords: UPSTREAM
: 949744 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-02-09 15:11 UTC by Andreas Sturmlechner
Modified: 2025-02-15 00:12 UTC (History)
16 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to fix media-gfx/inkscape-1.4-r1 w/ app-text/poppler-25.02.0 (6974.patch,6.78 KB, patch)
2025-02-13 13:00 UTC, Bernd Feige
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Sturmlechner gentoo-dev 2025-02-09 15:11:20 UTC
> 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’
>   410 |             if (gfxcid->getCIDToGID()) {
>       |                 ~~~~~~~~~~~~~~~~~~~^~
>       |                                    |
>       |                                    const std::vector<int>
> src/extension/internal/pdfinput/poppler-cairo-font-engine.cpp:413:57: error: cannot convert ‘const std::vector<int>’ to ‘const int*’ in initialization
>   413 |                     const int *src = gfxcid->getCIDToGID();
>       |                                      ~~~~~~~~~~~~~~~~~~~^~
>       |                                                         |
>       |                                                         const std::vector<int>
> 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*)’
>   432 |                 int *src = gfxcid->getCodeToGIDMap(ff.get(), &n);
>       |                            ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
> In file included from src/extension/internal/pdfinput/poppler-cairo-font-engine.h:42,
>                  from src/extension/internal/pdfinput/poppler-cairo-font-engine.cpp:44:
> /usr/include/poppler/GfxFont.h:412:22: note: candidate: ‘std::vector<int> GfxCIDFont::getCodeToGIDMap(FoFiTrueType*)’
>   412 |     std::vector<int> getCodeToGIDMap(FoFiTrueType *ff);
>       |                      ^~~~~~~~~~~~~~~
> /usr/include/poppler/GfxFont.h:412:22: note:   candidate expects 1 argument, 2 provided
> src/extension/internal/pdfinput/poppler-cairo-font-engine.cpp:460:52: error: cannot convert ‘std::vector<int>’ to ‘int*’ in initialization
>   460 |                 int *src = gfx8bit->getCodeToGIDMap(ff.get());
>       |                            ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
>       |                                                    |
>       |                                                    std::vector<int>
> src/extension/internal/pdfinput/poppler-cairo-font-engine.cpp:484:52: error: no matching function for call to ‘FoFiType1C::getCIDToGIDMap(int*)’
>   484 |                     int *src = ff1c->getCIDToGIDMap(&n);
>       |                                ~~~~~~~~~~~~~~~~~~~~^~~~
> In file included from src/extension/internal/pdfinput/poppler-cairo-font-engine.cpp:49:
> /usr/include/poppler/fofi/FoFiType1C.h:180:22: note: candidate: ‘std::vector<int> FoFiType1C::getCIDToGIDMap() const’
>   180 |     std::vector<int> getCIDToGIDMap() const;
>       |                      ^~~~~~~~~~~~~~
> /usr/include/poppler/fofi/FoFiType1C.h:180:22: note:   candidate expects 0 arguments, 1 provided
> 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’
>   500 |             if (gfxcid->getCIDToGID()) {
>       |                 ~~~~~~~~~~~~~~~~~~~^~
>       |                                    |
>       |                                    const std::vector<int>
> src/extension/internal/pdfinput/poppler-cairo-font-engine.cpp:503:57: error: cannot convert ‘const std::vector<int>’ to ‘const int*’ in initialization
>   503 |                     const int *src = gfxcid->getCIDToGID();
>       |                                      ~~~~~~~~~~~~~~~~~~~^~
>       |                                                         |
>       |                                                         const std::vector<int>
> src/extension/internal/pdfinput/poppler-cairo-font-engine.cpp:523:58: error: no matching function for call to ‘FoFiTrueType::getCIDToGIDMap(int*)’
>   523 |                             int *src = ff->getCIDToGIDMap(&n);
>       |                                        ~~~~~~~~~~~~~~~~~~^~~~
Comment 1 Larry the Git Cow gentoo-dev 2025-02-09 15:16:38 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff5c60c376b8cb1563a22759912e7a179c811754

commit ff5c60c376b8cb1563a22759912e7a179c811754
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2025-02-09 15:15:52 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2025-02-09 15:16:22 +0000

    app-text/poppler: 25.02.0 version bump, subslot bump
    
    Bug: https://bugs.gentoo.org/949531
    Bug: https://bugs.gentoo.org/949396
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 app-text/poppler/Manifest               |   2 +
 app-text/poppler/poppler-25.02.0.ebuild | 157 ++++++++++++++++++++++++++++++++
 app-text/poppler/poppler-9999.ebuild    |   2 +-
 3 files changed, 160 insertions(+), 1 deletion(-)
Comment 2 Harris Landgarten 2025-02-13 03:22:34 UTC
Same here
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2025-02-13 07:13:21 UTC
No clue why it was assigned to sci-geo, but looks like a mistake.
Comment 4 Bernd Feige 2025-02-13 13:00:25 UTC
Created attachment 918891 [details, diff]
Patch to fix media-gfx/inkscape-1.4-r1 w/ app-text/poppler-25.02.0

I attach the upstream fix from https://gitlab.com/inkscape/inkscape/-/merge_requests/6974/diffs, cleaned and without the poppler-utils.cpp part which is not necessary in inkscape-1.4 because it fixes a block that was only added later. This fixes it for me.
Comment 5 Andreas Sturmlechner gentoo-dev 2025-02-13 18:13:39 UTC
(In reply to Michał Górny from comment #3)
> No clue why it was assigned to sci-geo, but looks like a mistake.
Because it got mixed up with sci-libs/gdal that got fixed instead of a bug around the same time. Thanks for re-assigning.
Comment 6 Greg Kubaryk 2025-02-14 23:00:17 UTC
*** Bug 949744 has been marked as a duplicate of this bug. ***
Comment 7 Larry the Git Cow gentoo-dev 2025-02-15 00:12:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa8079a0b3e15b85f4f4bd0034aadbbf6a167d55

commit fa8079a0b3e15b85f4f4bd0034aadbbf6a167d55
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2025-02-15 00:10:26 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2025-02-15 00:11:16 +0000

    media-gfx/inkscape: fix build with poppler-25.02.0
    
    Closes: https://bugs.gentoo.org/949531
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 .../files/inkscape-1.4-poppler-25.02.0.patch       | 179 +++++++++++++++++++++
 media-gfx/inkscape/inkscape-1.4-r1.ebuild          |   1 +
 2 files changed, 180 insertions(+)