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

Bug 419505

Summary: app-text/sword-1.6.2 fails to build with gcc 4.7
Product: Gentoo Linux Reporter: Olivier Huber <oli.huber>
Component: Current packagesAssignee: Theology Herd (disbanded) <theology+disabled>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.crosswire.org/bugs/browse/API-156
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 390247    
Attachments: build.log
patch proposal

Description Olivier Huber 2012-06-03 17:49:43 UTC
Created attachment 314067 [details]
build.log

from build.log:
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/include -DUSE_AUTOTOOLS -DUNIX -Dunix -D__unix__ -DSWICU_DATA=\"/usr/lib64/sword/1.6.2_icu_49.1.1\" -D_FTPLIB_NO_COMPAT -D_ICU_ -ftemplate-depth-25 -DCURLAVAILABLE -march=native -O2 -pipe -g -O2 -c ../src/mgr/swmgr.cpp  -fPIC -DPIC -o .libs/swmgr.o
In file included from ../include/swconfig.h:29:0,
                 from ../src/mgr/swconfig.cpp:23:
../include/multimapwdef.h: In instantiation of ‘T& sword::multimapwithdefault<Key, T, Compare>::operator[](const Key&) [with Key = sword::SWBuf; T = sword::SWBuf; Compare = std::less<sword::SWBuf>]’:
../src/mgr/swconfig.cpp:155:55:   required from here
../include/multimapwdef.h:22:3: erreur: ‘find’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../include/multimapwdef.h:22:3: note: declarations in dependent base ‘std::multimap<sword::SWBuf, sword::SWBuf, std::less<sword::SWBuf>, std::allocator<std::pair<const sword::SWBuf, sword::SWBuf> > >’ are not found by unqualified lookup
../include/multimapwdef.h:22:3: note: use ‘this->find’ instead
../include/multimapwdef.h:23:4: erreur: ‘insert’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../include/multimapwdef.h:23:4: note: declarations in dependent base ‘std::multimap<sword::SWBuf, sword::SWBuf, std::less<sword::SWBuf>, std::allocator<std::pair<const sword::SWBuf, sword::SWBuf> > >’ are not found by unqualified lookup
../include/multimapwdef.h:23:4: note: use ‘this->insert’ instead
../include/multimapwdef.h:25:23: erreur: ‘find’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../include/multimapwdef.h:25:23: note: declarations in dependent base ‘std::multimap<sword::SWBuf, sword::SWBuf, std::less<sword::SWBuf>, std::allocator<std::pair<const sword::SWBuf, sword::SWBuf> > >’ are not found by unqualified lookup
../include/multimapwdef.h:25:23: note: use ‘this->find’ instead
make[1]: *** [swconfig.lo] Erreur 1
make[1]: *** Attente des tâches non terminées....
In file included from ../include/swconfig.h:29:0,
                 from ../include/swmgr.h:59,
                 from ../src/mgr/swmgr.cpp:33:
../include/multimapwdef.h: In instantiation of ‘T& sword::multimapwithdefault<Key, T, Compare>::operator[](const Key&) [with Key = sword::SWBuf; T = sword::SWBuf; Compare = std::less<sword::SWBuf>]’:
../src/mgr/swmgr.cpp:853:22:   required from here
../include/multimapwdef.h:22:3: erreur: ‘find’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../include/multimapwdef.h:22:3: note: declarations in dependent base ‘std::multimap<sword::SWBuf, sword::SWBuf, std::less<sword::SWBuf>, std::allocator<std::pair<const sword::SWBuf, sword::SWBuf> > >’ are not found by unqualified lookup
../include/multimapwdef.h:22:3: note: use ‘this->find’ instead
../include/multimapwdef.h:23:4: erreur: ‘insert’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../include/multimapwdef.h:23:4: note: declarations in dependent base ‘std::multimap<sword::SWBuf, sword::SWBuf, std::less<sword::SWBuf>, std::allocator<std::pair<const sword::SWBuf, sword::SWBuf> > >’ are not found by unqualified lookup
../include/multimapwdef.h:23:4: note: use ‘this->insert’ instead
../include/multimapwdef.h:25:23: erreur: ‘find’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../include/multimapwdef.h:25:23: note: declarations in dependent base ‘std::multimap<sword::SWBuf, sword::SWBuf, std::less<sword::SWBuf>, std::allocator<std::pair<const sword::SWBuf, sword::SWBuf> > >’ are not found by unqualified lookup
../include/multimapwdef.h:25:23: note: use ‘this->find’ instead

emerge --info sword
Portage 2.2.0_alpha109 (default/linux/amd64/10.0/developer, gcc-4.7.0, glibc-2.15-r1, 3.1.6-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.1.6-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Sat, 02 Jun 2012 13:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.7 [enabled]
app-shells/bash:          4.2_p29
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.8-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r1, 1.9.6-r3, 1.11.5, 1.12.1
sys-devel/binutils:       2.22
sys-devel/gcc:            4.6.2, 4.7.0
sys-devel/gcc-config:     1.7.2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.15-r1
Repositories: gentoo g-octave sage-on-gentoo kde science x11 bibletime xhub
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /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="-march=native -O2 -pipe -g"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n "
FEATURES="assume-digests binpkg-logs ccache collision-protect distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms sign splitdebug strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox xattr"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/"
LANG="fr_FR.utf-8"
LC_ALL="fr_FR.utf-8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common"
LINGUAS="fr"
MAKEOPTS="-j3"
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/g-octave /usr/local/overlays/sage-on-gentoo /usr/local/overlays/kde /usr/local/overlays/sci /usr/local/overlays/x11 /usr/local/overlays/bibletime /usr/local/overlays/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aacplus aacs abook acl acpi adns alsa amd64 amr amrnb amrwb apng ares aspell ass avconv bash-completion berkdb bluetooth bluray boehm-gc boost brltty bzip2 cairo caps cblas cdaudio cdda cddb cdio cdparanoia cdr cgroup cli clucene consolekit corefonts cracklib crypt ctypes-python cups curl custom-cxxflags custom-optimization cvs cxx daap dbus declarative detex device-mapper dia dirac djvu dns dot dri dssi dtmf dts dv dvb dvd dvdnav dvdr dvipdfm egl emboss enca encode epspdf exif expat extensions extra extras faac faad fam fbcondecor ffmpeg fftw firefox flac fontconfig fontforge fortran frei0r ft2232 ftd2xx ftdi ftp fts3 fuse g3dvl gallium gbm gcrypt gd gdbm geoip gif gimp git gles gles1 gles2 glitz gmp gnuplot gnutls gpg gpgme gpm graphics graphite graphviz gs gsm gstreamer gtk gtk3 h323 hdri humanities hyperestraier ical iconv icu id3tag idn imagemagick imaging imap inotify iproute2 ipv6 ipython jabber jack jadetex jbig jingle jpeg jpeg2k kde kpathsea kqemu kvm ladspa lame lapack laptop lash lastfm latex latex3 lcms ldap lensfun libass libftdi libgcrypt libkms libnotify libproxy libsamplerate libusb-0 libv4l libv4l2 libwww live llvm llvm-gcc lto lua luatex lv2 lvm lzma lzo mad mathml matplotlib matroska mbox melt messenger minizip mjpeg mktemp mms mmx mng modplug modules mongodb mp3 mp4 mpc mpeg mplayer msn mtp mudflap multilib musepack music mxdatetime ncurses nemesi netlink nettle nls nptl nsplugin nspluginwrapper nss ntfsprogs ntl ntlm ntp numpy ocaml ocamlopt ocr octave ogg omega openexr opengl openldap openmp openntpd openssl openvg otr pam pango pari parport parport-giveio passwdqc pcap pch pcre pcre16 pda pdf perl pgm phonon pipechan pkcs11 plotutils png policykit pop postgres postproc postscript ppds pppd presto projectm pstricks publishers pulseaudio python qalculate qemu qemu-ifup qt3support qt4 quicktime qwt rar raw readline rnca rss rtmp rtsp ruby sage sasl schroedinger science script sdl sdl-image secure-delete semantic-desktop sensord session shout sidebar sip smi smime smp sms smtp sna sndfile snmp socks speex spell sqlite sqlite3 sse sse2 sse3 sse4_1 ssh ssl ssse3 startup-notification stl stream strong-optimization subversion svg syslog system-sqlite t1lib taglib tcpd teletext text tga theora threads thumbnail tiff timidity tokyocabinet tools toplevel tordns truetype twitter udev udev-acl udisks umfpack unac unicode unlock-notify upnp upower usb usbredir utils v4l v4l2 v8 vaapi vcd vcdinfo vcdx vim vim-syntax virtualbox vorbis vpx wav wavpack wayland webdav webgl webkit wifi winpopup wmf wxwidgets x264 xattr xcb xcomposite xetex xine xml xorg xosd xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="hda-intel" 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 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" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="vesa intel v4l fbdev" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

app-text/sword-1.6.2 was built with the following:
USE="curl icu (multilib) test -debug -doc -static-libs"
CFLAGS="-march=native -O2 -pipe -g -O2"
CXXFLAGS="-march=native -O2 -pipe -g -O2"
Comment 1 Olivier Huber 2012-06-03 17:52:09 UTC
Created attachment 314069 [details]
patch proposal

With this patch, sword compiles and pass all the tests it previously passed (see bug 313207 for failing tests)
Comment 2 David Kredba 2012-06-03 18:23:45 UTC
Add please: Blocks: gcc-4.7.

Thank you.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-06-16 21:03:56 UTC
Confirmed and patch LGTM.
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2012-09-16 19:00:32 UTC
Fixed.