Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40492 - openoffice-1.1.0 no longer compiles - stdlib header conflict / Namespace conflict?
Summary: openoffice-1.1.0 no longer compiles - stdlib header conflict / Namespace conf...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High blocker
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
: 40800 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-05 08:37 UTC by Imad R. Faiad
Modified: 2004-02-08 20:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Imad R. Faiad 2004-02-05 08:37:05 UTC
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!
Comment 1 Andreas Proschofsky (RETIRED) gentoo-dev 2004-02-05 08:56:13 UTC
Please attach your output of "emerge info"
Comment 2 Imad R. Faiad 2004-02-05 09:40:28 UTC
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"
Comment 3 Imad R. Faiad 2004-02-05 09:47:02 UTC
Andreas, this is a blocker, no OOo on a fresh install
Comment 4 Keith Constable 2004-02-05 11:23:06 UTC
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"
Comment 5 Paul de Vrieze (RETIRED) gentoo-dev 2004-02-05 12:27:19 UTC
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
Comment 6 Andreas Proschofsky (RETIRED) gentoo-dev 2004-02-05 13:43:05 UTC
@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
Comment 7 Andreas Proschofsky (RETIRED) gentoo-dev 2004-02-05 15:37:01 UTC
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)
Comment 8 Imad R. Faiad 2004-02-06 00:43:47 UTC
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.
Comment 9 Paul de Vrieze (RETIRED) gentoo-dev 2004-02-06 01:06:48 UTC
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
Comment 10 Paul de Vrieze (RETIRED) gentoo-dev 2004-02-06 01:12:02 UTC
I just downgraded gcc back to -r5 (binary package), and now openoffice seems to go past the point of failure.
Comment 11 Andreas Proschofsky (RETIRED) gentoo-dev 2004-02-06 07:25:24 UTC
Downgrading gcc to -r5 also solved the problem for me
Comment 12 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-06 09:54:56 UTC
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
Comment 13 Paul de Vrieze (RETIRED) gentoo-dev 2004-02-06 11:31:11 UTC
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
Comment 14 Andreas Proschofsky (RETIRED) gentoo-dev 2004-02-07 02:15:33 UTC
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
Comment 15 Andreas Proschofsky (RETIRED) gentoo-dev 2004-02-08 00:41:56 UTC
*** Bug 40800 has been marked as a duplicate of this bug. ***
Comment 16 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-08 00:54:46 UTC
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.
Comment 17 Paul de Vrieze (RETIRED) gentoo-dev 2004-02-08 02:31:19 UTC
I'll mark this fixed now as that gcc version is masked again.
Comment 18 Imad R. Faiad 2004-02-08 08:06:11 UTC
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
Comment 19 Paul de Vrieze (RETIRED) gentoo-dev 2004-02-08 08:09:26 UTC
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.
Comment 20 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-08 20:24:30 UTC
-r7 should also fix this.