Re: [dev] Re: Building CWS odff06 with debug

2009-07-28 Thread Regina Henschel

Hi all,

Michael Stahl schrieb:

Eike Rathke wrote:

Hi Regina,

On Sunday, 2009-07-26 21:15:15 +0200, Regina Henschel wrote:

dbgoutsw.cxx
c:/odff06debug/solver/300/wntmsci12.pro/bin/makedepend
@C:/cygwin/tmp/mkosWuQI  ../../../wntmsci12.pro/misc/s_drviewsa.dpcc
c:/odff06debug/sw/source/core/doc/dbgoutsw.cxx(998) : error C2375:
'dbg_out' : redefinition; different linkage
c:\odff06debug\sw\inc\dbgoutsw.hxx(121) : see declaration of
'dbg_out'
c:/odff06debug/sw/source/core/doc/dbgoutsw.cxx(1024) : error C2375:
'dbg_out' : redefinition; different linkage
c:\odff06debug\sw\inc\dbgoutsw.hxx(122) : see declaration of
'dbg_out'
dmake:  Error code 2, while making '../../../wntmsci12.pro/slo/dbgoutsw.obj'

Maybe someone from the writer team knows these.


the ever broken dbgout stuff...
it seems the offending functions are marked with SW_DLLPUBLIC in the cxx
file, but not in the header, which causes the error above.
either remove SW_DLLPUBLIC from the function definitions in the cxx file,
or put the SW_DLLPUBLIC in the header where the functions are declared;
one of these should work :)
(i hope some windows-using developer has already fixed that in some cws
somewhere...)



I have added SW_DLLPUBLIC in dbgoutsw.hxx.

Then I have build it with --enable-dbgutil and left out --enable-debug 
as Eike told me. That build finished. I installed it and started it.


Next step I did (analog to Eike's mail)
cd sw
build killobj
build debug=true

and copied the dll-files to Basis\program.

I started OOo again, used a new text document and pressed DT F3 to 
insert a dummy text. I got a Debug Output window with Error: 
Assertion failed.

FILE: ../sw/source/core/doc/docnum.cxx at line 2862
ERROR: SwDoc::createListForListStyle(..) - a list for the provided 
list style name already exists. Serious defect - please inform OD.


Did I make a mistake or is there an error which I should report in 
Issuetracker?


kind regards
Regina

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



[dev] Re: Building CWS odff06 with debug

2009-07-28 Thread Michael Stahl
Regina Henschel wrote:
 Hi all,
 
 I have added SW_DLLPUBLIC in dbgoutsw.hxx.
 
 Then I have build it with --enable-dbgutil and left out --enable-debug 
 as Eike told me. That build finished. I installed it and started it.
 
 Next step I did (analog to Eike's mail)
 cd sw
 build killobj
 build debug=true
 
 and copied the dll-files to Basis\program.
 
 I started OOo again, used a new text document and pressed DT F3 to 
 insert a dummy text. I got a Debug Output window with Error: 
 Assertion failed.
 FILE: ../sw/source/core/doc/docnum.cxx at line 2862
 ERROR: SwDoc::createListForListStyle(..) - a list for the provided 
 list style name already exists. Serious defect - please inform OD.
 
 Did I make a mistake or is there an error which I should report in 
 Issuetracker?

i've just asked Oliver, and he said it's probably a bug, and you should
file an issue (assign it to od).

unfortunately, there are quite some assertions that have been in the code
for a long time, and are easily triggered (like the Ascent != Descent
one). this one does not seem to be one of those (as the Serious defect
already suggests).

(note that you can also disable the debug assertion windows, or at least
make them not be dialogs; for details see here:)
http://wiki.services.openoffice.org/wiki/Non_Product_Build

 kind regards
 Regina

regards,
michael

-- 
The question of whether a computer can think is no more interesting
 than the question of whether a submarine can swim.
 -- Edsger W. Dijkstra


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] Re: Building CWS odff06 with debug

2009-07-28 Thread Regina Henschel

Hi Michael,

Michael Stahl schrieb:


i've just asked Oliver, and he said it's probably a bug, and you should
file an issue (assign it to od).


http://www.openoffice.org/issues/show_bug.cgi?id=103860

kind regards
Regina

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



[dev] Re: Building CWS odff06 with debug

2009-07-27 Thread Michael Stahl
Eike Rathke wrote:
 Hi Regina,
 
 On Sunday, 2009-07-26 21:15:15 +0200, Regina Henschel wrote:
 dbgoutsw.cxx
 c:/odff06debug/solver/300/wntmsci12.pro/bin/makedepend
 @C:/cygwin/tmp/mkosWuQI  ../../../wntmsci12.pro/misc/s_drviewsa.dpcc
 c:/odff06debug/sw/source/core/doc/dbgoutsw.cxx(998) : error C2375:
 'dbg_out' : redefinition; different linkage
 c:\odff06debug\sw\inc\dbgoutsw.hxx(121) : see declaration of
 'dbg_out'
 c:/odff06debug/sw/source/core/doc/dbgoutsw.cxx(1024) : error C2375:
 'dbg_out' : redefinition; different linkage
 c:\odff06debug\sw\inc\dbgoutsw.hxx(122) : see declaration of
 'dbg_out'
 dmake:  Error code 2, while making '../../../wntmsci12.pro/slo/dbgoutsw.obj'
 
 Maybe someone from the writer team knows these.

the ever broken dbgout stuff...
it seems the offending functions are marked with SW_DLLPUBLIC in the cxx
file, but not in the header, which causes the error above.
either remove SW_DLLPUBLIC from the function definitions in the cxx file,
or put the SW_DLLPUBLIC in the header where the functions are declared;
one of these should work :)
(i hope some windows-using developer has already fixed that in some cws
somewhere...)

regards,
michael

-- 
Computer Science is no more about computers than
 astronomy is about telescopes. -- Edsger W. Dijkstra


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org