Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469318 - app-office/libreoffice-4.0.3.3: dpfilteredcache.cxx:176:80: error: no match for ‘operator!’
Summary: app-office/libreoffice-4.0.3.3: dpfilteredcache.cxx:176:80: error: no match f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-10 13:54 UTC by Andrey Grozin
Modified: 2013-05-11 11:22 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libreoffice-4.0.3.3:20130510-153423.log.bz2 failed build (app-office:libreoffice-4.0.3.3:20130510-153423.log.bz2,584.24 KB, application/x-bzip2)
2013-05-10 17:12 UTC, Patrick Orth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Grozin gentoo-dev 2013-05-10 13:54:54 UTC
[build CXX] sc/source/core/data/dpoutput.cxx
/var/tmp/portage/app-office/libreoffice-4.0.3.3/work/libreoffice-4.0.3.3/sc/source/core/data/dpfilteredcache.cxx: In member function ‘void ScDPFilter
edCache::fillTable(const ScQueryParam&, bool, bool)’:
/var/tmp/portage/app-office/libreoffice-4.0.3.3/work/libreoffice-4.0.3.3/sc/source/core/data/dpfilteredcache.cxx:176:80: error: no match for ‘operator!’ in ‘!mdds::flat_segment_tree<_Key, _Value>::search_tree(mdds::flat_segment_tree<_Key, _Value>::key_type, mdds::flat_segment_tree<_Key, _Value>::value_type&, mdds::flat_segment_tree<_Key, _Value>::key_type*, mdds::flat_segment_tree<_Key, _Value>::key_type*) const [with _Key = int; _Value = bool; mdds::flat_segment_tree<_Key, _Value>::key_type = int; mdds::flat_segment_tree<_Key, _Value>::value_type = bool](nRow, (* & bShow), 0u, (& nEndSegment))’
/var/tmp/portage/app-office/libreoffice-4.0.3.3/work/libreoffice-4.0.3.3/sc/source/core/data/dpfilteredcache.cxx:176:80: note: candidate is:
/var/tmp/portage/app-office/libreoffice-4.0.3.3/work/libreoffice-4.0.3.3/sc/source/core/data/dpfilteredcache.cxx:176:80: note: operator!(bool) <built-in>
/var/tmp/portage/app-office/libreoffice-4.0.3.3/work/libreoffice-4.0.3.3/sc/source/core/data/dpfilteredcache.cxx:176:80: note:   no known conversion for argument 1 from ‘std::pair<mdds::flat_segment_tree<int, bool>::const_iterator, bool>’ to ‘bool’


dns ~ # emerge --info 
Portage 2.2.0_alpha174 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.2, glibc-2.17, 3.6.6-gentoo x86_64)
=================================================================
System uname: Linux-3.6.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-3610QM_CPU_@_2.30GHz-with-gentoo-2.2
KiB Mem:     8075104 total,   2719532 free
KiB Swap:   10485756 total,  10485736 free
Timestamp of tree: Fri, 10 May 2013 09:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.4, 3.2.4
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.4, 4.6.3, 4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo science lisp sunrise grozin
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/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 -march=native -pipe"
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 sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=native -pipe"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/science /var/lib/layman/lisp /var/lib/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 bash-completion berkdb blas bluetooth boehm-gc branding browserplugin bzip2 cairo cdda cdr cli consolekit cracklib crypt css cups curl cxx dbus declarative dirac doc dri dvd emacs enca encode exif fam ffmpeg fftw firefox flac fltk fortran gd gdbm gif gmp gpm gsl gtk iconv imagemagick jpeg kde kipi kpathsea lapack latex lcms ldap libnotify lzma mad mmx mng modules mozilla mp3 mp4 mpeg mudflap multilib ncurses nls nptl nsplugin offensive ogg opengl openmp pam pango pcre pdf phonon plasma plotutils png policykit ppds python qt3support qt4 readline schroedinger sdl semantic-desktop session speex spell sse sse2 ssl startup-notification svg tcl tcpd theora tiff tk truetype udev udisks umfpack unicode upower usb v4l2 vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid 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" 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="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" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-10 15:56:42 UTC
Please attach the entire build log to this bug report.
Comment 2 Patrick Orth 2013-05-10 17:12:12 UTC
Created attachment 347948 [details]
libreoffice-4.0.3.3:20130510-153423.log.bz2 failed build
Comment 3 tka 2013-05-10 18:31:25 UTC
Same error here. It seems to be related to the mdds upgrade to version 0.8.0.
Comment 4 Rainer Ruecker 2013-05-10 20:24:32 UTC
Upstream fixed this in Change-Id: I51d8676bd0621bd43b3f8a8f6be4bf4056d45904:

Author: Kohei Yoshida <kohei.yoshida@gmail.com>  2013-05-06 16:27:55
Committer: Kohei Yoshida <kohei.yoshida@gmail.com>  2013-05-09 19:34:33
Parent: b1c4f952223aa208067636936a7fbc00c51eeb14 (With the removal of CELLTYPE_NOTE, IsBlank() is now always false.)
Child:  0f18a3a4bb3a4998867995f4ca8b87dacbb2ca40 (Start writing unit test for broadcaster storage. Found & fixed one bug.)
Branches: master, remotes/origin/feature/calc-group-interpreter, remotes/origin/feature/formula-core-rework, remotes/origin/feature/gengal, remotes/origin/master
Follows: libreoffice-4-0-branch-point
Precedes: 

    Adjust for API change in mdds 0.8.0.
    
    The return value of search_tree() in flat_segment_tree has changed.


------------------- sc/source/core/data/dpfilteredcache.cxx -------------------
index 47adbbe..51bf571 100644
@@ -172,7 +172,7 @@ void ScDPFilteredCache::fillTable(
         {
             if (nRow > nEndSegment)
             {
-                if (!maShowByFilter.search_tree(nRow, bShow, NULL, &nEndSegment))
+                if (!maShowByFilter.search_tree(nRow, bShow, NULL, &nEndSegment).second)
                 {
                     OSL_FAIL("Tree search failed!");
                     continue;

--------------------- sc/source/core/data/segmenttree.cxx ---------------------
index e74b0fd..b02f164 100644
@@ -159,7 +159,7 @@ bool ScFlatSegmentsImpl<_ValueType, _ExtValueType>::getRangeData(SCCOLROW nPos,
     if (!maSegments.is_tree_valid())
         maSegments.build_tree();
 
-    if (!maSegments.search_tree(nPos, nValue, &nPos1, &nPos2))
+    if (!maSegments.search_tree(nPos, nValue, &nPos1, &nPos2).second)
         return false;
 
     rData.mnPos1 = nPos1;

--------------------- sc/source/filter/excel/colrowst.cxx ---------------------
index 53aa04b..bc43a1e 100644
@@ -208,7 +208,7 @@ void XclImpColRowSettings::Convert( SCTAB nScTab )
         if (GetColFlag(nCol, EXC_COLROW_USED))
         {
             sal_uInt16 nTmp;
-            if (maColWidths.search_tree(nCol, nTmp))
+            if (maColWidths.search_tree(nCol, nTmp).second)
                 nWidth = nTmp;
         }
 
@@ -258,7 +258,7 @@ void XclImpColRowSettings::Convert( SCTAB nScTab )
                     for (SCROW i = nPrevRow; i <= nRow - 1; ++i)
                     {
                         SCROW nLast;
-                        if (!maRowHeights.search_tree(i, nHeight, NULL, &nLast))
+                        if (!maRowHeights.search_tree(i, nHeight, NULL, &nLast).second)
                         {
                             // search failed for some reason
                             return;

---------------- sc/source/filter/xml/XMLStylesExportHelper.cxx ----------------
index b791e81..9020d38 100644
@@ -1280,7 +1280,7 @@ sal_Int32 ScRowStyles::GetStyleNameIndex(const sal_Int32 nTable, const sal_Int32
         r.build_tree();
     sal_Int32 nStyle;
     sal_Int32 nStart, nEnd;
-    if (r.search_tree(nField, nStyle, &nStart, &nEnd))
+    if (r.search_tree(nField, nStyle, &nStart, &nEnd).second)
     {
         // Cache this value for better performance.
         maCache.mnTable = nTable;
Comment 5 octoploid 2013-05-11 01:41:22 UTC
The patch above fixes the issue. Thanks.
http://cgit.freedesktop.org/libreoffice/core/patch/?id=6cbca6fc0ceee4370a962d67db362f3e22270e18
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2013-05-11 11:22:48 UTC
I restricted version dep on mdds. Otherwise we would have to conditionally apply the api change patch.