Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519248 - dev-libs/Ice-3.5.1 - MapI.cpp:1729:48: error: call of overloaded 'set_bt_compare(int (*)(DB*, const DBT*, const DBT*))' is ambiguous
Summary: dev-libs/Ice-3.5.1 - MapI.cpp:1729:48: error: call of overloaded 'set_bt_comp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-06 20:02 UTC by Jonathan Vasquez (RETIRED)
Modified: 2014-09-08 09:46 UTC (History)
5 users (show)

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


Attachments
build.log (file_519248.txt,64.39 KB, text/plain)
2014-08-06 20:03 UTC, Jonathan Vasquez (RETIRED)
Details
emerge info for core2 duo Ice-3.5.1 (iceemerg.inf,4.95 KB, text/plain)
2014-08-08 11:29 UTC, Geoff Madden
Details
build log for core2 duo (build.log,61.25 KB, text/x-log)
2014-08-08 11:31 UTC, Geoff Madden
Details
new chroot build.log (file_519248.txt,65.83 KB, text/plain)
2014-08-10 00:29 UTC, Jonathan Vasquez (RETIRED)
Details
new chroot emerge --info (file_519248.txt,4.38 KB, text/plain)
2014-08-10 00:30 UTC, Jonathan Vasquez (RETIRED)
Details
Ice-3.5.1-r1.ebuild.diff (Ice-3.5.1-r1.ebuild.diff,1.16 KB, patch)
2014-08-19 18:02 UTC, Ștefan Talpalaru
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Vasquez (RETIRED) gentoo-dev 2014-08-06 20:02:54 UTC
Hello all,

So today I ran an emerge --sync on my server and then a --depclean, this prompted me to do a @preserved-rebuild in which dev-libs/Ice-3.5.1 was pulled in to be rebuilt for my sys-libs/db to have the most up-to-date links.

However, during the compile for Ice, it failed. I looked in the build.log and saw this:

MapI.cpp:1729:48: error: call of overloaded 'set_bt_compare(int (*)(DB*, const DBT*, const DBT*))' is ambiguous
         _db->set_bt_compare(&customIndexCompare);
...............
../../config/Make.rules:339: recipe for target 'MapI.o' failed
make[2]: *** [MapI.o] Error 1
make[2]: *** Waiting for unfinished jobs....

this is the top most error in the build.log and seems like it is an upstream error if anything..

Reproducible: Always

Steps to Reproduce:
1. update your portage tree to this point in time Wed Aug  6 13:16:01 EDT 2014 (which provides the appropriate Ice version)
2. emerge --depclean
3. emerge @preserved-rebuild

Ice should fail to compile


Expected Results:  
It should build..

Portage 2.2.11-r1 (python 2.7.8-final-0, default/linux/amd64/13.0, gcc-4.8.3, glibc-2.19-r1, 3.14.14-KS.01 x86_64)
=================================================================
System uname: Linux-3.14.14-KS.01-x86_64-AMD_FX-tm-8120_Eight-Core_Processor-with-gentoo-2.2
KiB Mem:     8115552 total,   1426488 free
KiB Swap:    4192188 total,   4190596 free
Timestamp of tree: Wed, 06 Aug 2014 16:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p47
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.1
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo bliss-overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg 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 userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.rit.edu/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/bliss-overlay"
SYNC="rsync://xyinn.org/gentoo-portage"
USE="acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules multilib ncurses nls nptl openmp pam pcre readline session sse sse2 ssl tcpd unicode 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" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel nouveau virtualbox" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jonathan Vasquez (RETIRED) gentoo-dev 2014-08-06 20:03:23 UTC
Created attachment 382408 [details]
build.log
Comment 2 Jonathan Vasquez (RETIRED) gentoo-dev 2014-08-06 21:22:46 UTC
I forgot to mention in the "Steps to reproduce" that you need to update your system (emerge -uDNav @world --with-bdeps=y) and after that run the emerge --depclean.
Comment 3 Geoff Madden 2014-08-08 11:29:26 UTC
Created attachment 382522 [details]
emerge info for core2 duo Ice-3.5.1
Comment 4 Geoff Madden 2014-08-08 11:31:08 UTC
Created attachment 382524 [details]
build log for core2 duo
Comment 5 Geoff Madden 2014-08-08 11:34:39 UTC
as you can see by my build log my error is different,I ve added java & php,but the result is the same
incidentally my java-vm =icedtea, though I actually emerged oracle-jdk-bin 8.
Geoff
Comment 6 Jonathan Vasquez (RETIRED) gentoo-dev 2014-08-10 00:28:53 UTC
Just did a fresh rebuild inside a chroot using the stage3-amd64-20140731.tar.bz2 file (digest was fine before starting to use it so no corrupted files) and rebuilt my entire /var/lib/portage/world and using almost identical package.use and make.conf. The following error occurs which is different than the original one but identical to Geoffs:

MapDb.cpp:138:46: error: call of overloaded 'set_bt_compare(int (*)(DB*, const DBT*, const DBT*))' is ambiguous
                 set_bt_compare(&customCompare);

Now portage doesn't say that I need to rebuild this file (no @preserve-rebuild messages), and it is also installed from wherever it came from before:

octopus / # equery y Ice
Keywords for dev-libs/Ice:
         |                             | u   |
         | a a   a           p     s   | n   |
         | l m   r h i m m   p s   p   | u s | r
         | p d a m p a 6 i p c 3   a x | s l | e
         | h 6 r 6 p 6 8 p p 6 9 s r 8 | e o | p
         | a 4 m 4 a 4 k s c 4 0 h c 6 | d t | o
---------+-----------------------------+-----+-------
[I]3.5.1 | o + ~ o o ~ o o o o o o o + | o 0 | gentoo

but explicitly doing a "emerge -1 Ice" causes the above to happen. I've attached a build.log and make.conf for the new chroot attempt.
Comment 7 Jonathan Vasquez (RETIRED) gentoo-dev 2014-08-10 00:29:28 UTC
Created attachment 382608 [details]
new chroot build.log
Comment 8 Jonathan Vasquez (RETIRED) gentoo-dev 2014-08-10 00:30:20 UTC
Created attachment 382610 [details]
new chroot emerge --info
Comment 9 Benjamin Southall 2014-08-15 05:48:58 UTC
This a bumped version of https://bugs.gentoo.org/show_bug.cgi?id=476378 , and hence is a duplicate.
Comment 10 hangglider 2014-08-15 23:19:01 UTC
exactly the same here (amd64, core2).
Comment 11 Benjamin Southall 2014-08-16 20:55:18 UTC
As a side note, in order to get this build, I had to modify the ebuild, in order to depend on sys-libs/db:5.3[cxx] and to explicitly set the include dir to use 5.3 instead of 6.0 and to link to the right slot. E.g

  MAKE_RULES="${MAKE_RULES} DB_FLAGS=-I$(db_includedir 5.3 )"
    sed -i \
        -e "s|g++|$(tc-getCXX)|" \
        -e "s|\(CFLAGS[[:space:]]*=\)|\1 ${CFLAGS}|" \
        -e "s|\(CXXFLAGS[[:space:]]*=\)|\1 ${CXXFLAGS}|" \
        -e "s|\(LDFLAGS[[:space:]]*=\)|\1 ${LDFLAGS}|" \
        -e "s|\(DB_LIBS[[:space:]]*=\) \-ldb_cxx|\1 -ldb_cxx-$(db_findver sys-libs/db:5.3 )|" \
        cpp/config/Make.rules{,.Linux} py/config/Make.rules || die "sed failed"
Comment 12 hangglider 2014-08-18 10:44:58 UTC
can confirm the patch works here. Many thanks!
Comment 13 Ștefan Talpalaru 2014-08-19 18:02:47 UTC
Created attachment 383138 [details, diff]
Ice-3.5.1-r1.ebuild.diff

ebuild diff to help the fix reach the holly overlay sometimes this year
Comment 14 Michael Mair-Keimberger (iamnr3) 2014-08-29 09:27:20 UTC
I run into the same problem today. Attached ebuild diff works. Would be nice if this could be included in portage :)
Comment 15 Sergey Popov gentoo-dev 2014-09-06 11:07:24 UTC
+  06 Sep 2014; Sergey Popov <pinkbyte@gentoo.org> Ice-3.5.1.ebuild:
+  Make dependency on dev-libs/db more strict, forbid linking to incompatible
+  versions of it, wrt bug #519248. Thanks to Jonathan Vasquez <jvasquez1011 AT
+  gmail.com> for discovering this issue and Stefan Talpalaru <stefantalpalaru
+  AT yahoo.com> for draft of proposed solution
Comment 16 Geoff Madden 2014-09-08 07:14:12 UTC
I had the same problem crop up again,with the latest sync,on a system reinstall I applied the patch as described on the initial install which appeared to work.
When installing gnuradio,the same hassle arised,with Ice not building.
I looked at the ebuild and noted the lack of db6,did an equery search,and noted I had db6 installed so I included this in the ebuild,ran ebuild manifest,and Ice compiled up just fine.
I think the resolved fixed,may have been a bit premature,fella's
Comment 17 Sergey Popov gentoo-dev 2014-09-08 09:46:57 UTC
(In reply to Geoff Madden from comment #16)
> I had the same problem crop up again,with the latest sync,on a system
> reinstall I applied the patch as described on the initial install which
> appeared to work.
> When installing gnuradio,the same hassle arised,with Ice not building.
> I looked at the ebuild and noted the lack of db6,did an equery search,and
> noted I had db6 installed so I included this in the ebuild,ran ebuild
> manifest,and Ice compiled up just fine.
> I think the resolved fixed,may have been a bit premature,fella's

I have tested current Ice ebuild with and without installed db:6.0 - it builds fine, so you probably should check if your ebuild of Ice is correctly synced with this one[1]

[1] - http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/Ice/Ice-3.5.1.ebuild?revision=1.10