Emerging openoffice-1.1.4 fails. (Does it wand to link to java although it shouldn't?) emerge -pv openoffice gives: [ebuild U ] app-office/openoffice-1.1.4 [1.1.3-r1] +curl -debug +gnome +hardened -java -kde +nptl +zlib 0 kB Reproducible: Always Steps to Reproduce: 1. emerge sync 2. emerge -uD world (or: emerge =app-office/openoffice-1.1.4 3. Actual Results: This emerge failed leaving the following on the screen: Making: ../unxlngi4.pro/lib/libsfx645li.so gcc -c -fPIC -o ../unxlngi4.pro/slo/sfx_dflt_version.o -DUNX -I../unxlngi4.pro/inc /var/tmp/portage/openoffice-1.1.4/work/solenv/src/version.c 124802 g++ -Wl,-z,combreloc -Wl,-z,defs -Wl,-rpath,'$ORIGIN' -shared -L../unxlngi4.pro/lib -L../lib -L/var/tmp/portage/openoffice-1.1.4/work/solenv/unxlngi4/lib -L/var/tmp/portage/openoffice-1.1.4/work/solver/645/unxlngi4.pro/lib -L/var/tmp/portage/openoffice-1.1.4/work/solenv/unxlngi4/lib -LNO_JAVA_HOME/lib -LNO_JAVA_HOME/jre/lib/i386 -LNO_JAVA_HOME/jre/lib/i386/client -LNO_JAVA_HOME/jre/lib/i386/native_threads -L/usr/lib ../unxlngi4.pro/slo/sfxdll.o ../unxlngi4.pro/slo/sfx_dflt_version.o ../unxlngi4.pro/slo/sfx_description.o -o ../unxlngi4.pro/lib/libsfx645li.so ../unxlngi4.pro/slo/imagemgr.o ../unxlngi4.pro/slo/appopen.o ../unxlngi4.pro/slo/appuno.o ../unxlngi4.pro/slo/appmail.o ../unxlngi4.pro/slo/appmain.o ../unxlngi4.pro/slo/appinit.o ../unxlngi4.pro/slo/appmisc.o ../unxlngi4.pro/slo/appdemo.o ../unxlngi4.pro/slo/appreg.o ../unxlngi4.pro/slo/appcfg.o ../unxlngi4.pro/slo/appquit.o ../unxlngi4.pro/slo/appchild.o ../unxlngi4.pro/slo/appserv.o ../unxlngi4.pro/slo/appdata.o ../unxlngi4.pro/slo/app.o ../unxlngi4.pro/slo/appbas.o ../unxlngi4.pro/slo/appdde.o ../unxlngi4.pro/slo/workwin.o ../unxlngi4.pro/slo/sfxhelp.o ../unxlngi4.pro/slo/childwin.o ../unxlngi4.pro/slo/sfxdll.o ../unxlngi4.pro/slo/module.o ../unxlngi4.pro/slo/appsys.o ../unxlngi4.pro/slo/loadenv.o ../unxlngi4.pro/slo/dlgcont.o ../unxlngi4.pro/slo/namecont.o ../unxlngi4.pro/slo/scriptcont.o ../unxlngi4.pro/slo/newhelp.o ../unxlngi4.pro/slo/helpinterceptor.o ../unxlngi4.pro/slo/shutdownicon.o ../unxlngi4.pro/slo/shutdowniconw32.o ../unxlngi4.pro/slo/sfxpicklist.o ../unxlngi4.pro/slo/helpdispatch.o ../unxlngi4.pro/slo/imestatuswindow.o ../unxlngi4.pro/slo/accelinfo.o ../unxlngi4.pro/slo/nochaos.o ../unxlngi4.pro/slo/exptypes.o ../unxlngi4.pro/slo/infodlgs.o ../unxlngi4.pro/slo/sfxdir.o ../unxlngi4.pro/slo/docfile.o ../unxlngi4.pro/slo/objuno.o ../unxlngi4.pro/slo/frmdescr.o ../unxlngi4.pro/slo/fsetobsh.o ../unxlngi4.pro/slo/docinf.o ../unxlngi4.pro/slo/interno.o ../unxlngi4.pro/slo/objxtor.o ../unxlngi4.pro/slo/objmisc.o ../unxlngi4.pro/slo/objstor.o ../unxlngi4.pro/slo/objsys.o ../unxlngi4.pro/slo/objcont.o ../unxlngi4.pro/slo/objserv.o ../unxlngi4.pro/slo/objitem.o ../unxlngi4.pro/slo/clientsh.o ../unxlngi4.pro/slo/docfac.o ../unxlngi4.pro/slo/docfilt.o ../unxlngi4.pro/slo/doctempl.o ../unxlngi4.pro/slo/doctemplates.o ../unxlngi4.pro/slo/docvor.o ../unxlngi4.pro/slo/new.o ../unxlngi4.pro/slo/doctdlg.o ../unxlngi4.pro/slo/frameobj.o ../unxlngi4.pro/slo/sfxbasemodel.o ../unxlngi4.pro/slo/xmlversion.o ../unxlngi4.pro/slo/frmload.o ../unxlngi4.pro/slo/framedlg.o ../unxlngi4.pro/slo/fsetvwsh.o ../unxlngi4.pro/slo/frame.o ../unxlngi4.pro/slo/urlframe.o ../unxlngi4.pro/slo/ipenv.o ../unxlngi4.pro/slo/contenv.o ../unxlngi4.pro/slo/printer.o ../unxlngi4.pro/slo/prnmon.o ../unxlngi4.pro/slo/viewsh.o ../unxlngi4.pro/slo/viewprn.o ../unxlngi4.pro/slo/ipfrm.o ../unxlngi4.pro/slo/viewfac.o ../unxlngi4.pro/slo/orgmgr.o ../unxlngi4.pro/slo/intfrm.o ../unxlngi4.pro/slo/viewfrm.o ../unxlngi4.pro/slo/tbedctrl.o ../unxlngi4.pro/slo/impframe.o ../unxlngi4.pro/slo/topfrm.o ../unxlngi4.pro/slo/sfxbasecontroller.o ../unxlngi4.pro/slo/unoctitm.o ../unxlngi4.pro/slo/request.o ../unxlngi4.pro/slo/dispatch.o ../unxlngi4.pro/slo/msgpool.o ../unxlngi4.pro/slo/objface.o ../unxlngi4.pro/slo/ctrlitem.o ../unxlngi4.pro/slo/statcach.o ../unxlngi4.pro/slo/shell.o ../unxlngi4.pro/slo/msg.o ../unxlngi4.pro/slo/bindings.o ../unxlngi4.pro/slo/minfitem.o ../unxlngi4.pro/slo/srchitem.o ../unxlngi4.pro/slo/macro.o ../unxlngi4.pro/slo/macrconf.o ../unxlngi4.pro/slo/eventsupplier.o ../unxlngi4.pro/slo/hintpost.o ../unxlngi4.pro/slo/linkhdl.o ../unxlngi4.pro/slo/mnumgr.o ../unxlngi4.pro/slo/virtmenu.o ../unxlngi4.pro/slo/objmnctl.o ../unxlngi4.pro/slo/mnuitem.o ../unxlngi4.pro/slo/inettbc.o ../unxlngi4.pro/slo/xmlaccelcfg.o ../unxlngi4.pro/slo/accelcfg.o ../unxlngi4.pro/slo/accmgr.o ../unxlngi4.pro/slo/accitem.o ../unxlngi4.pro/slo/xmlnamespaces.o ../unxlngi4.pro/slo/saxnamespacefilter.o ../unxlngi4.pro/slo/attriblist.o ../unxlngi4.pro/slo/tbxmgr.o ../unxlngi4.pro/slo/tbxchild.o ../unxlngi4.pro/slo/tbxopdlg.o ../unxlngi4.pro/slo/tbxcust.o ../unxlngi4.pro/slo/imgmgr.o ../unxlngi4.pro/slo/tbxconf.o ../unxlngi4.pro/slo/tbxitem.o ../unxlngi4.pro/slo/stbmgr.o ../unxlngi4.pro/slo/stbitem.o ../unxlngi4.pro/slo/progind.o ../unxlngi4.pro/slo/filtergrouping.o ../unxlngi4.pro/slo/filedlghelper.o ../unxlngi4.pro/slo/mailmodel.o ../unxlngi4.pro/slo/partwnd.o ../unxlngi4.pro/slo/cfg.o ../unxlngi4.pro/slo/about.o ../unxlngi4.pro/slo/acccfg.o ../unxlngi4.pro/slo/basedlgs.o ../unxlngi4.pro/slo/dinfdlg.o ../unxlngi4.pro/slo/dinfedt.o ../unxlngi4.pro/slo/dockwin.o ../unxlngi4.pro/slo/eventdlg.o ../unxlngi4.pro/slo/intro.o ../unxlngi4.pro/slo/macropg.o ../unxlngi4.pro/slo/mailchildwin.o ../unxlngi4.pro/slo/mailwindow.o ../unxlngi4.pro/slo/menucfg.o ../unxlngi4.pro/slo/mgetempl.o ../unxlngi4.pro/slo/navigat.o ../unxlngi4.pro/slo/newstyle.o ../unxlngi4.pro/slo/passwd.o ../unxlngi4.pro/slo/register.o ../unxlngi4.pro/slo/sfxurl.o ../unxlngi4.pro/slo/slotinfo.o ../unxlngi4.pro/slo/splitwin.o ../unxlngi4.pro/slo/styfitem.o ../unxlngi4.pro/slo/styledlg.o ../unxlngi4.pro/slo/tabdlg.o ../unxlngi4.pro/slo/templdlg.o ../unxlngi4.pro/slo/tplcitem.o ../unxlngi4.pro/slo/tplpitem.o ../unxlngi4.pro/slo/versdlg.o ../unxlngi4.pro/slo/printopt.o ../unxlngi4.pro/slo/recfloat.o ../unxlngi4.pro/slo/cfgtreelstbox.o ../unxlngi4.pro/slo/plugwin.o ../unxlngi4.pro/slo/propset.o ../unxlngi4.pro/slo/itmfac.o ../unxlngi4.pro/slo/sfxhtml.o ../unxlngi4.pro/slo/frmhtml.o ../unxlngi4.pro/slo/frmhtmlw.o ../unxlngi4.pro/slo/misc.o ../unxlngi4.pro/slo/idpool.o ../unxlngi4.pro/slo/progress.o ../unxlngi4.pro/slo/sfxresid.o ../unxlngi4.pro/slo/newhdl.o ../unxlngi4.pro/slo/bitset.o ../unxlngi4.pro/slo/minarray.o ../unxlngi4.pro/slo/fltfnc.o ../unxlngi4.pro/slo/mieclip.o ../unxlngi4.pro/slo/fltdlg.o ../unxlngi4.pro/slo/fltlst.o ../unxlngi4.pro/slo/helper.o ../unxlngi4.pro/slo/cfgmgr.o ../unxlngi4.pro/slo/cfgimex.o ../unxlngi4.pro/slo/cfgitem.o ../unxlngi4.pro/slo/misccfg.o ../unxlngi4.pro/slo/evntconf.o -lfwe645li -lsb645li -lxo645li -lxcr645li -lso645li -lsvt645li -ltk645li -lvcl645li -lsvl645li -lsot645li -lutl645li -ltl645li -lsysshell -lcomphelp3gcc3 -lucbhelper2gcc3 -lcppuhelpergcc3 -lcppu -lvos3gcc3 -lsal -ldl -lpthread -lm -Wl,-Bdynamic -lstlport_gcc -lpthread -lstdc++ ../unxlngi4.pro/slo/appcfg.o(.text+0x4df9): In function `SfxApplication::SetOptions_Impl(SfxItemSet const&)': : undefined reference to `SjApplet2::settingsChanged()' collect2: ld returned 1 exit status dmake: Error code 1, while making '../unxlngi4.pro/lib/libsfx645li.so' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-1.1.4/work/sfx2/util !!! ERROR: app-office/openoffice-1.1.4 failed. !!! Function src_compile, Line 416, Exitcode 1 !!! Build failed! !!! If you need support, post the topmost build error, NOT this status message. emerge info: Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 9 2005, 18:49:36)] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.8.5-r3, 1.5, 1.6.3, 1.9.4, 1.7.9-r1, 1.4_p6 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="" LANG="german" LC_ALL="de_DE@euro" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/gentoo-de" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X Xaw3d aalib acl acpi alsa apm avi berkdb bitmap-fonts caps cdr crypt cups curl dga doc emacs encode esd f77 fam flac font-server foomatic foomaticdb fortran gdbm gif gnome gnutls gpm gtk gtk2 guile hardened icq imagemagick imlib ipv6 jpeg kde libg++ libwww mad maildir mbox mikmod mmx motif mpeg ncurses nls nptl oggvorbis opengl oscar oss pam pdflib perl png procmail python quicktime readline samba sdl slang socks5 spell sqlite sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode xml xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LDFLAGS Extra settings for openoffice in /etc/portage: keywords=~x86 use=-kde
Don't know if this is useful: I tried to emerge openoffice-1.1.3: It fails with a different error (should I file it?) I took openoffice-1.1.3-r1 from gentoo-cvs and re-emerged it. It works without any problem. (Who removed it from portage?)
Is this EXACT error message reproducable for you. Are you sure, that you had enough diskspace when trying to emerge? (4-6 GB)
I. Error ist reproducable. II. Emerging with reduced cflags: CFLAGS="-march=pentium4" CXXFLAGS="-march=pentium4" emerge openoffice gives a slightly more verbose error: -8<-------8<-----8<----- ../unxlngi4.pro/slo/appcfg.o(.text+0x54f1): In function `SfxApplication::SetOpti ons_Impl(SfxItemSet const&)': : undefined reference to `SjApplet2::settingsChanged()' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bin/ld: ` .L1176' referenced in section `.rodata' of ../unxlngi4.pro/slo/objuno.o: defined in discarded section `.gnu.linkonce.t._ZN3com3sun4star3unorSERKNS2_3AnyERl' of ../unxlngi4.pro/slo/objuno.o ## this line repeats with different *.o-files ## and differing _ZN3com3sun4star3unorSERK... collect2: ld returned 1 exit status dmake: Error code 1, while making '../unxlngi4.pro/lib/libsfx645li.so' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-1.1.4/work/ sfx2/util !!! ERROR: app-office/openoffice-1.1.4 failed. !!! Function src_compile, Line 416, Exitcode 1 !!! Build failed! !!! If you need support, post the topmost build error, NOT this status message. -8<----8<-----8<------8<----8<----- III. I will now try with /var/tmp/portage on bigger partition. (The ebuild warns about openoffice being fragile about cflags. Could there a warning be added about needing a lot of hd?)
Tried emerge with /var/tmp/portage on more-than-big-enough disk. Result: still the same/no emerge. Will try empty cflags next.
Empty CFLAGS also failed: CFLAGS="" CXXFLAGS="" emerge openoffice > log-openoffice-1.1.4-no-cflags 2>&1 log-file attached.
Created attachment 51651 [details] Log of emerge (bzipped)
Another try with modified USE-Flags: $ emerge -pv openoffice Calculating dependencies ...done! [ebuild R ] app-office/openoffice-1.1.4 -curl -debug +gnome -hardened -java Now it emerges. Changed USE-Flags are 'curl' and 'hardened'. Don't know which of these two made it fail before.
It fails with USE="hardened".
This is just a wild guess, but maybe gcc34-nojava-fix.patch should be apply for gcc-3.3.5 too? (can't test it here)
Sok Ann Yap was on the right the trail, the gcc 3.4 patches need to be applied generally, as hardened needs them too. Already changed that in openoffice-ximian quite some time ago, seem to have forgotten about vanilla OOo. Sorry. Fixed in cvs, closing