Apache OpenOffice (AOO) Bugzilla – Issue 70340
Compile fails with gcc 3.3 on desktop/source/deployment/manager/dp_manager.cxx in 680m187
Last modified: 2006-11-20 15:53:47 UTC
Maybe related to issue 41456 (although that was a year ago) Making: ../../../unxlngi4.pro/slo/dp_manager.obj g++ -fmessage-length=0 -c -O1 -I. -I../../../unxlngi4.pro/inc/deployment_manager -I../inc -I../../../inc/pch -I../../../inc -I../../../unx/inc -I../../../unxlngi4.pro/inc -I. -I/home/chris/project/openoffice/solver/680/unxlngi4.pro/inc/stl -I/home/chris/project/openoffice/solver/680/unxlngi4.pro/inc/external -I/home/chris/project/openoffice/solver/680/unxlngi4.pro/inc -I/home/chris/project/openoffice/solenv/unxlngi4/inc -I/home/chris/project/openoffice/solenv/inc -I/home/chris/project/openoffice/res -I/home/chris/project/openoffice/solver/680/unxlngi4.pro/inc/stl -I/home/chris/project/openoffice/solenv/inc/Xp31 -I/usr/java/j2sdk1.4.2_08/include -I/usr/java/j2sdk1.4.2_08/include/linux -I/usr/java/j2sdk1.4.2_08/include/native_threads/include -I/usr/X11R6/include -I/home/chris/project/openoffice/solver/680/unxlngi4.pro/inc/offuh -I. -I../../../res -I. -pipe -mcpu=pentiumpro -include preinclude.h -fexceptions -fno-enforce-eh-specs -Wuninitialized -Wno-ctor-dtor-privacy -fpic -DLINUX -DUNX -DVCL -DGCC -DC300 -DINTEL -DCVER=C300 -DNPTL -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/include/c++/3.3.3 -DSUPD=680 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON -DCUI -DSOLAR_JAVA -DSRC680=SRC680 -DSHAREDLIB -D_DLL_ -DMULTITHREAD -o ../../../unxlngi4.pro/slo/dp_manager.o /home/chris/project/openoffice/desktop/source/deployment/manager/dp_manager.cxx /home/chris/project/openoffice/desktop/source/deployment/manager/dp_manager.cxx: In member function `bool dp_manager::PackageManagerImpl::checkUpdate(const rtl::OUString&, const com::sun::star::uno::Reference<com::sun::star::deployment::XPackage>&, bool*, const com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment>&, const com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment>&)': /home/chris/project/openoffice/desktop/source/deployment/manager/dp_manager.cxx:580: error: syntax error before `+' token /home/chris/project/openoffice/desktop/source/deployment/manager/dp_manager.cxx:582: error: no matching function for call to `com::sun::star::uno::Any::Any(const rtl::OUString&, const com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment>&)' /home/chris/project/openoffice/solver/680/unxlngi4.pro/inc/com/sun/star/uno/Any.h:268: error: candidates are: com::sun::star::uno::Any::Any(short unsigned int) /home/chris/project/openoffice/solver/680/unxlngi4.pro/inc/com/sun/star/uno/Any.hxx:110: error: com::sun::star::uno::Any::Any(const void*, typelib_TypeDescriptionReference*) /home/chris/project/openoffice/solver/680/unxlngi4.pro/inc/com/sun/star/uno/Any.hxx:104: error: com::sun::star::uno::Any::Any(const void*, typelib_TypeDescription*) /home/chris/project/openoffice/solver/680/unxlngi4.pro/inc/com/sun/star/uno/Any.hxx:97: error: com::sun::star::uno::Any::Any(const void*, const com::sun::star::uno::Type&) /home/chris/project/openoffice/solver/680/unxlngi4.pro/inc/com/sun/star/uno/Any.hxx:92: error: com::sun::star::uno::Any::Any(const com::sun::star::uno::Any&) /home/chris/project/openoffice/solver/680/unxlngi4.pro/inc/com/sun/star/uno/Any.hxx:83: error: com::sun::star::uno::Any::Any(bool) /home/chris/project/openoffice/solver/680/unxlngi4.pro/inc/com/sun/star/uno/Any.hxx:68: error: com::sun::star::uno::Any::Any() /home/chris/project/openoffice/desktop/source/deployment/manager/dp_manager.cxx:582: error: syntax error before `)' token /home/chris/project/openoffice/desktop/source/deployment/manager/dp_manager.cxx:586: error: invalid initialization of reference of type 'const com::sun::star::uno::Any&' from expression of type 'com::sun::star::uno::Any (*)(...)' ../inc/dp_interact.h:119: error: in passing argument 1 of `bool dp_misc::interactContinuation(const com::sun::star::uno::Any&, const com::sun::star::uno::Type&, const com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment>&, bool*, bool*)' /home/chris/project/openoffice/desktop/source/deployment/manager/dp_manager.cxx:590: error: no matching function for call to `com::sun::star::deployment::DeploymentException::DeploymentException(rtl::OUString, cppu::OWeakObject*, com::sun::star::uno::Any (&)(...))' /home/chris/project/openoffice/solver/680/unxlngi4.pro/inc/offuh/com/sun/star/deployment/DeploymentException.hpp:40: error: candidates are: com::sun::star::deployment::DeploymentException::DeploymentException(const com::sun::star::deployment::DeploymentException&) /home/chris/project/openoffice/solver/680/unxlngi4.pro/inc/offuh/com/sun/star/deployment/DeploymentException.hpp:36: error: com::sun::star::deployment::DeploymentException::DeploymentException(const rtl::OUString&, const com::sun::star::uno::Reference<com::sun::star::uno::XInterface>&, const com::sun::star::uno::Any&) /home/chris/project/openoffice/solver/680/unxlngi4.pro/inc/offuh/com/sun/star/deployment/DeploymentException.hpp:31: error: com::sun::star::deployment::DeploymentException::DeploymentException() /home/chris/project/openoffice/desktop/source/deployment/manager/dp_manager.cxx:595: error: no matching function for call to `com::sun::star::ucb::CommandFailedException::CommandFailedException(rtl::OUString, cppu::OWeakObject*, com::sun::star::uno::Any (&)(...))' /home/chris/project/openoffice/solver/680/unxlngi4.pro/inc/offuh/com/sun/star/ucb/CommandFailedException.hpp:40: error: candidates are: com::sun::star::ucb::CommandFailedException::CommandFailedException(const com::sun::star::ucb::CommandFailedException&) /home/chris/project/openoffice/solver/680/unxlngi4.pro/inc/offuh/com/sun/star/ucb/CommandFailedException.hpp:36: error: com::sun::star::ucb::CommandFailedException::CommandFailedException(const rtl::OUString&, const com::sun::star::uno::Reference<com::sun::star::uno::XInterface>&, const com::sun::star::uno::Any&) /home/chris/project/openoffice/solver/680/unxlngi4.pro/inc/offuh/com/sun/star/ucb/CommandFailedException.hpp:31: error: com::sun::star::ucb::CommandFailedException::CommandFailedException() dmake: Error code 1, while making '../../../unxlngi4.pro/slo/dp_manager.obj' '---* tg_merge.mk *---' ERROR: Error 65280 occurred while making /home/chris/project/openoffice/desktop/source/deployment/manager dmake: Error code 1, while making 'build_instsetoo_native' '---* *---' From IRC #openoffice.org: <gcj> anyone know why I get this error when compiling SRC680_m187: desktop/source/deployment/manager/dp_manager.cxx:580: error: syntax error before `+' token (and many others in that file) <paveljanik> gcj: please paste the full log somewhere. Probably missing some file or something. <paveljanik> or wrong patch... <gcj> http://p.caboo.se/17262 <paveljanik> gcj: which version are you building? <gcj> SRC680_m187 <gcj> checked out yesterday <paveljanik> looks like it is another instance of gcc-3.3.x parser bug ;-) <gcj> ok i'll try gcc34 <gcj> how do i do that again? CC=gcc34 CXX=g++34 ./configure? <Fridrich> gcj: wait a while <paveljanik> gcj: first of all, please file an issue for this ;-) <gcj> ok will do <Fridrich> gcj: since you are building with 3.3, let it go to the end. I am looking towards how can one patch it <gcj> assign to? paveljanik? <paveljanik> gcj: no ;-) <gcj> mba? <paveljanik> Fridrich: will you accept it? ;-) * paveljanik doesn't have gcc-3.3 anymore <gcj> anything i should attach? config.log? <Fridrich> paveljanik: no <paveljanik> gcj: just upgrade to gcc-3.4.1+. <Fridrich> paveljanik: but will try to come with a patch <Fridrich> paveljanik: but not time to go through the CWS -> QA -> new ->QA -> ... -> new -> QA ->nominated -> integrated cycle
<Fridrich> gcj, if you add an openning bracket before getResourceString and closing one after title, does it pass?
@fridrich: no, sorry, reduces the errors to one: /home/chris/project/openoffice/desktop/source/deployment/manager/dp_manager.cxx:580: error: syntax error before `+' token dmake: Error code 1, while making '../../../unxlngi4.pro/slo/dp_manager.obj' '---* tg_merge.mk *---' ERROR: Error 65280 occurred while making /home/chris/project/openoffice/desktop/source/deployment/manager dmake: Error code 1, while making 'build_instsetoo_native' '---* *---'
Created attachment 39721 [details] Patch required to compile with gcc 3.3
Confirmed with gcc 3.3.5 in unxlngi4.pro environment. Attached patch makes it compile.
assigned to developer
jl ->hr: Do we support compilers < 3.4.1 at all? I found at http://wiki.services.openoffice.org/wiki/Compiler_versions_used_by_port_maintainers_and_release_engineers that we need: GCC 3.4.1 + enum patch + visibility patch
We have this discussion from time to time. On mac OSX 10.3.x, the compiler is gcc 3.3.x and the change is not as disruptive as that. If you want, I can set a CWS, bug hr to QA it and I push it up :-)
@jl: since we need gcc-3.3 for MacOSX 10.3 and an OS2 variant we'll still take patches for gcc-3.3 as long as they are not to convoluted. This one is certainly not. @fridrich: go ahead with the patch please
@fridrich: Please do it. I set the issue back to you.
@hr: When you verify this issue, call me so that we can quickly check the feature of which the code is modified. Just to make sure ...
Fixed in CWS fsfixed04 @hr: Heiner, the ball is now yours :-)
.
Verified.
@jl: please close issue after rechecking in mws.
Also affected for gcc-3.3 + MacOSX Panther. thank you all!
seen on OOE680_m3.
Closing issue.