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

Bug 270947

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 packagesAssignee: 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) gentoo-dev 2009-05-23 14:45:05 UTC
Making: ../unxlngx6.pro/lib/libsclx.so
g++ -Wl,-z,combreloc -Wl,-z,defs -Wl,--as-needed -Wl,-Bsymbolic-functions -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo -Wl,-rpath,'$ORIGIN:$ORIGIN/../ure-link/lib' -shared -L../unxlngx6.pro/lib -L../lib -L/var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/solenv/unxlngx6/lib -L/var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/solver/310/unxlngx6.pro/lib -L/var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/solenv/unxlngx6/lib -L/opt/sun-jdk-1.6.0.13/lib64 -L/opt/sun-jdk-1.6.0.13/jre/lib/amd64 -L/opt/sun-jdk-1.6.0.13/jre/lib/amd64/server -L/opt/sun-jdk-1.6.0.13/jre/lib/amd64/native_threads -L/usr/lib -L/usr/lib64/xulrunner-1.9/sdk/lib ../unxlngx6.pro/slo/sc_dflt_version.o -o ../unxlngx6.pro/lib/libsclx.so ../unxlngx6.pro/slo/scmod.o
...
../unxlngx6.pro/slo/AccessibleCsvControl.o -lvbahelperlx -lsblx -lsfxlx -lsvtlx -lsvllx -lsvxcorelx -lsvxlx -lgolx -lbasegfxlx -lvcllx -luno_cppu -luno_cppuhelpergcc3 -lcomphelp4gcc3 -lucbhelper4gcc3 -ltklx -lvos3gcc3 -luno_sal -ltllx -li18nutilgcc3 -li18nisolang1gcc3 -lutllx -lsotlx -lxolx -ldbtoolslx -lavmedialx -lforlx -lforuilx -ldl -lpthread -lm 
../unxlngx6.pro/slo/detfunc.o: In function `ScDetectiveFunc::GetAllPreds(short, int, short, int, std::vector<boost::shared_ptr<ScToken>, std::allocator<boost::shared_ptr<ScToken> > >&)':
detfunc.cxx:(.text+0x1e7d): undefined reference to `boost::throw_exception(std::exception const&)'
../unxlngx6.pro/slo/detfunc.o: In function `ScDetectiveFunc::GetAllSuccs(short, int, short, int, std::vector<boost::shared_ptr<ScToken>, std::allocator<boost::shared_ptr<ScToken> > >&)':
detfunc.cxx:(.text+0x39a3): undefined reference to `boost::throw_exception(std::exception const&)'
collect2: ld returned 1 exit status
dmake:  Error code 1, while making '../unxlngx6.pro/lib/libsclx.so'

ERROR: Error 65280 occurred while making /var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/sc/util
rmdir /tmp/20462
make: *** [stamp/build] Error 1
 [31;01m*[0m 
 [31;01m*[0m ERROR: app-office/openoffice-3.1.0 failed.
 [31;01m*[0m Call stack:
 [31;01m*[0m               ebuild.sh, line   49:  Called src_compile
 [31;01m*[0m             environment, line 5226:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m       make || die "Build failed"
 [31;01m*[0m  The die message:
 [31;01m*[0m   Build failed
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-05-23 14:48:15 UTC
Created attachment 192202 [details]
app-office:openoffice-3.1.0:20090523-002046.log
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-05-23 14:51:02 UTC
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
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-05-23 14:52:58 UTC
$ 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
Comment 4 Andreas Proschofsky (RETIRED) gentoo-dev 2009-05-24 08:37:39 UTC
Did you try a revdep-rebuild?
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-05-24 16:27:40 UTC
(In reply to comment #4)
> Did you try a revdep-rebuild?

revdep-rebuild doesn't find any problems.
Comment 6 Andreas Proschofsky (RETIRED) gentoo-dev 2009-05-25 11:20:43 UTC
Just another wild shot: Which xulrunner-version is this with?
Comment 7 Markus Ullmann (RETIRED) gentoo-dev 2009-05-28 10:14:34 UTC
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
Comment 8 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-06-01 12:33:57 UTC
(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 :/
Comment 9 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-06-23 08:00:33 UTC
(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
Comment 10 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-06-23 08:05:02 UTC
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.
Comment 11 aidar 2009-07-14 03:53:34 UTC
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 ?
Comment 12 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-07-14 08:03:02 UTC
(In reply to comment #11)

You reproduce completely different bug.
Comment 13 Andreas Fink 2009-08-16 08:47:49 UTC
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.
Comment 14 Jory A. Pratt gentoo-dev 2009-09-08 12:34:31 UTC
Created attachment 203484 [details]
fix boost undefined references

This should be added to all 3.x branches of openoffice.
Comment 15 Jory A. Pratt gentoo-dev 2009-09-08 12:36:08 UTC
Created attachment 203486 [details]
cp patch to hotfixes directory

For those who need assistance putting patch in to play.
Comment 16 Andreas Proschofsky (RETIRED) gentoo-dev 2009-09-08 18:20:03 UTC
(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.
Comment 17 Andreas Proschofsky (RETIRED) gentoo-dev 2009-09-08 18:31:12 UTC
Actually close the bug...
Comment 18 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-09-09 17:01:11 UTC
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.