Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828578 - app-text/poppler-21.12.0 - /.../ImageEmbeddingUtils.cc: error: jmp_buf does not name a type
Summary: app-text/poppler-21.12.0 - /.../ImageEmbeddingUtils.cc: error: jmp_buf does n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2021-12-08 17:56 UTC by Toralf Förster
Modified: 2021-12-12 18:48 UTC (History)
9 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.59 KB, text/plain)
2021-12-08 17:57 UTC, Toralf Förster
Details
app-text:poppler-21.12.0:20211208-170702.log (app-text:poppler-21.12.0:20211208-170702.log,73.36 KB, text/plain)
2021-12-08 17:57 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,492.06 KB, text/plain)
2021-12-08 17:57 UTC, Toralf Förster
Details
environment (environment,90.66 KB, text/plain)
2021-12-08 17:57 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,48.16 KB, application/x-bzip)
2021-12-08 17:57 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,6.98 KB, application/x-bzip)
2021-12-08 17:57 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,27.27 KB, application/x-bzip)
2021-12-08 17:57 UTC, Toralf Förster
Details
poppler_include-setjmp.patch (poppler_include-setjmp.patch,376 bytes, patch)
2021-12-10 14:42 UTC, Marco Genasci
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-12-08 17:56:59 UTC
too long lines were shrinked:

      |                        ~~~~~~~~~~~~~~~~^~~~~
[44/190] /usr/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ALL_NO_LIB -Dpoppler_EXPORTS -I/var/tmp/portage/app-text/poppler-21.12.0/work/poppler-21.12.0 -I/var/tmp/portage/app-text/poppler-21.12.0/work/poppler-21.12.0/fofi -I/var/tmp/portage/app-text/poppler-21.12.0/work/poppler-21.12.0/goo -I/var/tmp/portag
FAILED: CMakeFiles/poppler.dir/poppler/ImageEmbeddingUtils.cc.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ALL_NO_LIB -Dpoppler_EXPORTS -I/var/tmp/portage/app-text/poppler-21.12.0/work/poppler-21.12.0 -I/var/tmp/portage/app-text/poppler-21.12.0/work/poppler-21.12.0/fofi -I/var/tmp/portage/app-text/poppler-21.12.0/work/poppler-21.12.0/goo -I/var/tmp/portage/app-tex
/var/tmp/portage/app-text/poppler-21.12.0/work/poppler-21.12.0/poppler/ImageEmbeddingUtils.cc:298:5: error: ‘jmp_buf’ does not name a type
  298 |     jmp_buf setjmpBuffer;
      |     ^~~~~~~
/var/tmp/portage/app-text/poppler-21.12.0/work/poppler-21.12.0/poppler/ImageEmbeddingUtils.cc: In function ‘void ImageEmbeddingUtils::jpegExitErrorHandler(j_common_ptr)’:
/var/tmp/portage/app-text/poppler-21.12.0/work/poppler-21.12.0/poppler/ImageEmbeddingUtils.cc:307:27: error: ‘struct ImageEmbeddingUtils::JpegErrorManager’ has no member named ‘setjmpBuffer’

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_systemd-j4-20211130-070103

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.1 *
clang version 13.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.57.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.21.0 [icedtea-8]
2)	IcedTea JDK 3.16.0 [icedtea-bin-8]
3)	OpenJDK 8.312_p07 [openjdk-8]
*)	AdoptOpenJDK 8.312_p07 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   icedtea-bin-8 
  [3]   openjdk-8 
  [4]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit 3426f05e759eb2a52029a5fe1a00b29403bedef7
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Dec 8 16:51:45 2021 +0000

    2021-12-08 16:51:44 UTC

emerge -qpvO app-text/poppler
[ebuild     U ] app-text/poppler-21.12.0 [21.11.0] USE="cxx introspection jpeg jpeg2k lcms utils -boost -cairo -cjk -curl -debug -doc -nss -png -qt5 -tiff"
Comment 1 Toralf Förster gentoo-dev 2021-12-08 17:57:00 UTC
Created attachment 757746 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-08 17:57:02 UTC
Created attachment 757747 [details]
app-text:poppler-21.12.0:20211208-170702.log
Comment 3 Toralf Förster gentoo-dev 2021-12-08 17:57:03 UTC
Created attachment 757748 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-12-08 17:57:05 UTC
Created attachment 757749 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-12-08 17:57:06 UTC
Created attachment 757750 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-12-08 17:57:07 UTC
Created attachment 757751 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-12-08 17:57:08 UTC
Created attachment 757752 [details]
temp.tar.bz2
Comment 8 Marco Genasci 2021-12-10 14:42:30 UTC
Created attachment 758128 [details, diff]
poppler_include-setjmp.patch

The problem seems the -png use flag, with the patch the compilation is successful.
Comment 9 Andreas Sturmlechner gentoo-dev 2021-12-10 14:47:25 UTC
(In reply to Marco Genasci from comment #8)
> Created attachment 758128 [details, diff] [details, diff]
> poppler_include-setjmp.patch
> 
> The problem seems the -png use flag, with the patch the compilation is
> successful.
Thanks for your patch, are you prepared to take it to upstream? https://gitlab.freedesktop.org/poppler/poppler
Comment 10 Marco Genasci 2021-12-12 10:05:34 UTC
I opened a PR upstream https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1016
Comment 11 Larry the Git Cow gentoo-dev 2021-12-12 18:48:48 UTC
The bug has been closed via the following commit(s):

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

commit 804c291fd052088c649652a91fca2c0e6db6bb7c
Author:     Marco Genasci <fedeliallalinea@gmail.com>
AuthorDate: 2021-12-12 17:43:07 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-12 18:48:36 +0000

    app-text/poppler: add upstream patch for -png use flag compilation
    
    Closes: https://bugs.gentoo.org/828578
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Marco Genasci <fedeliallalinea@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/23270
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/poppler-21.12.0-include-csetjmp.patch    | 27 ++++++++++++++++++++++
 app-text/poppler/poppler-21.12.0.ebuild            |  1 +
 2 files changed, 28 insertions(+)