Issue 72152 - compilation error in svx/source/svdraw/impgrfll.cxx
Summary: compilation error in svx/source/svdraw/impgrfll.cxx
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: current
Hardware: All Unix, all
: P4 Trivial (vote)
Target Milestone: OOo 2.2
Assignee: pavel
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-30 17:38 UTC by bluedwarf
Modified: 2007-01-31 20:30 UTC (History)
3 users (show)

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


Attachments
Proposed patch for this issue (818 bytes, patch)
2006-12-12 14:14 UTC, bluedwarf
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description bluedwarf 2006-11-30 17:38:33 UTC
Compilation failed while making impgrfll.obj with the following error message.
My build environment is,
 * gcc 3.3.5 20050117
 * SUSE Linux Professional 9.1

As far as I know, i36729 is simliar to this issue.

------------------------------

Making: ../../unxlngi4.pro/slo/impgrfll.obj

ccache g++ -fmessage-length=0 -c -O1   -I.  -I../../unxlngi4.pro/inc/svdraw
-I../inc -I../../inc/pch -I../../inc -I../../unx/inc -I../../unxlngi4.pro/inc
-I. -I/home/ooosrc/SRC680_m195/solver/680/unxlngi4.pro/inc/stl
-I/home/ooosrc/SRC680_m195/solver/680/unxlngi4.pro/inc/external
-I/home/ooosrc/SRC680_m195/solver/680/unxlngi4.pro/inc
-I/home/ooosrc/SRC680_m195/solenv/unxlngi4/inc
-I/home/ooosrc/SRC680_m195/solenv/inc -I/home/ooosrc/SRC680_m195/res
-I/home/ooosrc/SRC680_m195/solver/680/unxlngi4.pro/inc/stl
-I/home/ooosrc/SRC680_m195/solenv/inc/Xp31 -I/usr/lib/jvm/java-1.4.2-sun/include
-I/usr/lib/jvm/java-1.4.2-sun/include/linux
-I/usr/lib/jvm/java-1.4.2-sun/include/native_threads/include
-I/usr/X11R6/include    
-I/home/ooosrc/SRC680_m195/solver/680/unxlngi4.pro/inc/offuh -I. -I../../res -I.
-pipe -mcpu=pentiumpro -include preinclude.h -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.5 -DSUPD=680 -DPRODUCT -DNDEBUG
-DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DCUI -DSOLAR_JAVA -DSRC680=SRC680
  -DSVX_DLLIMPLEMENTATION -DSHAREDLIB -D_DLL_  -DMULTITHREAD -DEXCEPTIONS_OFF
-fno-exceptions  -o ../../unxlngi4.pro/slo/impgrfll.o
/home/ooosrc/SRC680_m195/svx/source/svdraw/impgrfll.cxx 

/home/ooosrc/SRC680_m195/svx/source/svdraw/impgrfll.cxx: In constructor
`ImpGraphicFill::ImpGraphicFill(const SdrObject&, const XOutputDevice&, const
SfxItemSet&, bool)':

/home/ooosrc/SRC680_m195/svx/source/svdraw/impgrfll.cxx:352: error: type
specifier omitted for parameter `aColorSolid'

/home/ooosrc/SRC680_m195/svx/source/svdraw/impgrfll.cxx:353: error: syntax error
before `const'

/home/ooosrc/SRC680_m195/svx/source/svdraw/impgrfll.cxx:353: error: function
`SvtGraphicFill aFill(...)' is initialized like a variable

/home/ooosrc/SRC680_m195/svx/source/svdraw/impgrfll.cxx:353: error: syntax error
before `.' token

/home/ooosrc/SRC680_m195/svx/source/svdraw/impgrfll.cxx:372: error: ambiguous
overload for 'operator<<' in 'aMemStm << aFill'

/home/ooosrc/SRC680_m195/solver/680/unxlngi4.pro/inc/tools/stream.hxx:393:
error: candidates are: SvStream& SvStream::operator<<(short unsigned int) <near
match>

/home/ooosrc/SRC680_m195/solver/680/unxlngi4.pro/inc/tools/stream.hxx:394:
error:                 SvStream& SvStream::operator<<(long unsigned int) <near
match>

/home/ooosrc/SRC680_m195/solver/680/unxlngi4.pro/inc/tools/stream.hxx:395:
error:                 SvStream& SvStream::operator<<(long int) <near match>

/home/ooosrc/SRC680_m195/solver/680/unxlngi4.pro/inc/tools/stream.hxx:396:
error:                 SvStream& SvStream::operator<<(short int) <near match>

/home/ooosrc/SRC680_m195/solver/680/unxlngi4.pro/inc/tools/stream.hxx:397:
error:                 SvStream& SvStream::operator<<(int) <near match>

/home/ooosrc/SRC680_m195/solver/680/unxlngi4.pro/inc/tools/stream.hxx:398:
error:                 SvStream& SvStream::operator<<(signed char) <near match>

/home/ooosrc/SRC680_m195/solver/680/unxlngi4.pro/inc/tools/stream.hxx:399:
error:                 SvStream& SvStream::operator<<(char) <near match>

/home/ooosrc/SRC680_m195/solver/680/unxlngi4.pro/inc/tools/stream.hxx:400:
error:                 SvStream& SvStream::operator<<(unsigned char) <near match>

/home/ooosrc/SRC680_m195/solver/680/unxlngi4.pro/inc/tools/color.hxx:163: error:
                SvStream& operator<<(SvStream&, const Color&) <near match>

/home/ooosrc/SRC680_m195/solver/680/unxlngi4.pro/inc/tools/fract.hxx:106: error:
                SvStream& operator<<(SvStream&, const Fraction&) <near match>

/home/ooosrc/SRC680_m195/solver/680/unxlngi4.pro/inc/tools/poly.hxx:248: error:
                SvStream& operator<<(SvStream&, const Polygon&) <near match>

/home/ooosrc/SRC680_m195/solver/680/unxlngi4.pro/inc/tools/poly.hxx:349: error:
                SvStream& operator<<(SvStream&, const PolyPolygon&) <near match>

/home/ooosrc/SRC680_m195/solver/680/unxlngi4.pro/inc/tools/stream.hxx:638:
error:                 SvStream& operator<<(SvStream&, SvStream&(*)(SvStream&))
<near match>

../../inc/svdsob.hxx:137: error:                 SvStream& operator<<(SvStream&,
const SetOfByte&) <near match>

dmake:  Error code 1, while making '../../unxlngi4.pro/slo/impgrfll.obj'

'---* tg_merge.mk *---'



ERROR: Error 65280 occurred while making /home/ooosrc/SRC680_m195/svx/source/svdraw
Comment 1 Olaf Felka 2006-12-01 08:20:59 UTC
Please have a look.
Comment 2 bluedwarf 2006-12-12 14:14:46 UTC
Created attachment 41369 [details]
Proposed patch for this issue
Comment 3 bluedwarf 2006-12-12 14:17:22 UTC
The reason for this issue is that the statement is interpreted as a definition
of a new method.
Comment 4 maho.nakata 2006-12-21 00:55:07 UTC
this is a regression of gcc-3.3.
Comment 5 maho.nakata 2006-12-21 01:07:37 UTC
pjanik: any comments?
thanks in advance!
Comment 6 pavel 2006-12-21 05:21:43 UTC
maho: there already is a patch ;-)

I'll include it in pj69.
Comment 7 pavel 2006-12-21 05:22:00 UTC
.
Comment 8 pavel 2006-12-21 05:22:18 UTC
.
Comment 9 pavel 2006-12-21 08:14:57 UTC
patch applied to pj69.
Comment 10 pavel 2007-01-05 14:44:27 UTC
maho: please verify
Comment 11 maho.nakata 2007-01-05 23:03:48 UTC
verified in pj69.
thanks!
Comment 12 pavel 2007-01-31 20:30:20 UTC
.