Package fails to emerge x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/usr/include/freetype2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/poppler -I./filter/pdftoopvp/oprs -I./filter/pdftoopvp/opvp -O2 -pipe -march=core2 -Wall -pedantic -D_GNU_SOURCE -c -o pdftoopvp-OPRS.o `test -f 'filter/pdftoopvp/oprs/OPRS.cxx' || echo './'`filter/pdftoopvp/oprs/OPRS.cxx In file included from /usr/include/poppler/splash/SplashTypes.h:28:0, from /usr/include/poppler/splash/SplashMath.h:31, from filter/pdftoopvp/oprs/OPRS.cxx:32: /usr/include/poppler/goo/gtypes.h:50:14: warning: ISO C++ 1998 does not support 'long long' [-Wlong-long] typedef long long Goffset; ^ filter/pdftoopvp/oprs/OPRS.cxx: In member function 'SplashError OPRS::drawImage(SplashImageSource, void*, SplashColorMode, GBool, int, int, SplashCoord*)': filter/pdftoopvp/oprs/OPRS.cxx:244:70: error: no matching function for call to 'Splash::drawImage(GBool (*&)(void*, SplashColorPtr, Guchar*), void*&, SplashColorMode&, GBool&, int&, int&, SplashCoord*&, bool)' return splash->drawImage(src,srcData,srcMode,srcAlpha,w,h,mat,gFalse); ^ filter/pdftoopvp/oprs/OPRS.cxx:244:70: note: candidate is: In file included from filter/pdftoopvp/oprs/OPRS.cxx:40:0: /usr/include/poppler/splash/Splash.h:217:15: note: SplashError Splash::drawImage(SplashImageSource, SplashICCTransform, void*, SplashColorMode, GBool, int, int, SplashCoord*, GBool, GBool) SplashError drawImage(SplashImageSource src, SplashICCTransform tf, void *srcD ^ /usr/include/poppler/splash/Splash.h:217:15: note: candidate expects 10 arguments, 8 provided filter/pdftoopvp/oprs/OPRS.cxx:249:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ Makefile:3324: recipe for target 'pdftoopvp-OPRS.o' failed Reproducible: Always Steps to Reproduce: 1. emerge -1 net-print/cups-filters Actual Results: Failure Expected Results: Success spidey ~ # emerge -pqv '=net-print/cups-filters-1.0.71::gentoo' [ebuild R ] net-print/cups-filters-1.0.71 USE="dbus foomatic jpeg perl png tiff zeroconf -static-libs" spidey ~ # emerge --info '=net-print/cups-filters-1.0.71::gentoo' Portage 2.2.20 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.20-r2, 4.0.5-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.0.5-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5410_@_2.33GHz-with-gentoo-2.2 KiB Mem: 16411068 total, 613200 free KiB Swap: 23999996 total, 23846132 free Timestamp of repository gentoo: Mon, 13 Jul 2015 15:45:01 +0000 sh bash 4.3_p33-r2 ld GNU ld (Gentoo 2.24 p1.4) 2.24 distcc 3.1 x86_64-pc-linux-gnu [disabled] ccache version 3.1.9 [disabled] app-shells/bash: 4.3_p33-r2::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo dev-util/ccache: 3.1.9-r4::gentoo dev-util/cmake: 3.2.2::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.17::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo sys-devel/binutils: 2.24-r3::gentoo sys-devel/gcc: 4.8.4::gentoo, 4.9.3::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.1::gentoo (virtual/os-headers) sys-libs/glibc: 2.20-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.namerica.gentoo.org/gentoo-portage priority: -1000 javer location: /var/lib/layman/javer masters: gentoo priority: 0 sunrise location: /var/lib/layman/sunrise masters: gentoo priority: 1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=core2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=core2" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.mirrors.hoobly.com/ rsync://gentoo.gossamerhost.com/gentoo-distfiles/ ftp://mirror.datapipe.net/gentoo http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1,--hash-style=gnu,--enable-new-dtags" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp/" USE="X a52 aac aacplus aacs aalib acl adns aesicm alsa amd64 amr ao apache2 archive ares aspell avahi avresample berkdb binfilter bluray bzip2 cairo calendar caps cdda cgroup cli community corefonts cracklib crypt cscope cups curl cxx daap dane dbi dbus dirac dlna dri dvd ecwj2k egl encode examples exif exit extensions extraengine faac faad ffmpeg fftw firmware flac fontconfig fontforge foomaticdb fortran fping fpm fpx gbm gcrypt gd gdbm geoip geos gif gimp glamor gles gles1 gles2 glib gml gmp gmplayer gnutls gost gphoto2 gps gs gsm gtk hardened hdf hdf5 hdri highlight hwdb iconv icu id3tag imagemagick imap inotify introspection iproute2 ipv6 jack java jbig jce jemalloc jpeg jpeg2k json lcms libass libextractor liblockfile libnotify libsamplerate libsecret libsoxr lmdb lxc lzma lzo mad mbox mhash mjpeg mmap mmx mmxext mng modules mp3 mp4 mpeg mtp multilib mysql ncurses netcdf netlink network nfs nfsv4 nodrm nptl nsplugin ogdi ogg openal openexr opengl openmp openssl openvg opus osmesa pam pango pch pcntl pcre pdf pdfimport pdo perl plotutils plugins png policykit postproc ppds pth pulseaudio python q32 q8 qt3support qt4 rar raw readline realtime rle rpz rrl rtmp scanner schroedinger seccomp server session slp smi smime smp sndfile snmp sockets spamassassin speex spell sphinx sqlite sqlite3 sse sse2 sse3 sse4_1 ssh ssl ssse3 stats subtitles svg syslog t1lib tcpd theora thin-splines threads threadsafe thumbnail tiff tokudb truetype twolame udev unbound unicode upcall urandom usb utils v4l2 vaapi vhosts vim-syntax vlc vorbis vorbix vpx wavpack webkit webkit2 webp wikipedia winbind wmf x264 xattr xface xine xinerama xml xmp xorg xpm xslt xvfb xvid xvmc xz zeroconf zip zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi vesa intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= net-print/cups-filters-1.0.71::gentoo was built with the following: USE="dbus foomatic jpeg perl png tiff zeroconf -static-libs" ABI_X86="64"
Created attachment 406692 [details] build.log
Created attachment 406694 [details] environment
This is due to some API change with poppler-0.34. A workaround is to mask that version and stay with 0.33 for now.
*** Bug 554824 has been marked as a duplicate of this bug. ***
*** Bug 554820 has been marked as a duplicate of this bug. ***
Upstream bug: https://bugs.linuxfoundation.org/show_bug.cgi?id=1301
Created attachment 406762 [details, diff] cups-filters-poppler.patch Based on http://cgit.freedesktop.org/poppler/poppler/commit/?id=3db4cb6f07229e26405bfb512c626a272f6351f5 I think this patch should solve the problem. "Make check" still success.
(In reply to LE GARREC Vincent from comment #7) > Created attachment 406762 [details, diff] [details, diff] > cups-filters-poppler.patch > > Based on > http://cgit.freedesktop.org/poppler/poppler/commit/ > ?id=3db4cb6f07229e26405bfb512c626a272f6351f5 I think this patch should solve > the problem. "Make check" still success. Thank you for the patch, at least 'emerge -v1 cups-filters' works again.
Confirming attached patch lets it build.
works here as well
(In reply to LE GARREC Vincent from comment #7) > Created attachment 406762 [details, diff] [details, diff] > cups-filters-poppler.patch > > Based on > http://cgit.freedesktop.org/poppler/poppler/commit/ > ?id=3db4cb6f07229e26405bfb512c626a272f6351f5 I think this patch should solve > the problem. "Make check" still success. With this patch, cups-filters works only with poppler >= 0.34.0, because it adds the new argument even for older poppler versions.
Created attachment 406782 [details, diff] backward-compatible patch based on patch by LE GARREC Vincent This patch maintains compatibility with older versions of poppler. It is based on the original patch by LE GARREC Vincent.
You have been faster than me. I was testing the same patch than yours. I will send it to https://bugs.linuxfoundation.org/show_bug.cgi?id=1301 for review.
*** Bug 554898 has been marked as a duplicate of this bug. ***
Attached patch works for me. Thx: Dw.
Thanks for the patch. We're aware of it now, so no further confirmation is required. Tough we will wait for an upstream reaction first before introducing it to the tree.
(In reply to Manuel Rüger from comment #16) > Thanks for the patch. We're aware of it now, so no further confirmation is > required. Tough we will wait for an upstream reaction first before > introducing it to the tree. Heh. I just committed essentially the same after reading poppler source. Keeping the bug open, since this is only a workaround (it disables color management in some places). Will ping Till about it.
Created attachment 406806 [details, diff] workaround patch for building against poppler-0.34 workaround patch (as committed in the cvs tree) for building against poppler-0.34; disables color management in some places. ok for the moment but needs a better solution on the long run.
*** Bug 550430 has been marked as a duplicate of this bug. ***
(In reply to Andreas K. Hüttel from comment #18) > Created attachment 406806 [details, diff] [details, diff] > workaround patch for building against poppler-0.34 > > workaround patch (as committed in the cvs tree) for building against > poppler-0.34; disables color management in some places. ok for the moment > but needs a better solution on the long run. The same patch got committed upstream.