Issue 70340 - Compile fails with gcc 3.3 on desktop/source/deployment/manager/dp_manager.cxx in 680m187
Summary: Compile fails with gcc 3.3 on desktop/source/deployment/manager/dp_manager.cx...
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: current
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 2.1
Assignee: joachim.lingner
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-12 09:51 UTC by gcc111
Modified: 2006-11-20 15:53 UTC (History)
4 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Patch required to compile with gcc 3.3 (1.04 KB, patch)
2006-10-13 09:21 UTC, gcc111
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description gcc111 2006-10-12 09:51:55 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
Comment 1 gcc111 2006-10-12 09:54:31 UTC
<Fridrich> gcj, if you add an openning bracket before getResourceString and
closing one after title, does it pass?
Comment 2 gcc111 2006-10-12 20:20:43 UTC
@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'
'---*  *---'
Comment 3 gcc111 2006-10-13 09:21:35 UTC
Created attachment 39721 [details]
Patch required to compile with gcc 3.3
Comment 4 ooo 2006-10-15 03:38:56 UTC
Confirmed with gcc 3.3.5 in unxlngi4.pro environment. Attached patch makes it
compile.
Comment 5 Mathias_Bauer 2006-10-16 12:00:55 UTC
assigned to developer
Comment 6 joachim.lingner 2006-10-18 09:59:08 UTC
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

Comment 7 fridrich.strba 2006-10-18 10:19:12 UTC
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 :-)
Comment 8 jens-heiner.rechtien 2006-10-18 14:57:37 UTC
@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
Comment 9 joachim.lingner 2006-10-18 15:08:01 UTC
@fridrich: Please do it. I set the issue back to you.
Comment 10 joachim.lingner 2006-10-18 15:11:14 UTC
@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 ...
Comment 11 fridrich.strba 2006-10-19 10:55:04 UTC
Fixed in CWS fsfixed04
@hr: Heiner, the ball is now yours :-)
Comment 12 fridrich.strba 2006-10-19 10:55:33 UTC
.
Comment 13 jens-heiner.rechtien 2006-10-19 15:44:05 UTC
Verified.
Comment 14 jens-heiner.rechtien 2006-10-19 15:45:17 UTC
@jl: please close issue after rechecking in mws.
Comment 15 maho.nakata 2006-10-27 00:29:28 UTC
Also affected for gcc-3.3 + MacOSX Panther. thank you all!
Comment 16 maho.nakata 2006-11-15 06:29:21 UTC
seen on OOE680_m3.
Comment 17 jens-heiner.rechtien 2006-11-20 15:53:47 UTC
Closing issue.