Created attachment 288207 [details] build.log Compilation fails with: ImageOutputDev.cc: In member function ‘virtual void ImageOutputDev::drawImageMask(GfxState*, Object*, Stream*, int, int, GBool, GBool)’: ImageOutputDev.cc:59:13: error: ‘DCTStream’ was not declared in this scope ImageOutputDev.cc:59:24: error: expected primary-expression before ‘)’ token ImageOutputDev.cc:59:25: error: expected ‘)’ before ‘str’ ImageOutputDev.cc: In member function ‘virtual void ImageOutputDev::drawImage(GfxState*, Object*, Stream*, int, int, GfxImageColorMap*, int*, GBool)’: ImageOutputDev.cc:123:13: error: ‘DCTStream’ was not declared in this scope ImageOutputDev.cc:123:24: error: expected primary-expression before ‘)’ token ImageOutputDev.cc:123:25: error: expected ‘)’ before ‘str’ make: *** [ImageOutputDev.o] Error 1 make: *** Waiting for unfinished jobs.... 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 emake failed * ERROR: app-text/xpdf-3.02-r4 failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 91: Called src_compile * environment, line 3536: Called die * The specific snippet of code: * emake || die With poppler-0.16.7, it builds successfully. Portage 2.1.10.19 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.13-r4, 3.0.3-gentoo x86_64) ================================================================= System uname: Linux-3.0.3-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-gentoo-2.0.3 Timestamp of tree: Thu, 29 Sep 2011 04:45:01 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] ccache version 3.1.6 [enabled] app-shells/bash: 4.2_p10 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r3, 3.2.2 dev-util/ccache: 3.1.6 dev-util/cmake: 2.8.5-r2 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.9.3-r1 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1-r1 sys-devel/binutils: 2.21.1-r1 sys-devel/gcc: 4.4.6-r1, 4.5.3-r1 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r3 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 2.6.39 (virtual/os-headers) sys-libs/glibc: 2.13-r4 Repositories: gentoo a1 emacs ulm ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -ggdb -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/fax /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /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 -ggdb -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="ftp://a1iarchive1.kph.uni-mainz.de/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://gentoo.oregonstate.edu http://gentoo.inode.at" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de en en_GB en_US fr it es" MAKEOPTS="-j6" 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/a1 /var/lib/layman/emacs /usr/portage/local/ulm" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X Xaw3d a52 aac aalib acl acpi alsa amd64 amr ansi apache2 bbdb berkdb branding bzip2 cairo caps cdda cdparanoia cdr cli consolekit cracklib crypt cups curl cxx dbus dga directfb doc dri dts dvd dvdr elisp emacs emboss encode exif expat fam fbcon ffmpeg firefox flac fortran gcj gd gdbm gdu gif gimp gimpprint glitz glut gpm gtk gtkhtml guile iconv idea imap ipv6 java jbig jpeg kpathsea latex lcms libcaca libnotify logrotate mad mbrola mmx mng modules motif mp3 mp4 mpeg mudflap multilib ncurses networking nls nocd nptl nptlonly nsplugin offensive ogg opengl openmp pam pango pcre pdf perl php png policykit postgres ppds pppd python qt3support qt4 rdesktop readline recode regex ruby sasl sbcl sdl sendmail session skey socks5 source sox spell sqlite sse sse2 ssl startup-notification svg sysfs tcpd tex tiff truetype type1 udev unicode usb userlocales vorbis wxwindows x264 xcb xft xml xorg xpm 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 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_GB en_US fr it es" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel vesa fbdev v4l" 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
Created attachment 288215 [details, diff] patch to build against poppler 0.18 Here's a patch, that makes xpdf build (and run) with poppler 0.18. However I'm about fifty-fifty on it being correct - getRawStream -> getNextStream is most likely correct (as per a git commit comment), but I'm not sure about the typecast.
*** Bug 385041 has been marked as a duplicate of this bug. ***
(In reply to comment #1) > However I'm about fifty-fifty on it being correct - getRawStream -> > getNextStream is most likely correct (as per a git commit comment), but I'm not > sure about the typecast. As other changes in that same commit handle casts the same way, I'm pretty surethat those are all right as well. http://cgit.freedesktop.org/poppler/poppler/commit/?id=baf54c2876edd476ffc68da6 Patch works for me as well, thanks a lot!
Patch in main tree. Thanks for report.