Apache OpenOffice (AOO) Bugzilla – Issue 88156
OSL_DEBUG_LEVEL > 1 build fails with sw_w4watr.cxx without ENABLE_BYTESTRING_STREAM_OPERATORS
Last modified: 2013-08-07 14:44:00 UTC
My DEV300_m5 build with debug enabled fails while compiling binfilter/bf_sw/source/filter/w4w/sw_w4watr.cxx This is the compiler output: /usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/binfilter/bf_sw/source/filter/w4w/sw_w4watr.cxx: In function 'void binfilter::OutW4W_SwFmtPageDesc1(binfilter::SwW4WWriter&, const binfilter::SwPageDesc*)': /usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/binfilter/bf_sw/source/filter/w4w/sw_w4watr.cxx:293: error: no match for 'operator<<' in '((binfilter::SwW4WWriter*)rW4WWrt)->binfilter::SwW4WWriter::<anonymous>.binfilter::Writer::Strm() << sTmp' /usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solver/300/unxfbsdx/inc/tools/stream.hxx:393: note: candidates are: SvStream& SvStream::operator<<(sal_uInt16) /usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solver/300/unxfbsdx/inc/tools/stream.hxx:394: note: SvStream& SvStream::operator<<(sal_uInt32) /usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solver/300/unxfbsdx/inc/tools/stream.hxx:395: note: SvStream& SvStream::operator<<(long int) /usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solver/300/unxfbsdx/inc/tools/stream.hxx:396: note: SvStream& SvStream::operator<<(short int) /usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solver/300/unxfbsdx/inc/tools/stream.hxx:397: note: SvStream& SvStream::operator<<(int) /usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solver/300/unxfbsdx/inc/tools/stream.hxx:398: note: SvStream& SvStream::operator<<(signed char) /usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solver/300/unxfbsdx/inc/tools/stream.hxx:399: note: SvStream& SvStream::operator<<(char) /usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solver/300/unxfbsdx/inc/tools/stream.hxx:400: note: SvStream& SvStream::operator<<(unsigned char) /usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solver/300/unxfbsdx/inc/tools/stream.hxx:401: note: SvStream& SvStream::operator<<(float) /usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solver/300/unxfbsdx/inc/tools/stream.hxx:402: note: SvStream& SvStream::operator<<(const double&) /usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solver/300/unxfbsdx/inc/tools/stream.hxx:403: note: SvStream& SvStream::operator<<(const char*) /usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solver/300/unxfbsdx/inc/tools/stream.hxx:404: note: SvStream& SvStream::operator<<(const unsigned char*) /usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solver/300/unxfbsdx/inc/tools/stream.hxx:411: note: SvStream& SvStream::operator<<(SvStream&) ../../../../inc/bf_sw/ndhints.hxx:206: note: SvStream& binfilter::operator<<(SvStream&, const binfilter::SwpHints&) /usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solver/300/unxfbsdx/inc/tools/stream.hxx:637: note: SvStream& operator<<(SvStream&, SvStream& (*)(SvStream&)) The reason for this is the debugging output functions use ByteStream instances to construct debug messages. The fix that "worked for me" is: Index: makefile.mk =================================================================== RCS file: /cvs/framework/binfilter/bf_sw/source/filter/w4w/makefile.mk,v retrieving revision 1.10 diff -u -r1.10 makefile.mk --- makefile.mk 10 Apr 2008 17:38:50 -0000 1.10 +++ makefile.mk 11 Apr 2008 00:05:18 -0000 @@ -54,6 +54,10 @@ CDEFS=$(CDEFS) -Dmydebug .ENDIF +.IF "$(OSL_DEBUG_LEVEL)" > 0 +CDEFS += -DENABLE_BYTESTRING_STREAM_OPERATORS +.ENDIF + # --- Files -------------------------------------------------------- CXXFILES = \ I believe there is nothing FreeBSD-specific in this issue except that we can easily increase debug level for everything. --Marcin
Please have a look
Martin, any chance that we could move this forward?
wrong component
committed to buildporting31b
Changed target. The CWS (buildporting31b) where this issue is integrated is targeted for OOo 3.2. Therefore I change the target of this issue too.
I cannot reproduce this on other platforms (e.g. Linux with gcc 4.1).
wontfix -> closed