[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

OpenOffice.org on PPC and dependency on libstdc++4



Hi all, 

people, who uses OpenOffice.org on debian-powepc might have seen, that,
when gcc-3.1.x is to be removed completely, OpenOffice.org will be
uninstalled as well.

This is a konsequense of the included mozilla-binaries, which are
included in the openoffice.org-1.0.1 source tree while building
OpenOffice.org.The files are called :
LINUXGCCPinc.zip  	-- Mozilla includes
LINUXGCCPlib.zip  	-- Mozilla liberies
LINUXGCCPruntime.zip	-- Mozilla binaries

and thy are builded with gcc-3.1. But we switched to gcc-3.2.1 and I
forgot to rebuild them, sorry.

(On Intel, the Mozillafiles are included into the OpenOffice.org source,
but not on PPC ;( )

So I started to build Mozilla from debian with gcc-3.2.1 and I saw this:

g++-3.2 -o regExport.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\" -DOJI
-DUSE_NSREG  -I../../../dist/include/string
-I../../../dist/include/xpcom -I../../../dist/include
-I/home/palic/temp/mozilla/mozilla-1.1/build-tree/mozilla/dist/include/nspr
-I/usr/X11R6/include   -fPIC  -I/usr/X11R6/include -fno-rtti
-fno-exceptions -Wall -Wconversion -Wpointer-arith -Wbad-function-cast
-Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy
-pedantic -Wno-long-long -fshort-wchar -pthread -pipe  -DNDEBUG
-DTRIMMED -pipe -w -O2 -DDEBIAN  -I/usr/X11R6/include -DMOZILLA_CLIENT
-include ../../../config-defs.h -Wp,-MD,.deps/regExport.pp regExport.cpp
g++-3.2  -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall
-Wconversion -Wpointer-arith -Wbad-function-cast -Wcast-align
-Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -pedantic
-Wno-long-long -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -pipe -w
-O2 -DDEBIAN -o regExport regExport.o    -L../../../dist/bin
-L../../../dist/lib -L../../../dist/bin -lxpcom
-L/home/palic/temp/mozilla/mozilla-1.1/build-tree/mozilla/dist/lib
-lplds4 -lplc4 -lnspr4 -lpthread -ldl -lc -lpthread -lc   -ldl -lm  -lc   
../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub203()'
../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub156()'
../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub184()'
../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub128()'
../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub226()'
../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub246()'
../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub112()'
../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub180()'
../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub230()'
../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub147()'
../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub151()'
../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub116()'
../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub111()'
../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub231()'
../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub141()'
../../../dist/bin/libxpcom.so: undefined reference to `nsXPTCStubBase::Stub104()'.

.
.
.
.
collect2: ld returned 1 exit status
make[5]: *** [regExport] Error 1



I searched on the Internet and I asked Kevin B. Hendriks, if he has some
ready MozillaLibs builded with gcc-3.2.x
I pointed me out, that Franz Sirl has provided some patches for building
Mozilla with gcc-3.2.1-preX. I found some interesting patches:

http://gcc.gnu.org/ml/gcc-patches/2002-07/txt00015.txt
fixes the GXX_ABI_VERSION Macro in gcc and cp, which would help building
Mozilla with gcc-3.2.1

and 

http://bugzilla.mozilla.org/show_bug.cgi?id=142594
and the patch:
http://bugzilla.mozilla.org/attachment.cgi?id=96560&action=view
which fixes the mozilla itself to get build with gcc-3.2.1

This is just for Info, the error is known and will be fixed up to in
two/three days. 

I have no big flat here to download the mozilla-source and test the
patch against mozilla. 

My question to the gcc-maintainers is, is the gcc-patch from Franz 
in included in the gcc-package? 

I will rebuild Mozilla then and rebuild OpenOffice.org after that to get
rid of the gcc-3.1. dependency, when I got a faster internetconnection
and I hope, that I have not rebuild gcc-3.2.1-preX as well .. :)
(I'm on vacation through germany ;) )

Thnx for your patience

	regards
			Jan


-- 
  .''`.    Jan-Hendrik Palic     |
 : :' : ** Debian GNU/ Linux **  |   ** OpenOffice.org **       ,.. ,..
 `. `'   http://www.debian.org   | http://www.openoffice.org  ,: ..`   `
   `-  jan.palic@linux-debian.de |                           '  `  `

Attachment: pgp8exjQYgmyC.pgp
Description: PGP signature


Reply to: