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. > 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. > 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. 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 del wntmsci12/bin/*.dll cd util dmake debug=t Eike -- OOo/SO Calc core developer. Number formatter stricken i18n transpositionizer. SunSign 0x87F8D412 : 2F58 5236 DB02 F335 8304 7D6C 65C9 F9B5 87F8 D412 OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't send personal mail to the [email protected] account, which I use for mailing lists only and don't read from outside Sun. Use [email protected] Thanks.
pgpFjW9T3dIQG.pgp
Description: PGP signature
