I compiled OpenOffice-2 from source yesterday, using the ebuilds from portage. I now discovered, that I can simply not save anymore in Opendocument or SXW-files. (I can save in *.doc or *.rtf) Even if you have a simple text document with only one word, I cannot save it. The save-dialog simply opens again after having tried to save. Nothing happens, no error message that could help. I'm having this problem on two PCs (the ones, on which I installed openoffice yesterday) and more users are reporting this problem here: http://forums.gentoo.org/viewtopic-p-2819453.html#2819453 This may be related to my CFLAGS, but we'll see the configuration of the people, that can reproduce this problem. Reproducible: Always Steps to Reproduce: 1. Compile Openoffice-2 from source 2. Open it, write a word 3. Try to save as an OpenDocument File PM1600 ~ # emerge info Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.13-gentoo-r3 i686) ================================================================= System uname: 2.6.13-gentoo-r3 i686 Intel(R) Pentium(R) M processor 1.60GHz Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium-m -pipe -fomit-frame-pointer -frename-registers -mfpmath=387,sse -funroll-loops -ftracer -fweb" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium-m -pipe -fomit-frame-pointer -frename-registers -mfpmath=387,sse -funroll-loops -ftracer -fweb -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks prelink sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="de_DE@euro" LC_ALL="de_DE@euro" LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s" LINGUAS="de" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.3.1/gentoo-portage" USE="x86 X acpi alsa apache2 arts avi bash-completion berkdb bitmap-fonts bzlib cdr crypt cups curl dga directfb divx4linux dvd dvdread emboss encode fam fbcon foomaticdb gdbm gif gimp gphoto2 gpm gstreamer gtk gtk2 i8x0 imlib imlib2 insecure-drivers ipv6 jpeg kde kdeenablefinal lib++ libg++ libwww linguas_de lzw-tiff mad mikmod mmx mmx2 mp3 mpeg mpeg4 mplayer mysql ncurses nls nptl ogg oggvorbis opengl openssh oss pam pdflib perl php pic png python qt quicktime readline sdl spell sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1 type1-fonts udev unicode usb userlocales videos vorbis win32codecs xine xml2 xmms xv xvid zlib video_cards_i915 userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET
Can't reproduce this, but as the ebuild already says, OOo is very sensitive to CFLAGS, so please lower this (and the LDFLAGS if you are at it) and try again. Also, which desktop environment are you using?
I use KDE and compile with KDE support. I give the lowered CFLAGS and LDFLAGS a try.
@KDE: I've tried with the kde file-selector and it works for me. Which version of KDE are you using?
I have KDE 3.4.1 on one machine and 3.4.3 on the other. I have tried both types of file selectors.
ok, so this should be fine and we can be sure that this is not the root of the problem ;)
Okay, I compiled OpenOffice with this command: LDFLAGS="" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" emerge openoffice (on another machine as the one above, so don't be curious about the different march-settings) I restarted, but it did NOT help, I still have this saving problem.
I also had this problem and discovered that after I compiled openoffice with java support (USE="java") I could save in those formats. Also, the help system won't work without java compiled in.
I can reproduce that with -java, seems like a java-build is somehow required to save in this formats. Bummer. openoffice-bin on the contrary works with -java, so if you don't want java-support please go for the -bin atm Going to try to resolve this with upstream, but if I can't come up with a quick solution going to remove the possibility to build OOo without java, as this really is a killer bug
Indeed, this instead of cripple OOo without java, makes it unuseable except as a word viewer.
I am also having the same problem emerge --info Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.1 2-gentoo-r10 i686) ================================================================= System uname: 2.6.12-gentoo-r10 i686 AMD Athlon(TM) XP2400+ Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share /config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kd e/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/default s/pref /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="-march=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.oregonstate.ed u http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US.utf8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://kirschwenk/gentoo-portage" USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts cdr crypt cups curl dga doc dvd eds emacs emboss encode esd fam foomaticdb fortran gcc-libffi gcj gd gd bm gif gnome gphoto2 gpm gstreamer gtk gtk2 guile icu imagemagick imlib ipv6 jav a jpeg junit kde leim libg++ libglade libwww mad mikmod motif mozilla mp3 mpeg n as ncurses nls nptl nptlonly objc ogg oggvorbis opengl oss pam pdflib perl png p ython qt quicktime readline ruby ruby18 samba sdl spell sqlite ssl svga tcltk tc pd tetex tiff truetype truetype-fonts type1-fonts udev unicode vorbis xml xml2 x mms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS
I accidently posted to the wrong bug
Ok, here's what's happening: Filter.xcu does not get built correctly when building without java. Even if we still atm don't know what is causing this, upstream ooo-build is at it, so hope to have a fix soon. Until then I've a temporary fix for you, will attach it
Created attachment 71336 [details] Filter.xcu Use this file to replace /usr/lib/openoffice/share/registry/res/en-US/org/openoffice/TypeDetection/Filter.xcu
I've added now a temporary fix to the ebuild by just copying over a correct Filter.xcu after the build finished. Though hope to replace this with a proper solution asap
btw, the fix ONLY works atm,if you build without other LINUGAS except en_US, sorry :(
Forget the last comment, this should be fixed now. Naturally you only get english descriptions for the file formats, but that's still a lot better than not being able to open or save any files.
I have two gentoo systems with very similar configurations. (Same USE flags, same CFLAGS, one is Xeon other is pentium4m). I have this problem on the pentium system only. emerge info from the pentium system (Cannot save in .odt) Gandalf root # emerge -pv openoffice These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] app-office/openoffice-2.0.0 +curl -eds -gnome -gtk -java -kde +ldap -mozilla -nas +xml2 +zlib 4,084 kB Total size of downloads: 4,084 kB Gandalf root # emerge info Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.13-gentoo-r3 i686) ================================================================= System uname: 2.6.13-gentoo-r3 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz Gentoo Base System version 1.6.13 dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -pipe -O2 -ffast-math -fomit-frame-pointer -frename-registers" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /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="-march=pentium4 -pipe -O2 -ffast-math -fomit-frame-pointer -frename-registers" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://adelie.polymtl.ca/ ftp://gentoo.mirrors.pair.com/ http://gentoo.osuosl.org/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 X acpi alsa bitmap-fonts caps cdr crypt cups curl dbus dvdr emacs encode fam flac foomaticdb fortran gd gif gpm gstreamer gtk2 hal ieee1394 imap imlib jpeg ldap libwww mad mikmod mmap mmx mmxext mp3 mpeg ncurses nptl ogg oggvorbis opengl pam pcmcia pdflib png readline sdl spell sse sse2 ssl tcpd tetex tiff truetype truetype-fonts type1-fonts udev vorbis wifi xml2 xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY Info from xeon system (where this bug does not show up) Rivendell root # emerge -pv openoffice These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] app-office/openoffice-2.0.0 +curl -eds -gnome -gtk -java -kde +ldap -mozilla -nas +xml2 +zlib 0 kB Total size of downloads: 0 kB Rivendell root # emerge info Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.13-gentoo-r3 i686) ================================================================= System uname: 2.6.13-gentoo-r3 i686 Intel(R) XEON(TM) CPU 2.00GHz Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -pipe -ffast-math -fomit-frame-pointer -frename-registers" 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="-march=pentium4 -O2 -pipe -ffast-math -fomit-frame-pointer -frename-registers" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://gentoo.mirrors.tds.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 X acpi alsa bitmap-fonts caps crypt cups curl dbus emacs encode foomaticdb fortran gd gif gpm gstreamer gtk2 imap imlib jpeg ldap libwww mad mikmod mmap mmx mmxext mp3 mpeg ncurses nptl offencive ogg oggvorbis opengl pam pdflib png quicktime readline sdl spell sse sse2 ssl svga tcpd tetex threads tiff truetype truetype-fonts type1-fonts udev vorbis xine xml2 xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY Copying that Filter.xcu file did not help
(In reply to comment #17) I found out something interesting. If I crate a .odt file with my working openoffice, and then open it with the buggy openoffice, change it. Then the buggy openoffice can still save that file! :O Though it cannot make a new file, or even save the same one with a different name using the save as dialog.
@Aurther: The seemingly weird effects you are experiencing are caused by the fact, that OOo is caching some stuff in the user dir to improve startup time. Just remove ~/.ooo-2.0/user/registry/cache and everything works as "expected".
We have now a proper solution for this, so no more hacky copying of files :) Closing this