libreoffice fail to build with boost-1.48. The problem exist with at least libreoffice 3.5.2.2 and 3.5.4.2-r1. If I switch back to 1.46 with eselect the bad part will compile (have not tested the whole build). I have also tried both with gcc 4.4.5 and 4.5.3. By following the libreoffice fail instructions, the problem was tracked down to libreoffice-core-3.5.4.2/l10ntools/inc/tagtest.hxx and some copy constructor problems with lines like: tagtest.cxx: In member function ‘void SimpleParser::Parse(String)’: tagtest.cxx:671: error: no match for ‘operator=’ in ‘((SimpleParser*)this)->SimpleParser::aNextTag = TokenInfo(0, 65535)’ tagtest.hxx:93: note: candidates are: void TokenInfo::operator=(TokenInfo&) By adding a copy constructor for void TokenInfo::operator=(const TokenInfo&), th e problem disappears (note the const, which is what do the trick). See attached patch. I still need to make a full compile to see if there is any more problems, but thought I would post this right away so other people could make use of the info. I will follow up when I get around making a full build, but i may not be today. See also http://forums.gentoo.org/viewtopic-t-917924-start-0.html and http://comments.gmane.org/gmane.comp.documentfoundation.libreoffice.devel/28881 Reproducible: Always Steps to Reproduce: 1. eselect boost set boost-1.48/default 2. emerge -v1 libreoffice emerge --info Portage 2.1.10.49 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.5, glibc-2.14.1-r3, 3.2.12-gentoo-sax-r2 x86_64) ================================================================= System uname: Linux-3.2.12-gentoo-sax-r2-x86_64-AMD_Athlon-tm-_II_X2_250_Processor-with-gentoo-2.1 Timestamp of tree: Thu, 31 May 2012 23:15:01 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.2_p20 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.6.8, 2.7.3-r1, 3.2.3 dev-util/cmake: 2.8.7-r5 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1-r1 sys-apps/openrc: 0.9.8.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.21.1-r1 sys-devel/gcc: 4.4.5, 4.5.3-r2 sys-devel/gcc-config: 1.5-r2 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r1 sys-kernel/linux-headers: 3.1 (virtual/os-headers) sys-libs/glibc: 2.14.1-r3 Repositories: gentoo x-portage nx bitcoin ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -msse3 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /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/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/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=athlon64 -msse3 -O2 -pipe" DISTDIR="/mnt/exports/distfiles" FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo " LANG="en_DK.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j5" PKGDIR="/usr/local/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="/usr/local/portage /usr/local/layman/nx /usr/local/layman/bitcoin" SYNC="rsync://pigsinspace/gentoo-portage" USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 amr apache2 apng ares audiofile avahi bash-completion berkdb blender-game bluetooth branding btrfs bzip2 cairo calendar caps cdda cddb cdio cdr cli consolekit cracklib crypt cscope css cups cvs cvsgraph cxx dbus declarative demosaic device-mapper dmx doc dri dts dv dvb dvd dvdr emboss encode enscript exif expat expoblending faad fam fame ffmpeg fftw firefox flac fmod fontconfig foomaticdb fortran ftdi gdbm gif gimp git glut gphoto2 gpm gtk gtkhtml gutenprint httpd hyperestraier iconv icu idn imagemagick imlib inotify ipv6 jack jadetex java jce joystick jpeg jpeg2k kde kipi kpathsea kvm lastfm latex lcms ldap libnotify libsamplerate lirc live lm_sensors logitech-mouse logrotate lvm lzma lzo mad maps matroska mdnsresponder-compat mercurial mikmod minizip mjpeg mmap mmx mmxext mng modules mono mp3 mp3tunes mp4 mpeg mplayer mtp mudflap multilib mysql mythtv nas ncurses net netboot netjack network network-cron nfs nls nptl nsplugin nxclient offensive ogg openal openexr opengl openmp pam pango parted pci pcre pda pdf pdo phonon php plasma png policykit posix ppds pppd pulseaudio python qemu qt3support qt4 quicktime rar rdesktop readline redeyes remote render romio rtc rtmp samba scanner schroedinger sdl semantic-desktop session shout sift sip slp smp sndfile snmp speex spell spyder2 sse sse2 sse3 ssl startup-notification stream subtitles subversion svg swat tcpd theora threads threadsafe tiff timidity tor tordns transcode transmitter truetype udev udisks unicode upnp upower usb v4l v4l2 vaapi vcd vde vhosts video vlm vmware_guest_linux vmware_guest_windows vnc vorbis vpx wav wma wmf wxwidgets x264 xcb xcomposite xft xine xinerama xiph xml xmp xorg xosd xrandr xscreensaver xulrunner xv xvid xvmc yv12 zlib" 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="braindump flow karbon kexi krita sheets stage words" CAMERAS="*" 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 aiptek" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="*" QEMU_USER_TARGETS="*" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="vesa fglrx" 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
Created attachment 313817 [details, diff] Fix of tagtest.cxx
Hello, this is caused by unfortunate interaction between new boost and old gcc (by old i mean <4.5). Even tho your patch hide the issue the actual package that should be fixed is boost. I will rather bump the gcc requirement on the libreoffice package to be gcc-4.5 which is in stable for quite long time.