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

Bug 355185

Summary: app-office/libreoffice-3.3.0: building xmlsecurity with nsplugin use flag
Product: Gentoo Linux Reporter: Nuno <>
Component: Current packagesAssignee: Gentoo Office Team <office>
Severity: major CC: Adrian.Bassett, michele, sean-gentoo
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description Nuno 2011-02-16 14:32:23 UTC
libreoffice fails to build on the xmlsecutiry module when the nsplugin use flag is active.

Reproducible: Always

Steps to Reproduce:
1. emerge -av libreoffice

Actual Results:  
End of ebuild output:

        Oh dear - something failed during the build - sorry !
  For more help with debugging build errors, please see the section in:

  internal build errors:

ERROR: error 65280 occurred while making /var/tmp/portage/app-office/libreoffice-3.3.0/work/libreoffice-build-

 it seems that the error is inside 'xmlsecurity', please re-run build
 inside this module to isolate the error and/or test your fix:

cd /var/tmp/portage/app-office/libreoffice-3.3.0/work/libreoffice-build-
source ./
cd xmlsecurity

when the problem is isolated and fixed exit and re-run 'make' from the top-level
sometimes (sadly) it is necessary to rm -Rf in a module.
make: *** [stamp/build] Error 1

Actual compiler error (truncated for brevity):

Entering /var/tmp/portage/app-office/libreoffice-3.3.0/work/libreoffice-build-

Entering /var/tmp/portage/app-office/libreoffice-3.3.0/work/libreoffice-build-

Compiling: xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.4.4/include/g++-v4/string:41,
                 from /usr/include/unicode/std_string.h:39,
                 from /usr/include/unicode/unistr.h:31,
                 from /usr/include/unicode/strenum.h:14,
                 from /usr/include/unicode/uenum.h:24,
                 from /usr/include/unicode/ucnv.h:51,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:807,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1248,
                 from /var/tmp/portage/app-office/libreoffice-3.3.0/work/libreoffice-build-,
                 from /var/tmp/portage/app-office/libreoffice-3.3.0/work/libreoffice-build-,
                 from /var/tmp/portage/app-office/libreoffice-3.3.0/work/libreoffice-build-
/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/include/g++-v4/bits/stringfwd.h:44: error: template with C linkage
/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/include/g++-v4/bits/stringfwd.h:47: error: template with C linkage
/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/include/g++-v4/bits/stringfwd.h:50: error: template with C linkage
/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/include/g++-v4/bits/stringfwd.h:54: error: template specialization with C linkage
/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/include/g++-v4/bits/stringfwd.h:59: error: template specialization with C linkage

Expected Results:  
libreoffice builds with xmlsecutiry.

Disabling the nsplugin use flag will result in a successful build but the xmlsecutiry is not built and the digital signature features will not work.

emerge --info:
Portage (default/linux/x86/10.0/desktop/kde, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-gentoo-r5 i686)
System uname: Linux-2.6.36-gentoo-r5-i686-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-gentoo-1.12.14
Timestamp of tree: Wed, 16 Feb 2011 08:00:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers: (sys-kernel/linux-headers)
ACCEPT_LICENSE="* -@EULA PUEL skype-eula dlj-1.1 sun-bcla-java-vm RTCW-ETEULA LOKI-EULA googleearth AdobeFlash-10.1 IBM-J1.5 IBM-J1.6"
CFLAGS="-O2 -pipe -march=native"
CONFIG_PROTECT="/etc /usr/lib/fax /usr/share/config /usr/share/openvpn/easy-rsa /var/lib/hsqldb /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /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"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB en_US pt pt_PT"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/portage/crossdev /usr/local/portage/nsousa"
USE="X X509 a52 aac aalib accessibility acl acpi addns addressbook ads aesicm aio akonadi alsa amr ao ares assistant atm attrib audiofile authdaemond autoipd autotrace avahi bash-completion battery bazaar berkdb binary-drivers binfilter bittorrent blender-game bluetooth bookmarks boost branding bs2b bsf bzip2 c3p0 cairo caps cdda cddax cdio cdparanoia cdr cgi chm clamdtop cleartype cli config-log connection-sharing consolekit context contrib cracklib crypt cscope ctrlmenu ctype cue cups curl cvs cwiid cxx darcs dbus dcc_video derby desktopglobe detex device-mapper devil dga dhcp dia dirac disk-partition diskio djvu dmraid doc docbook dot dri dssi dtmf dts dv dvb dvd dvdr dvi2tty dvipdfm eap-sim eap-tls ebook editor elf emacs embedded emboss emf encode epoll examples exif expat extensions extra extras faac faad fam fastcgi fat fax ffmpeg fftw finger firefox firefox3 fits flac fontconfig foomaticdb fortran fortune ftp fts3 fuse games gcj gcrypt gd gdal gdbm gdu geoip geolocation geos gif gimp git gjdoc glitz gme gmm gmp gnuplot gnutls gopher gphoto2 gpm graphics graphviz gs gsm gtk gzip-el h224 h281 h323 hal handbook hdaps hddtemp hdf5 helpers hfs highlight hipe hpijs hpn html http httpd humanities iax iconv icotools icu id3tag idn ieee1394 ilbc imagemagick imlib inkjar inotify ipv6 irc ivr jabber jack jadetex jai java java6 javamail javascript jbig jce jfs jingle jmf jms jmx joystick jpeg jpeg2k json kate kde kdrive kerberos kontact kpathsea kpoll kvm ladspa lame laptop lash latex latex3 lcms ldap libcaca libnl libnotify libproxy libsamplerate libssh2 libv4l2 lid lightning live log4j lua lv2 lzma mad mail maps matroska mbrola mdadm mdnsresponder-compat melt mercurial messages midi mikmod milter mjpeg mmap mmx mmxext mng modules mp3 mp4 mpd mpeg mpg123 mplayer msn mtp mudflap multimedia music musicbrainz mysql mysqli ncurses netcdf network network-cron nio2 nls nntp nptl nptlonly ntfs ntp nvidia odbc odbcmanual odk offensive ogdi ogg okular omega openal openexr opengl openmp openntpd oracle otr overlays pam pango parse-clocks pcmcia pcre pdf pdo perl phonon php plasma plotutils pnat png pnm policykit portaudio postgres postscript ppds ppp pppd proj projectm pstricks publishers pvr python qalculate qemu-ifup qml qos qt-webkit qt3support qt4 qthelp qtscript quicktime quota qwt radio radius rar raw rdesktop rdp rdpusb readline reiser4 reiserfs replytolist reports resolvconf reviewboard rle rrdcgi rrdtool rss rtf rtmp rtsp ruby samba sasl sbc scanner science scim script sctp sdk sdl secure-delete semantic-desktop serial server session shmvideo simplexml sip sipim slang smbkrb5passwd smp sndfile soap socks socks5 solver sound source sparse speex spell sqlite sqlite3 srtp sse sse2 sse3 ssl ssse3 startup-notification stream subversion svg swig sysfs system-sqlite system-v8 systemtap taglib tcpd telnet templates test-framework test-programs tex4ht theora thinkpad threads threadsafe thumbnail tiff timidity tint2conf tk tokenizer tonal toolkit-scroll-bars tools tor tordns truetype tslib tts udev unicode unlock-notify usb utils v4l v4l2 v8 vaapi vcd vcdinfo vcdx vde vdpau verse video videos vim-pager vim-syntax vlm vnc vorbis vpx vxml wav wavpack webdav wicd wifi win32codecs winbind windeco winetools winetriks winpopup wmf wpd wps x11vnc x264 x86 xanim xattr xcap xcb xcomposite xetex xext xfs xft xindy xine xinerama xinetd xml xmlrpc xorg xpm xrandr xscreensaver xterm-color xulrunner xv xvid xvmc yahoo yv12 zeroconf zip zlib zrtp" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="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" 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 keyboard mouse joystick synaptics aiptek acecad wacom penmount tslib" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB en_US pt pt_PT" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev vesa nv v4l" 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" 
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-02-16 16:16:30 UTC
C.f bug #354911.
Comment 2 Nuno 2011-02-16 21:12:58 UTC
Downgrading libxml2 from 2.7.8 yo 2.7.7 and libreoffice builds perfectly with the nsplugin use flag. Upgraded libxml2 back to 2.7.8 and libreoffice is still working.

It is a lame solution but it works.
Comment 3 Hanno Zysik (geki) 2011-02-17 08:06:48 UTC
If it works with a downgrade of libxml2 I think the culprit is its useflag "icu", which the reporter has enabled.

Well, at least AFAIS from the bugreport about ICU support in libxml2, that is for the Google/Chromium folks and not well tested (yet).

I will test it these days.
Comment 4 Andreas Proschofsky (RETIRED) gentoo-dev 2011-02-17 08:15:07 UTC
@Hanno: Sure the icu-use flag is the culprit, that's out of question, see bug #354911 for more info (and a patch)
Comment 5 Andreas Proschofsky (RETIRED) gentoo-dev 2011-02-17 10:28:17 UTC
This is fixed now, see bug #354911 for the patch. Closing
Comment 6 Nuno 2011-02-18 18:57:10 UTC
I can confirm that it is fixed, both on x86 an amd64.
Thanks for the quick solution.

Should I mark it as verified and close it?
Comment 7 Andreas Proschofsky (RETIRED) gentoo-dev 2011-02-21 07:07:51 UTC
(In reply to comment #6)
> I can confirm that it is fixed, both on x86 an amd64.
> Thanks for the quick solution.
> Should I mark it as verified and close it?
 yep, go ahead, thanks!