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

Bug 399291

Summary: app-office/koffice-libs-2.3.3-r1 - .../work/koffice-libs-2.3.3/plugins/chartshape/kdchart/src/KDChartBackgroundAttributes .cpp:153:26: error: ambiguous overload for ‘operator<<’ in [...]
Product: Gentoo Linux Reporter: Juergen Rose <rose>
Component: [OLD] KDEAssignee: Andreas K. Hüttel <dilfridge>
Status: RESOLVED FIXED    
Severity: normal CC: creffett, kde, phajdan.jr
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 414241, 415749    
Bug Blocks:    
Attachments: bzip2ed /var/tmp/portage/app-office/koffice-libs-2.3.3-r1/temp/build.log

Description Juergen Rose 2012-01-18 16:32:46 UTC
'emerge koffice-libs' fails with:
...
64-pc-linux-gnu-g++  -DMAKE_KDCHART_LIB -D_BSD_SOURCE -DSHOULD_BUILD_RDF -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -DKDE4_CMAKE_TOPLEVEL_DIR_LENGTH=54 -DKDCHART_BUILD_KDCHART_LIB  -DQT_NO_DEBUG -DNDEBUG -O2 -pipe  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden -fPIC -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3_build/plugins/chartshape/kdchart/src -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/plugins/chartshape/kdchart/src -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3 -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3_build -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/interfaces -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/libs/kotext -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3_build/libs/kotext -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/libs/kotext/changetracker -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/libs/kotext/styles -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/libs/kotext/opendocument -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/libs/flake -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/libs/odf -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3_build/libs/odf -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/libs/koplugin -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/libs/pigment -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/libs/pigment/compositeops -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/libs/pigment/resources -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/libs/flake/commands -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/libs/flake/tools -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3_build/libs/flake -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/libs/main -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/libs/widgets -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/libs/main/config -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/plugins/chartshape/kdchart/src/../include -I/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/plugins/chartshape/kdchart/src/../kdablibfakes/include -I/usr/include/KDE -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtWebKit -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtMultimedia -I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtAssistant -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/Qt -I/usr/share/qt4/mkspecs/default -I/usr/include/qt4    -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -o CMakeFiles/kdchart.dir/KDChartBarDiagram_p.o -c /var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/plugins/chartshape/kdchart/src/KDChartBarDiagram_p.cpp
/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/plugins/chartshape/kdchart/src/KDChartBackgroundAttributes.cpp: In function ‘QDebug operator<<(QDebug, const KDChart::BackgroundAttributes&)’:
/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3/plugins/chartshape/kdchart/src/KDChartBackgroundAttributes.cpp:153:26: error: ambiguous overload for ‘operator<<’ in ‘((QDebug*)((QDebug*)operator<<(QDebug, const QBrush&)(((const QBrush&)((const QBrush*)(& KDChart::BackgroundAttributes::brush() const())))).QDebug::operator<<(((const char*)"pixmapmode=")))->QDebug::operator<<(((int)((const KDChart::BackgroundAttributes*)ba)->KDChart::BackgroundAttributes::pixmapMode())))->QDebug::operator<<(((const char*)"pixmap=")) << KDChart::BackgroundAttributes::pixmap() const()’
/usr/include/qt4/QtCore/qvariant.h:606:22: note: candidates are: QDebug operator<<(QDebug, const QVariant&)
/usr/include/qt4/QtGui/qbrush.h:171:21: note:                 QDebug operator<<(QDebug, const QBrush&)
make[2]: *** [plugins/chartshape/kdchart/src/CMakeFiles/kdchart.dir/KDChartBackgroundAttributes.o] Error 1
...
cd /var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3_build/libs/pigment && /usr/bin/cmake -E cmake_symlink_library ../../lib/libpigmentcms.so.8.0.0 ../../lib/libpigmentcms.so.8 ../../lib/libpigmentcms.so
make[2]: Leaving directory `/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3_build'
/usr/bin/cmake -E cmake_progress_report /var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3_build/CMakeFiles  90 91
[  8%] Built target pigmentcms
make[1]: Leaving directory `/var/tmp/portage/app-office/koffice-libs-2.3.3-r1/work/koffice-libs-2.3.3_build'
make: *** [all] Error 2


Reproducible: Always




root@moose:/root(10)# emerge --info =app-office/koffice-libs-2.3.3-r1
Portage 2.1.10.44 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r2, 3.2.1-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.2.1-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-gentoo-2.1
Timestamp of tree: Wed, 18 Jan 2012 09:00:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3::sage-on-gentoo, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.2
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo x11 arcon qting-edge bicatali sage-on-gentoo java-overlay sunrise science x-portage x-cpan g-octave
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula googleearth AdobeFlash-10.1 cadsoft Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
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/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/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"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de fr"
MAKEOPTS="-j5"
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/x11 /var/lib/layman/arcon /var/lib/layman/qting-edge /var/lib/layman/bicatali /var/lib/layman/sage-on-gentoo /var/lib/layman/java-overlay /var/lib/layman/sunrise /var/lib/layman/science /usr/local/portage /var/lib/cpan /var/lib/g-octave"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit R X Xaw3d a52 aac acl acpi admin afs alsa amd64 ao apache2 applet archive arpack asf aspell assistant atlas audacious audiofile automap automount bash-completion berkdb blas blast bluetooth boo boost branding bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cg cgi chm cli consolekit corba cracklib crypt css cuda cups curl cxx daap db dbase dbi dbm dbus declarative designer devhelp device-mapper dga dia dirac djvu doc dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras faac fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpx fts3 fuse galago garmin gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp ginac git glade glib glpk gml gmp gmtsuppl gnome gnome-keyring gnome-print gnuplot gnutls gphoto2 gpm grammar graphics graphtft graphviz grass gs gsl gsm gstreamer gtk gudev guile harness hddtemp hdf hdf5 hdri http httpd hvm hwdb iconv icq icu id3 ide imagemagick imap innodb inotify ipod ipv6 irda ithreads jabber jadetex java java6 jbig john jpeg jpeg2k kdrive kerberos kpathsea kqemu kvm ladspa lame lapack latex latex3 lcms ldap lensfun libffi libgda libnotify libsamplerate lirc lm_sensors lua lzo mad mail maildir mapnik math matroska mkl mmx mmxext mng modules mono motif mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numpy nvidia obex objc ocaml ocr octave odbc ogdi ogg ole openexr opengl openmp overview pae pam pango pcre pda pdf perl plotutils plugins png podcast policykit portaudio posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio python python-bindings q16 q32 qemu qhull qt3support qt4 quicktime readline reiserfs reports rle romio rpc rrdcgi rrdtool sage samba sasl schroedinger science sdk sdl secure-delete semantic-desktop server session sip slang slp smbclient smp sms sndfile snmp soup sox speex spell sql sqlite sse sse2 sse4 ssl ssse3 startup-notification stlport subtitles subversion suexec svg svm swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs tgif theora threads thunderbird tidy tiff tk tools truetype udev unicode usb userlocales utempter vaapi video virtualbox vorbis wav webdav webdav-serf webkit wifi wmf wxwidgets x264 xattr xcb xemacs xext xft xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc yaml zlib zvbi" ALSA_CARDS="intel8x0" 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 cgid 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="canon" 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 fr" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-office/koffice-libs-2.3.3-r1 was built with the following:
USE="crypt (multilib) openexr opengl reports (-aqua) -debug -kdeenablefinal -test"




root@moose:/root(11)# emerge -pqv =app-office/koffice-libs-2.3.3-r1
[ebuild   R   ] app-office/koffice-libs-2.3.3-r1  USE="crypt openexr opengl reports (-aqua) -debug -test (-kdeenablefinal%)"
Comment 1 Juergen Rose 2012-01-18 16:35:02 UTC
Perhaps the error is connected with the installed qt-4.8:

root@moose:/root(12)# qlist -Iv qt
dev-libs/libdbusmenu-qt-0.8.2
dev-tex/qtexengine-0.2
sci-mathematics/qtoctave-0.10.1
sci-visualization/qtiplot-0.9.8.9
sys-auth/polkit-qt-0.103.0
x11-libs/qt-assistant-4.8.0
x11-libs/qt-core-4.8.0-r1
x11-libs/qt-dbus-4.8.0
x11-libs/qt-declarative-4.8.0-r1
x11-libs/qt-gui-4.8.0
x11-libs/qt-multimedia-4.8.0
x11-libs/qt-opengl-4.8.0
x11-libs/qt-qt3support-4.8.0
x11-libs/qt-script-4.8.0
x11-libs/qt-sql-4.8.0
x11-libs/qt-svg-4.8.0
x11-libs/qt-test-4.8.0
x11-libs/qt-webkit-4.8.0
x11-libs/qt-xmlpatterns-4.8.0
x11-libs/qtscriptgenerator-0.1.0-r1
Comment 2 Juergen Rose 2012-01-18 16:37:11 UTC
Created attachment 299249 [details]
bzip2ed /var/tmp/portage/app-office/koffice-libs-2.3.3-r1/temp/build.log
Comment 3 Juergen Rose 2012-01-30 13:14:56 UTC
And now where qt-core-4.8 came to the main portage tree, I have this error at the other systems (without overlay qt-edge) too.
Comment 4 Johannes Hirte 2012-02-05 22:27:44 UTC
can confirm this on x86 and x86_64

kmymoney seemst also affected
Comment 5 Crístian Viana 2012-02-07 00:54:39 UTC
I can also confirm this bug.
ACCEPT_KEYWORDS="~amd64", =koffice-libs-2.3.3-r1, =qt-core-4.8.0-r1.
Comment 6 Chris Reffett (RETIRED) gentoo-dev Security 2012-02-07 02:53:41 UTC
I confirm identical to Cristian above, and I get the same error while compiling kmymoney 4.6.1
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2012-02-07 21:11:14 UTC
Fixed in koffice-libs-2.3.3-r2
Comment 8 Juergen Rose 2012-02-08 10:34:34 UTC
Works for me now with koffice-libs-2.3.3-r2.
Comment 9 Crístian Viana 2012-02-08 15:07:09 UTC
Yes, I can also confirm it's been fixed in koffice-libs-2.3.3-r2 :-)
Comment 10 Juergen Rose 2012-02-16 09:14:19 UTC
Works for me now with koffice-libs-2.3.3-r2.
Comment 11 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-05-12 10:01:39 UTC
Please push the fix to stable, so that qt-4.8 can go stable.
Comment 12 Andreas K. Hüttel archtester gentoo-dev 2012-05-13 14:01:18 UTC
Will be resolved by removing KOffice (after Calligra stabilization).
Comment 13 Andreas K. Hüttel archtester gentoo-dev 2012-06-24 12:00:07 UTC
And gone from the tree.