Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 568828

Summary: =net-print/cups-filters-1.4.0 - undefined reference to `QPDFWriter::setExtraHeaderText(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
Product: Gentoo Linux Reporter: Gary E. Miller <gem>
Component: [OLD] PrintingAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: gem, kensington, mvaenskae
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
environment

Description Gary E. Miller 2015-12-19 20:20:03 UTC
More C+++ ABI breakage

Reproducible: Always

Steps to Reproduce:
1. emerge -1 =net-print/cups-filters-1.4.0
Actual Results:  
[...]
libtool: link: x86_64-pc-linux-gnu-g++ -std=c++0x -O2 -pipe -march=btver1 -Wall -
pedantic -D_GNU_SOURCE -Wl,-O1 -o pdftopdf pdftopdf-pdftopdf.o pdftopdf-pdftopdf_
jcl.o pdftopdf-pdftopdf_processor.o pdftopdf-qpdf_pdftopdf_processor.o pdftopdf-p
ptypes.o pdftopdf-nup.o pdftopdf-intervalset.o pdftopdf-qpdf_tools.o pdftopdf-qpd
f_xobject.o pdftopdf-qpdf_pdftopdf.o pdftopdf-qpdf_cm.o  -Wl,--as-needed -lqpdf -
lcupsimage -lcups -lgnutls -lpthread -lm -lcrypt -lz -ltiff -ljpeg -ldl
pdftopdf-qpdf_pdftopdf_processor.o: In function `QPDF_PDFTOPDF_Processor::emitFil
ename(char const*)':
qpdf_pdftopdf_processor.cc:(.text+0x276): undefined reference to `QPDFWriter::setMinimumPDFVersion(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
qpdf_pdftopdf_processor.cc:(.text+0x29f): undefined reference to `QPDFWriter::setExtraHeaderText(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
qpdf_pdftopdf_processor.cc:(.text+0x2fc): undefined reference to `QPDFWriter

Expected Results:  
A good emerge

robin ~ # emerge -pqv '=net-print/cups-filters-1.4.0::gentoo'
emerge --info '=net-print/cups-filters-1.4.0::gentoo'
[ebuild     U ] net-print/cups-filters-1.4.0 [1.3.0] USE="dbus foomatic jpeg perl png tiff -static-libs -zeroconf" 

robin ~ # emerge --info '=net-print/cups-filters-1.4.0::gentoo'
Portage 2.2.26 (python 2.7.11-final-0, default/linux/amd64/13.0/desktop/kde, gcc-5.3.0, glibc-2.22-r1, 4.3.2-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.3.2-gentoo-x86_64-AMD_E-350_Processor-with-gentoo-2.2
KiB Mem:     7768128 total,    893556 free
KiB Swap:   16777212 total,  16777164 free
Timestamp of repository gentoo: Sat, 19 Dec 2015 17:45:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p42::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.11-r1::gentoo, 3.4.3-r6::gentoo, 3.5.1-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.4.1::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r1::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://backup.rellim.com/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=btver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /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/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/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="-O2 -pipe -march=btver1"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps=y --backtrack=2"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8 -l2"
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 accessibility acl acpi adns aio alsa amd64 amr amrenc apng ares asyncdns avahi avcodec avformat bash-completion bcmath berkdb bluetooth bluray bound branding bzip2 cairo caps cdda cdr celt cli connman consolekit cracklib crypt cryptsetup cups curl cxx dane dbus declarative device-mapper djbfft dlz dri dts dvb dvd dvdr e2 ecwj2k egl emboss encode exif expat extraengine faac faad fam fdk ffmpeg fftw firefox fits flac fontconfig foomaticdb fortran fortune fpm fpx g g3dvl gcrypt gd gdbm geoip geos gif gimp git glamor gles1 gles2 glib gml gmp gnome-keyring gnutls gost gpg gpm gps grass gsl gsm gstreamer gtk gtk3 hardened hdf highlight http2 iconv icu id3tag inotify iproute2 ipv6 jack jbig jpeg jpeg2k json kipi ladspa lame lcms libass libcanberra libedit libffi libinput libmpeg2 libnotify libsamplerate libsecret libsoxr libv4l2 lm_sensors lmdb lzma lzo mad matroska md5sum mhash mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses net netcdf netlink network nfs nfsv4 nfsv41 nls nptl ntp ogdi ogg openal openexr opengl openmp openssl opus osmesa pam pango pcntl pcre pdf pdfimport penexr perl phonon plasma png pnm policykit popcnt postproc ppds pulseaudio pyqt4 python q32 q8 qt3support qt4 qt5 quvi raw readline realtime rpc rpz rtmp sctp sdl seccomp semantic-desktop session sharedmem shm shout smi smp sndfile snmp spatialite speex spell sql sqlite sse sse2 sse3 sse4a ssh ssl ssse3 sssvg startup-notification svg swscale t1lib tcpd theora threads tiff toolame truetype twolame udev udisks unbound unicode upower urandom usb utils utp v4l2 v8 vaad vaapi vdpau vim-syntax vlc vorbis vpx webkit webkit2 webp wifi wmf wps wxwidgets x264 x265 xattr xcb xcomposite xft xine xinerama xml xmlndr xorg xosd xosine xpm xrender xscreensaver xsl xulrunner xv xvid xvmc xz zip zlib zvbi" 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 popcnt sse sse2 sse3 sse4a ssse3" DRACUT_MODULES="caps crypt livenet lvm ssh-client 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 ublox ubx" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="vesa 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Gary E. Miller 2015-12-19 20:20:44 UTC
Created attachment 419852 [details]
build.log
Comment 2 Gary E. Miller 2015-12-19 20:21:02 UTC
Created attachment 419854 [details]
environment
Comment 3 Gary E. Miller 2015-12-19 20:30:05 UTC
The obvious workaround does NOT work:

robin ~ # CXXFLAGS="-std=c++11" emerge -1 net-print/cups-filters

[...]
libtool: link: x86_64-pc-linux-gnu-g++ -std=c++0x -std=c++11 -Wall -pedantic -D_
GNU_SOURCE -Wl,-O1 -o pdftopdf pdftopdf-pdftopdf.o pdftopdf-pdftopdf_jcl.o pdfto
pdf-pdftopdf_processor.o pdftopdf-qpdf_pdftopdf_processor.o pdftopdf-pptypes.o p
dftopdf-nup.o pdftopdf-intervalset.o pdftopdf-qpdf_tools.o pdftopdf-qpdf_xobject
.o pdftopdf-qpdf_pdftopdf.o pdftopdf-qpdf_cm.o  -Wl,--as-needed -lqpdf -lcupsima
ge -lcups -lgnutls -lpthread -lm -lcrypt -lz -ltiff -ljpeg -ldl
pdftopdf-qpdf_pdftopdf_processor.o: In function `debug_box(PageRect const&, floa
t, float)':
qpdf_pdftopdf_processor.cc:(.text+0x102): undefined reference to `QUtil::double_to_string[abi:cxx11](double, int)'
Comment 4 Matias Hilden 2015-12-20 14:22:48 UTC
Rebuilding app-text/qpdf resolved this issue for me.
Comment 5 Michael Palimaka (kensington) gentoo-dev 2015-12-20 15:58:00 UTC
As mentioned in comment #4, please try rebuilding app-text/qpdf.
Comment 6 Mike Gilbert gentoo-dev 2015-12-22 01:54:16 UTC
*** Bug 569078 has been marked as a duplicate of this bug. ***