Issue 88156 - OSL_DEBUG_LEVEL > 1 build fails with sw_w4watr.cxx without ENABLE_BYTESTRING_STREAM_OPERATORS
Summary: OSL_DEBUG_LEVEL > 1 build fails with sw_w4watr.cxx without ENABLE_BYTESTRING_...
Status: CLOSED WONT_FIX
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: DEV300m5
Hardware: PC All
: P2 Trivial (vote)
Target Milestone: ---
Assignee: Martin Hollmichel
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-11 01:06 UTC by saperski
Modified: 2013-08-07 14:44 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description saperski 2008-04-11 01:06:05 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
Comment 1 Olaf Felka 2008-04-11 07:16:30 UTC
Please have a look
Comment 2 Mathias_Bauer 2008-11-20 16:46:23 UTC
Martin, any chance that we could move this forward?
Comment 3 Mathias_Bauer 2008-11-20 16:47:03 UTC
wrong component
Comment 4 Martin Hollmichel 2008-11-21 16:55:47 UTC
committed to buildporting31b
Comment 5 thorsten.ziehm 2009-03-20 11:21:32 UTC
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.
Comment 6 Martin Hollmichel 2009-07-27 15:06:12 UTC
I cannot reproduce this on other platforms (e.g. Linux with gcc 4.1).
Comment 7 Mechtilde 2009-08-02 14:10:53 UTC
wontfix -> closed