Summary: | app-office/openoffice-3.1.1 fails to build due to undefined references to `boost::throw_exception(std::exception const&)' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever> |
Component: | New packages | Assignee: | Gentoo Office Team <office> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | caster, finkandreas, jackdachef, jokey, md401, the.aidar, theli.ua |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 282164 | ||
Attachments: |
app-office:openoffice-3.1.0:20090523-002046.log
openoffice-3.1.0.ebuild.patch fix boost undefined references cp patch to hotfixes directory |
Description
Arfrever Frehtes Taifersar Arahesis (RETIRED)
2009-05-23 14:45:05 UTC
Created attachment 192202 [details]
app-office:openoffice-3.1.0:20090523-002046.log
Portage 13625-svn (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.29-tuxonice-r2 x86_64) ================================================================= System uname: Linux-2.6.29 Timestamp of tree: Unknown ccache version 2.4 [disabled] app-shells/bash: 4.0_p24 dev-java/java-config: 2.1.8 dev-lang/python: 2.5.4-r2, 2.6.2, 3.0.1 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.4 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.3-r2 sys-apps/sandbox: 1.9 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19.51.0.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.29 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -pipe -O1 -fno-ident -Wno-pointer-sign" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=core2 -pipe -O1 -fno-ident -fvisibility-inlines-hidden" DISTDIR="/home/distfiles" FEATURES="assume-digests buildsyspkg collision-protect distlocks metadata-transfer multilib-strict parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl http://gentoo.po.opole.pl http://gentoo.ynet.sk/pub http://mirror.gentoo.no http://mirrors.evolva.ro/gentoo http://ftp.du.se/pub/os/gentoo http://ftp.linux.ee/pub/gentoo/distfiles ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo http://ftp.lug.ro/gentoo http://src.gentoo.pl" LANG="pl_PL.UTF-8" LC_ALL="pl_PL.UTF-8" LDFLAGS="-Wl,-O1,--as-needed,--gc-sections,--hash-style=gnu,--sort-common" LINGUAS="pl en la lt" MAKEOPTS="-j3" PKGDIR="/usr/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--prune-empty-dirs" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/home/gentoo-x86" PORTDIR_OVERLAY="/usr/repositories/local /usr/repositories/python-experimental /usr/repositories/toolchain" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 apache2 bash-completion berkdb bzip2 cairo caps cddb cdparanoia cdr cracklib crypt cscope ctype cups curl curlwrappers custom-cxxflags cxx dbus dga directfb dri dts dvb dvd dvdr dvdread emboss encode enscript exif expat fam fbcon ffmpeg firefox flac foomaticdb ftp gd gdbm ggi gif gimp glut gmp gnutls gpm graphviz gstreamer gtk guile hal hardened htmlhandbook iconv icu idn imagemagick imlib ipv6 java java5 java6 javascript jbig jpeg jpeg2k kde lame lash lcms ldap libcaca lm_sensors lzo mad matroska matrox memlimit mhash mime mmap mmx mng mp3 mpeg mpi mplayer multilib musepack ncurses netcdf nls nptl nsplugin odbc ogg openal openexr opengl openmp pam pch pcntl pcre pda pdf perl png portaudio posix ppds python qt3 qt4 quicktime rdesktop readline ruby sasl sdl session shorten simplexml slang slp smp sndfile soap sockets speex spell sqlite sqlite3 sse sse2 ssl ssse3 subversion svg symlink szip tcl tcpd theora threads tiff tk truetype unicode usb vcd vim-syntax vorbis wavpack wmf x264 xattr xcb xcomposite xft xine xml xmlrpc xpm xscreensaver xsl xulrunner xv xvid zlib" ALSA_CARDS="hda-intel virmidi" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="access_compat actions alias auth_basic authn_anon authn_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio lua mime mime_magic negotiation rewrite sed serf session session_crypto setenvif speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="pl en la lt" USERLAND="GNU" VIDEO_CARDS="fbdev intel vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS $ emerge -ptv openoffice These are the packages that would be merged, in reverse order: Calculating dependencies... done! [ebuild U ] app-office/openoffice-3.1.0 [3.0.1] USE="bash-completion%* cups dbus gstreamer gtk java ldap nsplugin opengl pam -binfilter -debug -eds -gnome -kde -mono -odk -templates" ELIBC="(-FreeBSD)" LINGUAS="en lt pl -af -ar -as_IN -be_BY -bg -bn -br -brx% -bs -ca -cs -cy -da -de -dgo% -dz -el -en_GB -en_US -en_ZA -eo -es -et -eu% -fa -fi -fr -ga -gl -gu -he -hi_IN -hr -hu -id% -it -ja -ka -kk -km -kn_IN% -ko -kok% -ks% -ku -mai% -mk -ml_IN -mn -mni% -mr_IN -nb -ne -nl -nn -nr -ns -oc% -or_IN -pa_IN -pt -pt_BR -ru -rw -sa_IN% -sat% -sd% -sh -sk -sl -sr -ss -st -sw_TZ -ta -ta_IN% -te_IN -tg -th -ti_ER -tn -tr -ts -uk -ur_IN -uz% -ve -vi -xh -zh_CN -zh_TW -zu (-lv%) (-sv%)" 0 kB Total: 1 package (1 upgrade), Size of downloads: 0 kB $ emerge -ptv boost These are the packages that would be merged, in reverse order: Calculating dependencies... done! [ebuild R ] dev-libs/boost-1.37.0-r1 USE="eselect expat icu mpi python -debug -doc -tools" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB $ eselect boost show Current boost version: boost-1_37 Did you try a revdep-rebuild? (In reply to comment #4) > Did you try a revdep-rebuild? revdep-rebuild doesn't find any problems. Just another wild shot: Which xulrunner-version is this with? dunno if this also has the same reason... checking which boost to use... external checking boost/shared_ptr.hpp usability... no checking boost/shared_ptr.hpp presence... no checking for boost/shared_ptr.hpp... no configure: error: boost/shared_ptr.hpp not found. install boost make: *** [stamp/build] Error 1 [ebuild R ] dev-libs/boost-1.37.0-r1 USE="eselect python -debug -doc -expat -icu -mpi -tools" [ebuild R ] net-libs/xulrunner-1.9.1_beta4-r2 USE="dbus gnome python startup-notification -custom-optimization -debug -java -qt" symlinking /usr/include/boost-1_37/boost to /usr/include/boost fixed it for me although it's more a bad hack than a real solution (In reply to comment #7) > symlinking /usr/include/boost-1_37/boost to /usr/include/boost > > fixed it for me although it's more a bad hack than a real solution This is what eselect boost does, right? Not nice :/ (In reply to comment #6) > Just another wild shot: Which xulrunner-version is this with? $ emerge -ptv xulrunner These are the packages that would be merged, in reverse order: Calculating dependencies... done! [ebuild R ] net-libs/xulrunner-1.9.0.11 USE="dbus java -custom-optimization -gnome -startup-notification" ELIBC="(-FreeBSD)" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB Created attachment 195540 [details, diff]
openoffice-3.1.0.ebuild.patch
This workaround allowed me to build app-office/openoffice-3.1.0.
I suspect that build system added -fno-exceptions during compilation of sc/source/core/tool/detfunc.cxx which caused BOOST_NO_EXCEPTIONS being defined.
the OOO 3.1.0 is broken after I got FF3.5 with corresponding xulrunner. can't emerge it as well, can't revdep rebuild it as well. Here is what it says : In file included from ../inc/plugin/unx/plugcon.hxx:105, from ../inc/plugin/unx/sysplug.hxx:35, from ../inc/plugin/impl.hxx:85, from /var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/extensions/source/plugin/base/service.cxx:38: /usr/include/xulrunner-1.9.1/stable/npapi.h:155: error: redefinition of 'struct _NPP' /var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/solver/310/unxlngx6.pro/inc/npsdk/npapi.h:210: error: previous definition of 'struct _NPP' is there anyone doing something on this ? (In reply to comment #11) You reproduce completely different bug. Same bug on my laptop (full ~amd64) But I do not think that the workaround is the right way, since the whole diff is overwritten. I changed this file: ooo/build/ooo310-m11/sc/source/core/tool/makefile.mk where I added the detfunc.obj to the EXCEPTIONSFILES variable. Created attachment 203484 [details]
fix boost undefined references
This should be added to all 3.x branches of openoffice.
Created attachment 203486 [details]
cp patch to hotfixes directory
For those who need assistance putting patch in to play.
(In reply to comment #15) > Created an attachment (id=203486) [edit] > cp patch to hotfixes directory > > For those who need assistance putting patch in to play. > I've added this to 3.1.1 now. All the others will have to go because of security problems anyway. Thanks for hunting this down! Closing. Actually close the bug... I'm confirming that it's fixed :) . Re ChangeLog entry: 08 Sep 2009; Andreas Proschofsky <suka@gentoo.org> openoffice-3.1.1.ebuild, +files/boost-undefined-references.diff: Fix build problem in relation to boost, thanks to Jory A. Pratt <anarchy@gentoo.org> for hunting it down. Closes bug #270947 The solution was actually found by Andreas Fink <finkandreas@web.de> in comment #13. |