After upgrading to the latest gcc (gcc version 3.3.2 20040108 (Gentoo Linux 3.3.2-r6, propolice-3.3-7) and associated libraries, openoffice no longer compiles. some conflict with "/usr/include/stdio.h"?? The following is the relevent dump of the error log: fno-rtti -include preinclude.h -fexceptions -fno-enforce-eh-specs -fpic -DLINU X -DUNX -DVCL -DGCC -DC300 -DINTEL -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -D __DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=645 -DBUILD=8693 -DPRODUCT -DNDEBUG -DPROD UCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON -DCUI -DSOLAR_JAVA -DSRX 645 -DSHAREDLIB -D_DLL_ -DMULTITHREAD -o ../../unxlngi4.pro/slo/basicparser. o /mnt/sda4/tmp/portage/openoffice-1.1.0-r3/work/oo_1.1_src/configmgr/source/xml/basicparser.cxx In file included from /mnt/sda4/tmp/portage/openoffice-1.1.0-r3/work/oo_1.1_src/configmgr/source/xml/elementparser.hxx:66, from /mnt/sda4/tmp/portage/openoffice-1.1.0-r3/work/oo_1.1_src/configmgr/source/xml/basicparser.hxx:66, from /mnt/sda4/tmp/portage/openoffice-1.1.0-r3/work/oo_1.1_src/configmgr/source/xml/basicparser.cxx:62: /mnt/sda4/tmp/portage/openoffice-1.1.0-r3/work/oo_1.1_src/configmgr/source/xml/elementinfo.hxx:119: error: `remove' redeclared as different kind of symbol /usr/include/stdio.h:152: error: previous declaration of `int remove(const char* )' dmake: Error code 1, while making '../../unxlngi4.pro/slo/basicparser.obj' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /mnt/sda4/tmp/portage/openoffice-1.1.0- r3/work/oo_1.1_src/configmgr/source/xml !!! ERROR: app-office/openoffice-1.1.0-r3 failed. !!! Function src_compile, Line 405, Exitcode 1 !!! Build failed!
Please attach your output of "emerge info"
as requested, here goes: bash-2.05b# emerge info Portage 2.0.50_pre22 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0, 2. 6.1-gentoo-r1) ================================================================= System uname: 2.6.1-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.4.3.12 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -mcpu=pentium4 -mfpmath=sse -msse2 -O2 -fomit-frame-poin ter" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2 /share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm /config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /us r/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium4 -mcpu=pentium4 -mfpmath=sse -msse2 -O2 -fomit-frame-po inter" DISTDIR="/mnt/sda4/distfiles" FEATURES="autoaddcvs ccache" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://sunsite.cnlab-switch.ch/ftp /mirror/gentoo http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/mnt/sda4/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa arts avi berkdb cdr crypt cups doc dvd encode foomaticdb gdbm gif gp m gtk gtk2 idea imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readlin e samba sdl slang spell ssl svga tcpd tetex truetype x86 xml2 xmms xv zlib"
Andreas, this is a blocker, no OOo on a fresh install
Confirmed: Making: ../../unxlngi4.pro/slo/basicparser.obj g++ -fmessage-length=0 -c -I. -I. -I../inc -I../../source/inc -I../../inc -I../../unx/inc -I../../unxlngi4.pro/inc -I. -I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solver/645/unxlngi4.pro/inc/stl -I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solver/645/unxlngi4.pro/inc/external -I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solver/645/unxlngi4.pro/inc -I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solenv/unxlngi4/inc -I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solenv/inc -I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/res -I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solver/645/unxlngi4.pro/inc/stl -I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solenv/inc/Xp31 -I/opt/blackdown-jdk-1.4.1/include -I/opt/blackdown-jdk-1.4.1/include/linux -I/opt/blackdown-jdk-1.4.1/include/native_threads/include -I/usr/X11R6/include -I. -I../../res -I. -O2 -mcpu=athlon-xp -pipe -mmmx -msse -m3dnow -mfpmath=sse -fno-strict-aliasing -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER -fno-strict-aliasing -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER -pipe -mcpu=pentiumpro -fno-for-scope -fpermissive -fno-rtti -include preinclude.h -fexceptions -fno-enforce-eh-specs -fpic -DLINUX -DUNX -DVCL -DGCC -DC300 -DINTEL -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=645 -DBUILD=8693 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON -DCUI -DSOLAR_JAVA -DSRX645 -DSHAREDLIB -D_DLL_ -DMULTITHREAD -o ../../unxlngi4.pro/slo/basicparser.o /var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/configmgr/source/xml/basicparser.cxx In file included from /var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/configmgr/source/xml/elementparser.hxx:66, from /var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/configmgr/source/xml/basicparser.hxx:66, from /var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/configmgr/source/xml/basicparser.cxx:62: /var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/configmgr/source/xml/elementinfo.hxx:119: error: `remove' redeclared as different kind of symbol /usr/include/stdio.h:152: error: previous declaration of `int remove(const char*)' dmake: Error code 1, while making '../../unxlngi4.pro/slo/basicparser.obj' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/configmgr/source/xml Portage 2.0.50_pre22 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0, 2.6.1-gentoo-r1) ================================================================= System uname: 2.6.1-gentoo-r1 i686 AMD Athlon(tm) XP 1800+ Gentoo Base System version 1.4.3.12 Autoconf: sys-devel/autoconf-2.59 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=athlon-xp -pipe -fomit-frame-pointer -mmmx -msse -m3dnow -mfpmath=sse" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -mcpu=athlon-xp -pipe -fomit-frame-pointer -mmmx -msse -m3dnow -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/ http://gentoo.chem.wisc.edu/gentoo/ ftp://oss.redundant.com/pub/gentoo ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ ftp://lug.mtu.edu/gentoo/source" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="3dnow X aalib acpi avi cdr crypt cups dvd dvdr encode foomaticdb gif gpm gtk gtk2 gtkhtml imlib java jpeg libg++ libwww mad mikmod mmx motif mpeg ncurses oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell sse ssl svga tcltk tcpd tiff truetype x86 xml xml2 xmms xv zlib"
Remerge gcc. I don't know why but these problems have also been turning up for kde. remerging gcc allways seems to work. (It is a header mismatch between glibc and gcc) If I need to speculate it is probably caused by a stage2 or stage3 install where gcc or glibc get wrongly updated. Stage1 installs should work
@Imad: I changed the status to normal, because you reported for OOo-1.1.0-r3 which is hardmasked (because it is experimental). But as it now is confirmed to also appear with the stable version this is indeed a blocker which I can confirm. @Paul: Should we add the gcc-people to the CC: because I agree this seems to be a problem with gcc not with OOo
Reemerging gcc did not solve the problem for me, this trouble seems to have been introduced with gcc-3.3.2-r6 (and does not only apply to "fresh" installs)
Paul, you are right about those stage2 & 3 tarbars, they are screwed up! I started from stage2, but was blocked, had to bootstrap. So, for all intents and purposes, we are talking about a clean install, from the ground up, and that is not the problem as far as OOo is concerned. I will be building two gentoo boxes next week, if there is anything that you need tested by all means let me know. Does anyone know if there are any docs for the catalyst tool, because after the above episode, it is better to start from a home brewed stage tarbar.
I can confirm the bug on one of my systems too. That system has not seen a reinstall in allmost 2 years, so certainly not the kde problem
I just downgraded gcc back to -r5 (binary package), and now openoffice seems to go past the point of failure.
Downgrading gcc to -r5 also solved the problem for me
So this issue is with gcc-3.3.2-r6? Sounds like the 'fixed header' issue again, only the are not installed since -r5 anymore. How was it installed? Build or package? Also, could any of you with this issue reinstall it, and do: # ls $(gcc-config -L)/include
It is a package I compiled manually (first time, I just reinstalled from binary). The ls is: ls `gcc-config -L`/include README fficonfig.h gnu jvmpi.h stdarg.h varargs.h cxxabi.h float.h iso646.h limits.h stdbool.h xmmintrin.h emmintrin.h g++-v3 java mmintrin.h stddef.h ffi.h g2c.h javax objc syslimits.h ffi_mips.h gcj jni.h pmmintrin.h unwind.h Let me know what other info you need
ls $(gcc-config -L)/include README ffi.h float.h gcj java jvmpi.h objc stdbool.h unwind.h cxxabi.h ffi_mips.h g++-v3 gnu javax limits.h pmmintrin.h stddef.h varargs.h emmintrin.h fficonfig.h g2c.h iso646.h jni.h mmintrin.h stdarg.h syslimits.h xmmintrin.h Anyway: -r6 is now masked again, so please downgrade to -r5 and compile should work
*** Bug 40800 has been marked as a duplicate of this bug. ***
This seems to be a namespace issue (same as bug #40603), which is fixed in CVS. I will do a -r7 later on for testing.
I'll mark this fixed now as that gcc version is masked again.
downgrading to -r5 fixed the problem. waiting for -r7 to re-test. Andreas, why is OOo-1.1.0-r3 still masked, it's a lot more stable than any of the preceeding OOo-1.1.0 ebuilds, just wondering and thanks to everyone
the -r3 ebuild involved a number of significant changes, that we felt should first be tested a bit. Further not all changes were made at the same time. I think we can mark it testing now though.
-r7 should also fix this.