Hi Eiki,

Eike Rathke schrieb:
Hi Regina,

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

Now I have got a new PC :), time and space is no longer a problem.

Congrats! :)

So I want to do a build with debug information, first time.

I added
 --enable-debug \
 --enable-dbgutil \

Leave out --enable-debug, the build would be extremely huge and you
usually don't need the entire office with debug code, on some platforms
it wouldn't run in a debugger (gdb) due to the amount of symbols, and
I'm not even sure whether anyone successfully tried to build that in the
last years.. --enable-dbgutil is fine and builds the non-pro version
with assertions and such, but no debug symbols. For this, after having
a complete build and installation, build selected modules' libraries
with debug code, for example

cd sc
build killobj
build debug=true


and copy the resulting libraries to the appropriate place in the OOo
installation.

That works now. I tested debug=true with module sw and scaddins.

sci.lib(scmi.dll) : error LNK2005: "public: unsigned short __thiscall ScCollection::GetCount(void)const " (?getco...@sccollection@@QBEGXZ) already defined in scui.lib(pvfundlg.obj)

Yes, these are nasty, that's
http://qa.openoffice.org/issues/show_bug.cgi?id=100534
MSVC somehow includes a few definitions in multiple objects, IIRC
related to DLL_PUBLIC/DLL_PRIVATE declarations. Unfortunately, so far
there is no resolution that would satisfy all compilers. Daniel
apparently had some workaround, see issue, which didn't work on other
platforms. He'll be back tomorrow so we can ask him for a temporary
patch to make that work.

I would like to get this patch.


Workaround (hopefully, didn't try) for now: remove all object files
mentioned in the error messages and rebuild the module without debug.
Then remove the resulting DLLs and relink them with debug to include
debug code of other object files again:

cd sc
del wntmsci12/slo/{the,object,files,mentioned}.obj
build

Here it breaks again :( and the .obj files are there again.

del wntmsci12/bin/*.dll
cd util
dmake debug=t

kind regards
Regina

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to