OpenOffice-devel segfaults gcc

Robert Huff roberthuff at rcn.com
Wed Oct 22 08:52:01 PDT 2003


Hello:
	I'm trying to compile OpenOffice-devel on:

FreeBSD 5.1-CURRENT #0: Tue Oct 21 23:17:38 EDT 2003

	and I get repeated failure at:

cc1plus: warning: "-Wbad-function-cast" is valid for C/ObjC but not for C++
In file included from /usr/include/c++/3.3/backward/new.h:33,
                 from ../../../dist/include/string/nsBufferHandleUtils.h:36,
                 from ../../../dist/include/string/nsSharableString.h:35,
                 from ../../../dist/include/string/nsPromiseFlatString.h:28,
                 from ../../../dist/include/string/nsString2.h:70,
                 from ../../../dist/include/string/nsString.h:54,
                 from nsAbBooleanExpression.h:44,
                 from nsAbBooleanExpression.cpp:39:
/usr/include/c++/3.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
nsAbDirectoryRDFResource.cpp
c++ -o nsAbDirectoryRDFResource.o -c -DOSTYPE=\"FreeBSD5\" -DOSARCH=\"FreeBSD\" -DOJI  -I../../../dist/include/xpcom -I../../../dist/include/string -I../../../dist/include/rdf -I../../../dist/include/rdfutil -I../../../dist/include/appshell -I../../../dist/include/dom -I../../../dist/include/layout -I../../../dist/include/content -I../../../dist/include/widget -I../../../dist/include/mork -I../../../dist/include/docshell -I../../../dist/include/pref -I../../../dist/include/necko -I../../../dist/include/locale -I../../../dist/include/unicharutil -I../../../dist/include/webshell -I../../../dist/include/uconv -I../../../dist/include/msgbase -I../../../dist/include/msgbaseutil -I../../../dist/include/mime -I../../../dist/include/msgcompose -I../../../dist/include/appcomps -I../../../dist/include/intl -I../../../dist/include/import -I../../../dist/include/mozldap -I../../../dist/include/uriloader -I../../../dist/include/windowwatcher -I../../../dist/include/addrbook -I../../../dist/include -I/usr/ports/editors/openoffice-devel/work/mozilla/work/mozilla/dist/include/nspr  -I/usr/local/include -I/usr/local/include -I/usr/local/include  -I/usr/X11R6/include   -fPIC  -I/usr/X11R6/include  -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-long-long -O -pipe -march=pentiumpro -fshort-wchar -pipe  -DNDEBUG -DTRIMMED -ffunction-sections  -I/usr/X11R6/include  -I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../../config-defs.h nsAbDirectoryRDFResource.cpp
cc1plus: warning: "-Wbad-function-cast" is valid for C/ObjC but not for C++
In file included from /usr/include/c++/3.3/backward/new.h:33,
                 from ../../../dist/include/string/nsBufferHandleUtils.h:36,
                 from ../../../dist/include/string/nsSharableString.h:35,
                 from ../../../dist/include/string/nsPromiseFlatString.h:28,
                 from ../../../dist/include/string/nsString2.h:70,
                 from ../../../dist/include/string/nsString.h:54,
                 from ../../../dist/include/rdfutil/nsRDFResource.h:45,
                 from nsAbDirectoryRDFResource.h:42,
                 from nsAbDirectoryRDFResource.cpp:39:
/usr/include/c++/3.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
nsAbDirectoryRDFResource.cpp: In destructor `
   nsAbDirectoryRDFResource::~nsAbDirectoryRDFResource()':
nsAbDirectoryRDFResource.cpp:61: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake[4]: *** [nsAbDirectoryRDFResource.o] Error 1
gmake[4]: Leaving directory `/usr/ports/editors/openoffice-devel/work/mozilla/work/mozilla/mailnews/addrbook/src'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/usr/ports/editors/openoffice-devel/work/mozilla/work/mozilla/mailnews/addrbook'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/usr/ports/editors/openoffice-devel/work/mozilla/work/mozilla/mailnews'
gmake[1]: *** [tier_97] Error 2
gmake[1]: Leaving directory `/usr/ports/editors/openoffice-devel/work/mozilla/work/mozilla'
gmake: *** [default] Error 2
*** Error code 2


	I'm running a lightly loaded P4-2.2ghz, with 512mb memory and
30+Gb of free disk.
	Is there a OpenOffice issue here, or should I take this to the
GCC people? 


				Robert Huff


More information about the freebsd-openoffice mailing list