Issue 32040 - Make OOo buildable with MS VC Toolkit 2003
Summary: Make OOo buildable with MS VC Toolkit 2003
Status: CLOSED FIXED
Alias: None
Product: Build Tools
Classification: Code
Component: solenv (show other issues)
Version: current
Hardware: PC Windows 2000
: P4 Trivial (vote)
Target Milestone: ---
Assignee: Martin Hollmichel
QA Contact: issues@tools
URL:
Keywords:
Depends on: 30561 30978 31866 32544 32552 33596 33832 33833 33835 33897 34228
Blocks:
  Show dependency tree
 
Reported: 2004-07-23 18:23 UTC by quetschke
Modified: 2013-08-07 15:34 UTC (History)
3 users (show)

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


Attachments
Patch for config_office + solenv/inc/wnt.mk (2.83 KB, patch)
2004-07-23 18:24 UTC, quetschke
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description quetschke 2004-07-23 18:23:23 UTC
berkeleydb and icu are buildable without the IDE right now, see issue 30561 and
issue 30978.

I tried to build the rest of OOo (without python/pyuno) and here is what I found
so far:

You also need the .NET Framework SDK (for msvcrt.lib) and the 64 bit part
of the PSDK (for nmake).

You have to to add the path to ?/Microsoft SDK/Bin/Win64/ (for nmake) to
your PATH before calling configure and apply the following patch.
Attention! HACK, it hardcodes some pathes for libs/includes unconditionally
for vc toolkit.

Changes:
Add: c:\Programme\Microsoft Visual Studio .NET 2003\Vc7 (Framework SDK) for
     msvcrt.lib
and  $PSDK_HOME/lib/IA64 (Platform SDK) for otherwise unavailable *.lib
to $ILIB.

Add: $PSDK_HOME/include/Win64/crt for comutil.h + ? to $SOLARINC

This compiles a while ...
Comment 1 quetschke 2004-07-23 18:24:30 UTC
Created attachment 16741 [details]
Patch for config_office + solenv/inc/wnt.mk
Comment 2 quetschke 2004-07-23 18:30:50 UTC
... until it breaks in dtrans/util with:

Making: ../wntmsci10.pro/bin/sysdtrans.dll
guw.pl /cygdrive/c/PROGRA~1/MIA4C6~1/bin/cl.exe -c
-Fo../wntmsci10.pro/slo/sysdtrans_version.obj -DWNT  -I../wntmsci10.pro/inc
/w1/cws_src680_ooo20040704/solenv/src/version.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3052 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

version.c
guw.pl rc -DWIN32 -I -I.  -I. -I../inc -I../inc -I../WIN/inc
-I../wntmsci10.pro/inc -I.
-I/w1/cws_src680_ooo20040704/solver/680/wntmsci10.pro/inc/stl
-I/w1/cws_src680_ooo20040704/solver/680/wntmsci10.pro/inc/external
-I/w1/cws_src680_ooo20040704/solver/680/wntmsci10.pro/inc
-I/w1/cws_src680_ooo20040704/solenv/wntmsci10/inc
-I/w1/cws_src680_ooo20040704/solenv/inc -I/w1/cws_src680_ooo20040704/res
-I/w1/cws_src680_ooo20040704/solver/680/wntmsci10.pro/inc/stl
-I/cygdrive/d/j2sdk1.4.2_04/include/win32 -I/cygdrive/d/j2sdk1.4.2_04/include
-I/cygdrive/c/PROGRA~1/MICROS~3/include -I/cygdrive/c/PROGRA~1/MIA4C6~1/include
-I/cygdrive/c/PROGRA~1/MICROS~3/include/Win64/crt     -I. -I../res -I. 
../wntmsci10.pro/misc/sysdtrans_def.rc
cat ../wntmsci10.pro/misc/sysdtrans_def.res > ../wntmsci10.pro/misc/sysdtrans.res
guw.pl link  /MACHINE:IX86 @/tmp/mkb01728
Microsoft (R) Incremental Linker Version 7.10.3052
Copyright (C) Microsoft Corporation.  All rights reserved.

/MAP /OPT:NOREF /NODEFAULTLIB /RELEASE /DEBUG:full /SUBSYSTEM:CONSOLE /DLL
-out:../wntmsci10.pro/bin/sysdtrans.dll -map:../wntmsci10.pro/misc/sysdtrans.map
..\wntmsci10.pro\lib\isysdtrans.exp ..\wntmsci10.pro\slo\sysdtrans_version.obj
..\wntmsci10.pro\slo\sysdtrans_description.obj
..\wntmsci10.pro\slb\sysdtrans.lib ..\wntmsci10.pro\slb\dtutils.lib
..\wntmsci10.pro\slb\dtobjfact.lib ..\wntmsci10.pro\slb\mtaolecb.lib isal.lib
icppu.lib icppuhelper.lib uwinapi.lib advapi32.lib ole32.lib comsupp.lib
oleaut32.lib gdi32.lib msvcrt.lib uwinapi.lib kernel32.lib user32.lib
oldnames.lib stlport_vc71.lib ..\wntmsci10.pro\misc\sysdtrans.res 
dtobjfact.lib(DOTransferable.obj) : error LNK2019: unresolved external symbol
"void __stdcall _com_issue_error(long)" (?_com_issue_error@@YGXJ@Z) referenced
in function "public: int __thiscall CRawHGlobalPtr::Lock(void)"
(?Lock@CRawHGlobalPtr@@QAEHXZ)
sysdtrans.lib(WinClipbImpl.obj) : error LNK2019: unresolved external symbol
"void __stdcall _com_issue_error(long)" (?_com_issue_error@@YGXJ@Z) referenced
in function "public: __thiscall _com_ptr_t<class _com_IIID<struct
IDataObject,&struct __s_GUID const _GUID_0000010e_0000_0000_c000_000000000046>
>::_com_ptr_t<class _com_IIID<struct IDataObject,&struct __s_GUID const
_GUID_0000010e_0000_0000_c000_000000000046> ><class CAPNDataObject>(class
CAPNDataObject *)"
(??$?0VCAPNDataObject@@@?$_com_ptr_t@V?$_com_IIID@UIDataObject@@$1?_GUID_0000010e_0000_0000_c000_000000000046@@3U__s_GUID@@B@@@@QAE@PAVCAPNDataObject@@@Z)
dtobjfact.lib(DtObjFactory.obj) : error LNK2001: unresolved external symbol
"void __stdcall _com_issue_error(long)" (?_com_issue_error@@YGXJ@Z)
dtobjfact.lib(XNotifyingDataObject.obj) : error LNK2001: unresolved external
symbol "void __stdcall _com_issue_error(long)" (?_com_issue_error@@YGXJ@Z)
dtobjfact.lib(APNDataObject.obj) : error LNK2001: unresolved external symbol
"void __stdcall _com_issue_error(long)" (?_com_issue_error@@YGXJ@Z)
../wntmsci10.pro/bin/sysdtrans.dll : fatal error LNK1120: 1 unresolved externals
dmake:  Error code 96, while making '../wntmsci10.pro/bin/sysdtrans.dll'
---* tg_merge.mk *---

ERROR: Error 65280 occurred while making /w1/cws_src680_ooo20040704/dtrans/util
dmake:  Error code 1, while making 'build_all'
---* tg_merge.mk *--- 

Propably it was not a good idea to use the IA64 libraries?

According to issue 27980 comsupp.lib (from the IA64 dir) might be the culprit.
> tuomo at openoffice org reported:
> * comsupp.lib required for dtranse
> * "old iostram libraries" (as MS refers to) required throughout the source.

vq->mh: Please assign to someone who knows what to do ;)
Comment 3 quetschke 2004-09-15 21:06:46 UTC
Forget the conf_vc_tool_2.diff in this issue, see issue 34228 for a current version.
Comment 4 pavel 2005-04-08 07:35:42 UTC
vq: what is the correct target? OOoLater?
Comment 5 quetschke 2005-04-08 14:22:16 UTC
@pjanik: I don't know. The toolkit misses a few important libraries. Definitely
not 2.0.

Martin? 
Comment 6 Martin Hollmichel 2005-04-08 15:59:05 UTC
set target to OOO PleaseHelp.
Comment 7 quetschke 2007-03-17 18:19:10 UTC
Obsolete issue. OOo builds fine with .NET 2005 Express.
Comment 8 quetschke 2007-03-17 18:19:36 UTC
c