xpdf cannot be emerged with poppler-0.16 : In file included from parseargs.h:16:0, from parseargs.c:14: /usr/include/poppler/goo/gtypes.h:31:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GBool' In file included from parseargs.c:14:0: parseargs.h:54:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'parseArgs' parseargs.h:64:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'isInt' parseargs.h:65:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'isFP' parseargs.c:17:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'grabArg' parseargs.c:19:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'parseArgs' parseargs.c:97:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'grabArg' parseargs.c:150:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'isInt' parseargs.c:160:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'isFP' Reproducible: Always emerge --info app-text/xpdf Portage 2.2.0_alpha10 (default/linux/amd64/10.0/desktop, gcc-4.5.2, glibc-2.12.1-r3, 2.6.36-gentoo-r5 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.36-gentoo-r5-x86_64-AMD_Phenom-tm-_II_X4_940_Processor-with-gentoo-2.0.1 Timestamp of tree: Tue, 28 Dec 2010 08:15:01 +0000 ccache version 3.1.3 [disabled] app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.6.6-r1, 2.7.1, 3.1.3 dev-util/ccache: 3.1.3 dev-util/cmake: 2.8.3-r1 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.6.8 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.6.3-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.4.5, 4.5.2, 4.6.0_pre9999::local sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers) Repositories: gentoo sunrise local ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-mtune=native -O2 -msse3 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-mtune=native -O2 -msse3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs buildpkg distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo " LANG="en_US.iso88591" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en de" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage" SYNC="rsync://rsync.informatik.RWTH-Aachen.de/gentoo-portage" USE="3dnow 3dnowext 3dnowprefetch X a52 aac acl acpi alsa amd64 atm avahi berkdb branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg fftw firefox flac fortran fuse gdbm gdu gfortran gif gimp gnome gpm gtk gtk2 iconv ipv6 jpeg kde lapack lcms libnotify mad mikmod mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt qt3support qt4 readline sdl session smp spell sqlite sqlite3 sse sse2 sse3 sse4a ssl startup-notification svg sysfs tcl tcpd threads tiff tk truetype udev unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="ati radeon" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= app-text/xpdf-3.02-r4 was built with the following: USE="(multilib) -debug -nodrm" CFLAGS="-mtune=native -O2 -msse3 -pipe -DSYSTEM_XPDFRC="\"/etc/xpdfrc\""" CXXFLAGS="-mtune=native -O2 -msse3 -pipe -DSYSTEM_XPDFRC="\"/etc/xpdfrc\"" -Wno-write-strings"
For me, 'emerge xpdf' fails now with: ... >>> Compiling source in /var/tmp/portage/app-text/xpdf-3.02-r4/work/xpdf-3.02-poppler ... make -j1 g++ -march=nocona -O2 -pipe -fomit-frame-pointer -DSYSTEM_XPDFRC="\"/etc/xpdfrc\"" -Wno-write-strings -I/usr/include/poppler -I/usr/include/poppler/goo -I/usr/include/poppler/splash -DHAVE_DIRENT_H -c -o CoreOutputDev.o CoreOutputDev.cc g++ -march=nocona -O2 -pipe -fomit-frame-pointer -DSYSTEM_XPDFRC="\"/etc/xpdfrc\"" -Wno-write-strings -I/usr/include/poppler -I/usr/include/poppler/goo -I/usr/include/poppler/splash -DHAVE_DIRENT_H -c -o GlobalParams.o GlobalParams.cc g++ -march=nocona -O2 -pipe -fomit-frame-pointer -DSYSTEM_XPDFRC="\"/etc/xpdfrc\"" -Wno-write-strings -I/usr/include/poppler -I/usr/include/poppler/goo -I/usr/include/poppler/splash -DHAVE_DIRENT_H -c -o ImageOutputDev.o ImageOutputDev.cc g++ -march=nocona -O2 -pipe -fomit-frame-pointer -DSYSTEM_XPDFRC="\"/etc/xpdfrc\"" -Wno-write-strings -I/usr/include/poppler -I/usr/include/poppler/goo -I/usr/include/poppler/splash -DHAVE_DIRENT_H -c -o PDFCore.o PDFCore.cc g++ -march=nocona -O2 -pipe -fomit-frame-pointer -DSYSTEM_XPDFRC="\"/etc/xpdfrc\"" -Wno-write-strings -I/usr/include/poppler -I/usr/include/poppler/goo -I/usr/include/poppler/splash -DHAVE_DIRENT_H -c -o XPDFApp.o XPDFApp.cc g++ -march=nocona -O2 -pipe -fomit-frame-pointer -DSYSTEM_XPDFRC="\"/etc/xpdfrc\"" -Wno-write-strings -I/usr/include/poppler -I/usr/include/poppler/goo -I/usr/include/poppler/splash -DHAVE_DIRENT_H -c -o XPDFCore.o XPDFCore.cc XPDFCore.cc: In member function ‘void XPDFCore::runCommand(GooString*, GooString*)’: XPDFCore.cc:689:28: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result XPDFCore.cc: In member function ‘void XPDFCore::doAction(LinkAction*)’: XPDFCore.cc:565:32: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result g++ -march=nocona -O2 -pipe -fomit-frame-pointer -DSYSTEM_XPDFRC="\"/etc/xpdfrc\"" -Wno-write-strings -I/usr/include/poppler -I/usr/include/poppler/goo -I/usr/include/poppler/splash -DHAVE_DIRENT_H -c -o XPDFTree.o XPDFTree.cc g++ -march=nocona -O2 -pipe -fomit-frame-pointer -DSYSTEM_XPDFRC="\"/etc/xpdfrc\"" -Wno-write-strings -I/usr/include/poppler -I/usr/include/poppler/goo -I/usr/include/poppler/splash -DHAVE_DIRENT_H -c -o XPDFViewer.o XPDFViewer.cc XPDFViewer.cc: In static member function ‘static void XPDFViewer::printPrintCbk(_WidgetRec*, void*, void*)’: XPDFViewer.cc:3453:35: error: no matching function for call to ‘PSOutputDev::PSOutputDev(char*, XRef*, Catalog*, NULL, int&, int&, PSOutMode)’ /usr/include/poppler/PSOutputDev.h:91:3: note: candidates are: PSOutputDev::PSOutputDev(void (*)(void*, char*, int), void*, char*, PDFDoc*, XRef*, Catalog*, int, int, PSOutMode, int, int, GBool, int, int, int, int, GBool, GBool) /usr/include/poppler/PSOutputDev.h:80:3: note: PSOutputDev::PSOutputDev(const char*, PDFDoc*, XRef*, Catalog*, char*, int, int, PSOutMode, int, int, GBool, int, int, int, int, GBool, GBool) /usr/include/poppler/PSOutputDev.h:76:37: note: PSOutputDev::PSOutputDev(const PSOutputDev&) XPDFViewer.cc: In member function ‘void XPDFViewer::cmdRun(GooString**, int, XEvent*)’: XPDFViewer.cc:1157:28: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result make: *** [XPDFViewer.o] Error 1
i can confirm this too
Same here: # emerge --info app-text/xpdf Portage 2.1.9.26 (default/linux/amd64/10.0/desktop, gcc-4.4.5, glibc-2.12.1-r3, 2.6.36.2 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.36.2-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.0.1 Timestamp of tree: Tue, 28 Dec 2010 16:15:02 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.4.6, 2.5.4-r4, 2.6.6-r1, 2.7.1, 3.1.3 dev-util/cmake: 2.8.3-r1 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.6.8 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.3.5, 4.4.5, 4.5.2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA dlj-1.1 PUEL googleearth GPL-2 AdobeFlash-10 AdobeFlash-10.1" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ http://mirrors.ipv6.linuxant.fr/distfiles.gentoo.org/ ftp://mirror.ovh.net/gentoo-distfiles/ http://gentoo.modulix.net/gentoo/ http://ftp.club-internet.fr/pub/mirrors/gentoo ftp://gentoo.imj.fr/pub/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ " LANG="fr_FR.UTF-8" LC_ALL="fr_FR.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--as-needed" LINGUAS="fr en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/tante /usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi aiglx alsa amd64 amrnb amrwb arts bash-completion berkdb bluetooth branding bzip2 cairo cdd cdio cdioa cdr cjk cli consolekit cracklib crypt cups curl cxx dbus device-mapper dga dmx dns doc dri dts dvb dvd dvdr dvdread emacs emboss emerald encode exif extensions extras fam fbcon firefox flac fontconfig fortran fts3 fuse galago gcc-libffi gcc4 gd gdbm gdu geos ggi gif gimp glib glitz gmp gnome gpm gtk h323 hal iconv icu imap imlib ipv6 jack jadetex java java5 jpeg kdrive kpathsea kqemu kvm lcms ldap libffi libnotify libv4l2 live loop-aes mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly nsplugin ntfs objc ogg opengl openmp openssl oss pam pango pcre pdf perl png policykit ppds pppd private-headers python qt3support qt4 quemu quicktime readline rtsp sdl sensord session sip slang speex spell sqlite srt sse sse2 ssl startup-notification stream svg sysfs tao tcpd theora threads tiff tk truetype truetype-fonts udev unicode usb v2dpau v4l v4l2 vim-syntax vorbis wav webkit wxwindows x264 xcb xcomposite xine xml xorg xosd xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel intel8x0 intel8x0m" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="snapscan" USERLAND="GNU" VIDEO_CARDS="i810 vesa v4l fbdev intel" 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, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= app-text/xpdf-3.02-r4 was built with the following: USE="(multilib) -debug -nodrm" CFLAGS="-march=nocona -O2 -pipe -DSYSTEM_XPDFRC="\"/etc/xpdfrc\""" CXXFLAGS="-march=nocona -O2 -pipe -DSYSTEM_XPDFRC="\"/etc/xpdfrc\"" -Wno-write-strings"
To Helmut, the Printing Team or a maintainer, Please update this bug so it blocks Bug #349918. TIA. Clemmitt
Me too. dagwood ~ # emerge --info =app-text/xpdf-3.02-r4 Portage 2.1.9.26 (default/linux/amd64/10.0/desktop, gcc-4.5.2, glibc-2.12.1-r3, 2.6.36-gentoo-r5 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.36-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8400_@_2.26GHz-with-gentoo-2.0.1 Timestamp of tree: Tue, 28 Dec 2010 17:45:01 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.6.6-r1, 2.7.1, 3.1.3 dev-util/cmake: 2.8.3-r1 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.6.8 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.5-r1, 1.7.9-r2, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.4.5, 4.5.2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/openvpn/easy-rsa /var/bind /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=core2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://mirror.usu.edu/mirrors/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ " LANG="en_US.UTF-8" LDFLAGS="-Wl,-z,now,--as-needed,-O1,--hash-style=gnu,--sort-common" LINGUAS="en" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/java-overlay" SYNC="rsync://spidey.rellim.com/gentoo-portage" USE="X a52 aac acl acpi aio alsa amazon amd64 amr ares asyncns audiofile avahi berkdb binary-drivers bluetooth bonjour branding bzip2 cairo calendar caps cdaudio cdb cdda cddb cdio cdparanoia cdr chroot cli consolekit cracklib crypt cups curl custom-optimization cxx daap dbus dc1394 dirac diskio divx dri dts dv dvb dvbplayer dvd dvdr dvi ecwj2k emboss encode exif expat extrafilters extras faac faad fam fame festival ffmpeg ffmpeg-mt fftw firefox flac fontconfig foomaticdb fortran gallium gcdmaster gcrypt gd gdal gdbm gdu geoip geos geotiff gif gimp gkrellm glib gmath gmp gnuplot gnutls gpac gpg gpgme gphoto2 gpm gps grass gs gsl gsm gstreamer gtk gucharmap gutenprint h323 hpn http iconv id3tag imagemagick inkjar inotify iproute2 ipv6 irc jabber jack java javascript jbig jpeg jpeg2k krb4 ladspa lame largefile latex lcms ldap libass libburn libedit libextractor libgcrypt libnotify libsamplerate libsysfs libv4l2 libvisual live lm_sensors logrotate lv2 lzo mad mailwrapper matroska mbrola mdnsresponder-compat mikmod mjpeg mmx mng modules mp2 mp3 mp3rtp mp4 mp4live mpeg mpeg2 mplayer mtp mudflap multilib music musicbrainz mysql ncurses network nls nodrm nptl nptlonly nsplugin offensive ogg openexr opengl openmp oss pam pango passwdqc pcap pch pcre pdf perl pixmaps plotutil plotutils png pnm policykit ppds pppd proj pth pvr python qt-static qt3support qt4 rar raw rdesktop readline realmedia rle rrdtool rtc rtsp run-as-root schroedinger screen sdl secure-delete semantic-desktop server session shout skins smp sndfile sound speex spell sqlite srt sse sse2 sse3 ssh ssl ssse3 startup-notification stream svg swat sysfs syslog taglib tcpd tcpwrapper theora threads thumbnail tidy tiff transcode truetype tunepimp twolame udev unicode usb v4l v4l2 vaapi vamp vcd vcdinfo vcdx vdpau vdr visualization vlm vnc vorbis vorbis-psy vpx wav wavpack webkit wifi wikipedia wireshark wma wmf wmp wps wxwidgets x264 xanim xattr xcb xcf xcomposite xfce xforms xft xine xinerama xml xmp xorg xosd xpm xrandr xrender xscreensaver xsl xslt xulrunner xv xvid xvmc yahoo youtube zephyr zeroconf zip zlib zrtp zvbi" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau vesa" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= app-text/xpdf-3.02-r4 was built with the following: USE="(multilib) nodrm -debug" CFLAGS="-march=core2 -O2 -pipe -DSYSTEM_XPDFRC="\"/etc/xpdfrc\""" CXXFLAGS="-march=core2 -O2 -pipe -DSYSTEM_XPDFRC="\"/etc/xpdfrc\"" -Wno-write-strings"
Created attachment 258289 [details] My build log
(In reply to comment #3) > Same here: > > # emerge --info app-text/xpdf [...] > -Wno-write-strings" > app-text/poppler-0.14.5 is now the last reference version (and poppler-0.16.0 masked) in my official portage tree, 0.16 unmerged and replaced with 0.14.5. With this version, xpdf installs correctly. [I] app-text/poppler Available versions: 0.14.4!t (~)0.14.5!t [M](~)0.16.0!t {+abiword cairo cjk curl cxx debug doc exceptions +introspection jpeg jpeg2k +lcms png qt4 +utils +xpdf-headers} Installed versions: 0.14.5!t(13:31:52 30/12/2010)(abiword cairo cjk curl cxx doc jpeg lcms png qt4 utils xpdf-headers -debug -exceptions -jpeg2k) Homepage: http://poppler.freedesktop.org/ Description: PDF rendering library based on the xpdf-3.0 code base This unblocks xpdf, punctually, the problem already exists for poppler 0.16 which should be updated...
Created attachment 260043 [details, diff] poppler-0.16.0 api fix So, the patch tarball needs an update. Patch handles the failure from comment 1. Initial problem needs a more dirty trick: emake CC=$(tc-getCXX) CFLAGS="${CXXFLAGS}"
It will take forever, please adjust dependencies to pull <=poppler-0.16.0 for now. I'm bumping 0.16.1 in tree and unmasking it.
I just emerged poppler-0.16.1, and revdep-rebuild tried to emerge xpdf-3.02-r4 (among others). The emerge fails with cc -O2 -march=native -pipe -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block -DSYSTEM_XPDFRC="\"/etc/xpdfrc\"" -I/usr/include/poppler -I/usr/include/poppler/goo -I/usr/include/poppler/splash -DHAVE_DIRENT_H -c -o parseargs.o parseargs.c In file included from parseargs.h:16:0, from parseargs.c:14: /usr/include/poppler/goo/gtypes.h:31:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GBool' In file included from parseargs.c:14:0: parseargs.h:54:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'parseArgs' parseargs.h:64:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'isInt' parseargs.h:65:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'isFP' parseargs.c:17:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'grabArg' parseargs.c:19:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'parseArgs' parseargs.c:97:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'grabArg' parseargs.c:150:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'isInt' parseargs.c:160:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'isFP' make: *** [parseargs.o] Error 1 make: *** Waiting for unfinished jobs.... XPDFViewer.cc: In static member function 'static void XPDFViewer::printPrintCbk(_WidgetRec*, void*, void*)': XPDFViewer.cc:3453:35: error: no matching function for call to 'PSOutputDev::PSOutputDev(char*, XRef*, Catalog*, NULL, int&, int&, PSOutMode)' /usr/include/poppler/PSOutputDev.h:91:3: note: candidates are: PSOutputDev::PSOutputDev(void (*)(void*, char*, int), void*, char*, PDFDoc*, XRef*, Catalog*, int, int, PSOutMode, int, int, GBool, int, int, int, int, GBool, GBool) /usr/include/poppler/PSOutputDev.h:80:3: note: PSOutputDev::PSOutputDev(const char*, PDFDoc*, XRef*, Catalog*, char*, int, int, PSOutMode, int, int, GBool, int, int, int, int, GBool, GBool) /usr/include/poppler/PSOutputDev.h:76:37: note: PSOutputDev::PSOutputDev(const PSOutputDev&) XPDFViewer.cc: In member function 'void XPDFViewer::cmdRun(GooString**, int, XEvent*)': XPDFViewer.cc:1157:28: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result make: *** [XPDFViewer.o] Error 1 emake failed * ERROR: app-text/xpdf-3.02-r4 failed: So evidently, this last update did not fix everything. emerge --info Portage 2.1.9.35 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.12.2-r0, 2.6.37-gentoo x86_64) ================================================================= System uname: Linux-2.6.37-gentoo-x86_64-AMD_Opteron-tm-_Processor_242-with-gentoo-2.0.1 Timestamp of tree: Fri, 28 Jan 2011 21:30:01 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 1.3.7-r1, 2.1.11-r3 dev-lang/python: 2.5.4-r4, 2.6.6-r1, 2.7.1, 3.1.3 dev-util/cmake: 2.8.3-r1 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.7.0 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.3.5, 4.4.5, 4.5.2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=native -pipe -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans" FFLAGS="" GENTOO_MIRRORS="http://gentoo.osuosl.org http://ftp.ucsb.edu/pub/mirrors/linux/gentoo http://cudlug.cudenver.edu/gentoo http://gentoo.binarycompass.org" LANG="en_US.UTF-8" LC_ALL="" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en en_US" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac accessibility acl administrator aiglx alsa amd64 apache2 auctex audiofile bash-completion bcmath berkdb blas bonobo bzip2 cairo calendar cdda cdparanoia cdr cdrom clamav clamd cli clisp clucene colordiff consolekit cracklib crypt ctype cups cxx dbus debugger deprecated device-mapper dga discouraged divx-linux dri dvb dvd dvdr dvdread emacs emul-linux86 esd extensions extras fastcgi fbcon ffmpeg flac fontconfig fortran ftp gd gdbm gdu glut gmail gnome gnome-keyring gnutls gphoto2 gpm graphite gstreamer gtk iconv imagemagick ipv6 java javascript jpeg kde kerberos kpathsea lame latex latin1 leim libclamav libnotify libwww lightning logrotate mad maildir mbox mcal mime mmx mmxext mng modules motif mouse mozcalendar mozilla mp3 mpeg mpeg2 mpi mudflap multilib mysql mysqli nat ncurses nls nocd nosendmail nptl nptlonly nsplugin nvidia objc offensive ogg openexr opengl openmp osc oscar pam pcre pdf perl png policykit pop pop3d portaudio posix ppds pppd preview-latex python qt3support qt4 query-browser readline regex replytolist rtc samba sasl secure-delete semantic-desktop session sharedmem sip smbclient sockets sound source sox spamassassin speex sqlite sse sse2 ssl standalone svg symlink sysfs tcltk tcpd tetex theora threads thunderbird tiff truetype udev unicode usb vhosts vorbis wav weather webkit wxwidgets wxwindows xcomposite xine xmail xorg xulrunner xvid" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
same problem as #10
me too.
Like #10, same for me. Portage 2.1.9.35 (default/linux/x86/10.0/desktop, gcc-4.5.2, glibc-2.12.2-r0, 2.6.34-maxux32 i686) ================================================================= System uname: Linux-2.6.34-maxux32-i686-Intel-R-_Xeon-TM-_CPU_2.80GHz-with-gentoo-2.0.1 Timestamp of tree: Sat, 29 Jan 2011 16:30:22 +0000 distcc 3.1 i686-pc-linux-gnu [enabled] ccache version 3.1.4 [enabled] app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.6.6-r1, 2.7.1, 3.1.3 dev-util/ccache: 3.1.4 dev-util/cmake: 2.8.3-r1 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.7.0 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.4.5, 4.5.2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA PUEL skype-eula AdobeFlash-10 AdobeFlash-10.1" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -pipe -mfpmath=sse" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo" CXXFLAGS="-O2 -march=pentium4 -pipe -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs ccache distcc distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ " LANG="fr_BE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j 12" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi alsa apache2 bash-completion berkdb bluetooth branding bzip2 cairo caps cdr cgid cli consolekit cracklib crypt cxx dbus dmx dri dts dvd dvdr emboss encode exif extensions extras fam fat ffmpeg fftw firefox flac gd gdbm gdu gif glitz gnutls gpm gtk hddtemp iconv icu id3tag iostats ipv6 jack jpeg json kqemu lcms libaa libnotify libsexy lv2 mad mdadm midi mikmod mmx mng modules mp3 mp4 mpeg mudflap multitarget mysql ncurses nethack netjack nls nptl nptlonly ntfs nvidia ogg opengl openmp optimization pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline samba sdl secure-delete session sndfile spell sqlite sse sse2 ssl startup-notification svg sysfs syslog system-sqlite tcpd theora threads tiff truetype udev unicode usb vim-syntax vorbis wavpack x264 x86 xcb xcomposite xft xinerama xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" APACHE2_MPMS="worker" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi gzip limit_req limit_zone map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
XPDFViewer.cc:3453: error: no matching function for call to ‘PSOutputDev::PSOutputDev(char*, XRef*, Catalog*, NULL, int&, int&, PSOutMode)’ /usr/include/poppler/PSOutputDev.h:91: note: candidates are: PSOutputDev::PSOutputDev(void (*)(void*, char*, int), void*, char*, PDFDoc*, XRef*, Catalog*, int, int, PSOutMode, int, int, GBool, int, int, int, int, GBool, GBool) /usr/include/poppler/PSOutputDev.h:80: note: PSOutputDev::PSOutputDev(const char*, PDFDoc*, XRef*, Catalog*, char*, int, int, PSOutMode, int, int, GBool, int, int, int, int, GBool, GBool) /usr/include/poppler/PSOutputDev.h:76: note: PSOutputDev::PSOutputDev(const PSOutputDev&) cc -O2 -march=core2 -pipe -msse4.1 -fomit-frame-pointer -frecord-gcc-switches -DSYSTEM_XPDFRC="\"/etc/xpdfrc\"" -I/usr/include/poppler -I/usr/include/poppler/goo -I/usr/include/poppler/splash -DHAVE_DIRENT_H -c -o parseargs.o parseargs.c make: *** [XPDFViewer.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from parseargs.h:16, from parseargs.c:14: /usr/include/poppler/goo/gtypes.h:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GBool’ In file included from parseargs.c:14: parseargs.h:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘parseArgs’ parseargs.h:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘isInt’ parseargs.h:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘isFP’ parseargs.c:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘grabArg’ parseargs.c:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘parseArgs’ parseargs.c:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘grabArg’ parseargs.c:150: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘isInt’ parseargs.c:160: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘isFP’ make: *** [parseargs.o] Error 1 make: *** wait: Žádný potomek neexistuje. Stop. emake failed * ERROR: app-text/xpdf-3.02-r4 failed: * (no error message) * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 3344: Called die * The specific snippet of code: * emake || die * Portage 2.1.9.35 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.12.2-r0, 2.6.36-ck-r5 x86_64) ================================================================= System uname: Linux-2.6.36-ck-r5-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.0.1 Timestamp of tree: Sun, 30 Jan 2011 12:30:01 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.6.6-r1, 2.7.1, 3.1.3 dev-util/cmake: 2.8.3-r1 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.7.0 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.3.5, 4.4.5, 4.5.2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA ETQW Nero-EULA-US dlj-1.1 Q3AEULA LOKI-EULA AdobeFlash-10 AdobeFlash-10.1 Nero-AAC-EULA PUEL googleearth skype-eula sun-bcla-java-vm" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=core2 -pipe -msse4.1 -fomit-frame-pointer -frecord-gcc-switches" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/spool/torque" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=core2 -pipe -msse4.1 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="cs_CZ.UTF-8" LC_ALL="cs_CZ.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="cs" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl alsa amd64 berkdb bzip2 cli cracklib crypt cxx flac fortran freetype freetype2 gdbm gif gpm iconv idn ipv6 jpeg mmx modules mp3 mudflap multilib nls nptl nptlonly ogg opengl openmp pam pango pcre perl png python qt3support readline session sse sse2 sse3 ssl ssse3 svg sysfs tcpd tiff truetype unicode xcb xorg zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="dir" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs" LIRC_DEVICES="all" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XFCE_PLUGINS="brightness logout trash clock" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Poppler changed the definition of GBool from int to bool: http://cgit.freedesktop.org/poppler/poppler/commit/?id=ae79fc504c5424be2fa21dbc5498ced4db6e5dd3 As bool is a C++ keyword, but usually not a C keyword, this causes the compiler error. Possible solutions: - Change file name from parseargs.c to parseargs.cc as poppoler did. This will cause gcc to compile it as C++, but without any C++-specific linker settings. - Patch poppler for Gentoo, to perserve backwards compatibility. - File a Bug against poppler, and ask upstream to preserve compatibility. - Have the xpdf ebuild provide a -Dbool=int define or similar. Might break ABI. I guess I'd favour the first. Don't know how closely tied poppler and xpdf are. Perhaps there already is a xpdf release with that rename in place?
(In reply to comment #15) > - Change file name from parseargs.c to parseargs.cc as poppoler did. This will > cause gcc to compile it as C++, but without any C++-specific linker settings. > - Patch poppler for Gentoo, to perserve backwards compatibility. > - File a Bug against poppler, and ask upstream to preserve compatibility. > - Have the xpdf ebuild provide a -Dbool=int define or similar. Might break ABI. > > I guess I'd favour the first. Don't know how closely tied poppler and xpdf are. > Perhaps there already is a xpdf release with that rename in place? according to the github repo (https://github.com/rbrito/xpdf-poppler), the rename occured back in october already, so if there wasn't a release since, it's high time now ;).
Just emerged poppler-0.16.2. Still get a compiler failure for xpdf.
(In reply to comment #16) > according to the github repo (https://github.com/rbrito/xpdf-poppler), the > rename occured back in october already, so if there wasn't a release since, > it's high time now ;). I don't see any kind of "official" releases for that repo. So I guess it's up to Gentoo to roll a new release which includes that commit: https://github.com/rbrito/xpdf-poppler/commit/502b55eeee95dcf55d69118b As xpdf (non-poppler) upstream (http://www.foolabs.com/xpdf/) is still at 3.02, it probably should be another revbump. The patch from comment #8 doesn't seem to be in git yet. Perhaps someone should suggest it at GitHub.
(In reply to comment #18) Well, it's my patch and I'm unaffiliated with either printing team or xpdf-poppler people. Also, that hack I mentioned, is to achieve about the same result renaming to .cc would have. Finally, people, stop adding "me too" comments.
I used the 55_all_xpdf-poppler-0.16.0.patch , but it still fails with the same error: >>> Emerging (2 of 3) app-text/xpdf-3.02-r4 from unknown repo ... * 50_all_xpdf-poppler-getCMap-arguments.patch ... [ ok ] * Done with patching * Applying 55_all_xpdf-poppler-0.16.0.patch ... [ ok ] >>> Source prepared. ... g++ -march=amdfam10 -O2 -pipe -DSYSTEM_XPDFRC="\"/etc/xpdfrc\"" -Wno-write-strings -I/usr/include/poppler -I/usr/include/poppler/goo -I/usr/include/poppler/splash -DHAVE_DIRENT_H -c -o xpdf.o xpdf.cc In file included from parseargs.h:16:0, from parseargs.c:14: /usr/include/poppler/goo/gtypes.h:31:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GBool’ In file included from parseargs.c:14:0: parseargs.h:54:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘parseArgs’ parseargs.h:64:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘isInt’ I used the attached ebuild. Is something wrong with this ebuild?
Created attachment 261791 [details] my patched xpdf-3.02-r4.ebuild
(In reply to comment #20) > I used the attached ebuild. Is something wrong with this ebuild? It's incomplete. You'll have to compile the parseargs.c file as C++, either using the hack by Rafał Mużyło from comment #8 which accompanied the patch: emake CC=$(tc-getCXX) CFLAGS="${CXXFLAGS}" or by renaming the file to parseargs.cc as I suggested in comment #15.
Created attachment 261801 [details] new version of xpdf-3.02-r4.ebuild Now it works with the attached ebuild.
Created attachment 261803 [details] xpdf-3.02-r5.ebuild Patch + renaming work well.
I can confirm that the attached patch and the ebuild provided by Honza corrects the problem.
Same problem here. I know... Just to say that the fix in the -r5 ebuild work fine here on ~amd64
Patch +ebuild worked for me too. (~x86) Thanks to Rafal and Honza.
fixed it myself, thanks all had the patch in my tree for too long