[Libreoffice] Problem building sw (writer) in debug mode under Linux

Giuseppe Castagno giuseppe.castagno at acca-esse.eu
Tue Nov 16 01:34:41 PST 2010


Hi all,

per subject, with a pull -r from this morning (CET), compiling sw with:
build -P2 debug=true

I get this:

compiling: sw/source/core/text/inftxt.cxx
Making:    all_basflt.dpslo
Compiling: sw/source/filter/basflt/docfact.cxx
/home/beppe/LibO-b/LibO_master-head-wrk/wrk.d/clone/writer/sw/source/core/text/inftxt.cxx:123: 
error: no 'sal_Bool SwTxtSizeInfo::IsOptCalm() const' member function 
declared in class 'SwTxtSizeInfo'
/home/beppe/LibO-b/LibO_master-head-wrk/wrk.d/clone/writer/sw/source/core/text/inftxt.cxx:125: 
error: no 'sal_Bool SwTxtSizeInfo::IsOptLow() const' member function 
declared in class 'SwTxtSizeInfo'
/home/beppe/LibO-b/LibO_master-head-wrk/wrk.d/clone/writer/sw/source/core/text/inftxt.cxx:127: 
error: no 'sal_Bool SwTxtSizeInfo::IsOptDbg() const' member function 
declared in class 'SwTxtSizeInfo'
/home/beppe/LibO-b/LibO_master-head-wrk/wrk.d/clone/writer/sw/source/core/text/inftxt.cxx:129: 
error: no 'sal_Bool SwTxtSizeInfo::IsOptTest1() const' member function 
declared in class 'SwTxtSizeInfo'
/home/beppe/LibO-b/LibO_master-head-wrk/wrk.d/clone/writer/sw/source/core/text/inftxt.cxx:131: 
error: no 'sal_Bool SwTxtSizeInfo::IsOptTest2() const' member function 
declared in class 'SwTxtSizeInfo'
/home/beppe/LibO-b/LibO_master-head-wrk/wrk.d/clone/writer/sw/source/core/text/inftxt.cxx:133: 
error: no 'sal_Bool SwTxtSizeInfo::IsOptTest3() const' member function 
declared in class 'SwTxtSizeInfo'
/home/beppe/LibO-b/LibO_master-head-wrk/wrk.d/clone/writer/sw/source/core/text/inftxt.cxx:135: 
error: no 'sal_Bool SwTxtSizeInfo::IsOptTest4() const' member function 
declared in class 'SwTxtSizeInfo'
/home/beppe/LibO-b/LibO_master-head-wrk/wrk.d/clone/writer/sw/source/core/text/inftxt.cxx:137: 
error: no 'sal_Bool SwTxtSizeInfo::IsOptTest5() const' member function 
declared in class 'SwTxtSizeInfo'
/home/beppe/LibO-b/LibO_master-head-wrk/wrk.d/clone/writer/sw/source/core/text/inftxt.cxx:139: 
error: no 'sal_Bool SwTxtSizeInfo::IsOptTest6() const' member function 
declared in class 'SwTxtSizeInfo'
/home/beppe/LibO-b/LibO_master-head-wrk/wrk.d/clone/writer/sw/source/core/text/inftxt.cxx:141: 
error: no 'sal_Bool SwTxtSizeInfo::IsOptTest7() const' member function 
declared in class 'SwTxtSizeInfo'
/home/beppe/LibO-b/LibO_master-head-wrk/wrk.d/clone/writer/sw/source/core/text/inftxt.cxx:143: 
error: no 'sal_Bool SwTxtSizeInfo::IsOptTest8() const' member function 
declared in class 'SwTxtSizeInfo'
dmake:  Error code 1, while making '../../../unxlngx6.pro/slo/inftxt.obj'

I patched with:

$ git diff
diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx
index c6a1bdf..7de2ee8 100644
--- a/sw/source/core/text/inftxt.cxx
+++ b/sw/source/core/text/inftxt.cxx
@@ -118,7 +118,7 @@ namespace numfunc
  static sal_Bool bDbgLow = sal_False;
  #endif

-#if OSL_DEBUG_LEVEL > 1
+#if DBG_UTIL

  sal_Bool SwTxtSizeInfo::IsOptCalm() const { return !GetOpt().IsTest3(); }



in doing so I reverted commit add6a475aa06c5e852294715e6926cdb18ffc7bb 
in writer repo to be able to proceed, but: does that break the Windows 
build ?
Was it correct or there is another way?

Now, passing that, I've another build breackage: I'm investigating.

beppec56.
-- 
Kind Regards,
Giuseppe Castagno
Acca Esse http://www.acca-esse.eu
giuseppe.castagno at acca-esse.eu
beppec56 at openoffice.org


More information about the LibreOffice mailing list