Apache OpenOffice (AOO) Bugzilla – Issue 25043
MSVC 6 build breaks in basic/util
Last modified: 2004-09-14 11:54:22 UTC
cws_fix645_ooo111fix2 This is propably the wrong component, but issuezilla doesn't offer something obvious for project basic (or script according to cvs information) I hope this is not a false alert like issue 23534, but my MSVC6 build stopped with: 104577 Making: ../wntmsci9.pro/bin/sb645mi.dll 104578 guw.pl /cygdrive/c/PROGRA~1/MSVS6/VC98/bin/cl.exe -c -Fo../wntmsci9.pro/slo/sb_dflt_version.obj -DWNT -I../wntmsci9.pro/inc /cygdrive/e/w1/cws_fix645_ooo111fix2/solenv/src/version.c 104579 Command: /cygdrive/c/PROGRA~1/MSVS6/VC98/bin/cl.exe 104580 Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86 104581 Copyright (C) Microsoft Corp 1984-1998. All rights reserved. 104582 104583 version.c 104584 guw.pl rc -DWIN32 -I -I. -I. -I../inc -I../inc -I../WIN/inc -I../wntmsci9.pro/inc -I. -I/cygdrive/e/w1/cws_fix645_ooo111fix2/solver/645/wntmsci9.pro/inc/stl -I/cygdrive/e/w1/cws_fix645_ooo111fix2/solver/645/wntmsci9.pro/inc/external -I/cygdrive/e/w1/cws_fix645_ooo111fix2/solver/645/wntmsci9.pro/inc -I/cygdrive/e/w1/cws_fix645_ooo111fix2/solenv/wntmsci9/inc -I/cygdrive/e/w1/cws_fix645_ooo111fix2/solenv/inc -I/cygdrive/e/w1/cws_fix645_ooo111fix2/res -I/cygdrive/e/w1/cws_fix645_ooo111fix2/solver/645/wntmsci9.pro/inc/stl -I/cygdrive/c/j2sdk1.4.2/include/win32 -I/cygdrive/c/j2sdk1.4.2/include -I´/cygdrive/c/psdk02_2003/include´ -I/cygdrive/c/PROGRA~1/MSVS6/VC98/include -I. -I../res -I. ../wntmsci9.pro/misc/sb645mi_def.rc 104585 Command: rc 104586 cat ../wntmsci9.pro/misc/sb645mi_def.res > ../wntmsci9.pro/misc/sb645mi.res 104587 guw.pl link /MACHINE:IX86 @/tmp/mka01852 104588 Command: link 104589 Microsoft (R) Incremental Linker Version 6.00.8447 104590 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. 104591 104592 /MAP /NODEFAULTLIB /OPT:NOREF /RELEASE /DEBUG:notmapped,full /SUBSYSTEM:CONSOLE /DLL -out:../wntmsci9.pro/bin/sb645mi.dll -map:../wntmsci9.pro/misc/sb645mi.map ..\wntmsci9.pro\lib\basic.exp ..\wntmsci9.pro\slo\sb.obj ..\wntmsci9.pro\slo\sb_dflt_version.obj ..\wntmsci9.pro\slo\sb_dflt_description.obj ..\wntmsci9.pro\slb\sb.lib icppu.lib icppuhelper.lib itools.lib svtool.lib isvl.lib ivcl.lib ivos.lib isal.lib svmem.lib icomphelp.lib iutl.lib sot.lib ivos.lib msvcrt.lib uwinapi.lib kernel32.lib user32.lib oldnames.lib stlport_vc6.lib ..\wntmsci9.pro\misc\sb645mi.res 104593NEXT sb.lib(sbunoobj.obj) : error LNK2001: unresolved external symbol "public: unsigned char __thiscall SbxValue::PutDecimal(struct com::sun::star::bridge::oleautomation::Decimal &)" (?PutDecimal@SbxValue@@QAEEAAUDecimal@oleautomation@bridge@star@sun@com@@@Z) 104594NEXT sb.lib(sbunoobj.obj) : error LNK2001: unresolved external symbol "public: unsigned char __thiscall SbxValue::fillAutomationDecimal(struct com::sun::star::bridge::oleautomation::Decimal &)" (?fillAutomationDecimal@SbxValue@@QAEEAAUDecimal@oleautomation@bridge@star@sun@com@@@Z) 104595NEXT sb.lib(methods1.obj) : error LNK2001: unresolved external symbol "public: unsigned char __thiscall SbxValue::PutDecimal(class SbxDecimal *)" (?PutDecimal@SbxValue@@QAEEPAVSbxDecimal@@@Z) 104596NEXT sb.lib(methods1.obj) : error LNK2001: unresolved external symbol "public: class SbxDecimal * __thiscall SbxValue::GetDecimal(void)const " (?GetDecimal@SbxValue@@QBEPAVSbxDecimal@@XZ) 104597NEXT ../wntmsci9.pro/bin/sb645mi.dll : fatal error LNK1120: 4 unresolved externals 104598NEXT dmake: Error code 96, while making ´../wntmsci9.pro/bin/sb645mi.dll´ 104599 echo: No match. 104600 104601NEXT ERROR: Error 65280 occurred while making /cygdrive/e/w1/cws_fix645_ooo111fix2/basic/util 104602NEXT dmake: Error code 1, while making ´build_all´ 104603 echo: No match. Excuse the line numbers, but this is a copy from the tinderbox. <http://ooo.ximian.com/tinderbox/gunzip.cgi?tree=cws_fix645_ooo111fix2&brief-log=1075791403.9422#EOF>
Created attachment 12915 [details] Replace /NODEFAULTLIB to /NODEFAULTLIB:libc in solenv/inc/wnt.mk
Hi Wind, your patch breaks in shell/source/win32/shlxthandler/ with: ------------------------------ Making: ../../../wntmsci9.pro/bin/shlxthdl.dll guw.pl /cygdrive/c/PROGRA~1/MSVS6/VC98/bin/cl.exe -c -Fo../../../wntmsci9.pro/slo/shlxthdl_version.obj -DWNT -I../../../wntmsci9.pro/inc /cygdrive/e/w1/cws_srx645_ooo111fix3/solenv/src/version.c Command: /cygdrive/c/PROGRA~1/MSVS6/VC98/bin/cl.exe Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved. version.c guw.pl rc -DWIN32 -I -I. -I. -I../inc -I../../../inc -I../../../WIN/inc -I../../../wntmsci9.pro/inc -I. -I/cygdrive/e/w1/cws_srx645_ooo111fix3/solver/645/wntmsci9.pro/inc/stl -I/cygdrive/e/w1/cws_srx645_ooo111fix3/solver/645/wntmsci9.pro/inc/external -I/cygdrive/e/w1/cws_srx645_ooo111fix3/solver/645/wntmsci9.pro/inc -I/cygdrive/e/w1/cws_srx645_ooo111fix3/solenv/wntmsci9/inc -I/cygdrive/e/w1/cws_srx645_ooo111fix3/solenv/inc -I/cygdrive/e/w1/cws_srx645_ooo111fix3/res -I/cygdrive/e/w1/cws_srx645_ooo111fix3/solver/645/wntmsci9.pro/inc/stl -I/cygdrive/c/j2sdk1.4.2/include/win32 -I/cygdrive/c/j2sdk1.4.2/include -I'/cygdrive/c/psdk02_2003/include' -I/cygdrive/c/PROGRA~1/MSVS6/VC98/include -I. -I../../../res -I. ../../../wntmsci9.pro/misc/shlxthdl_def.rc Command: rc cat ../../../wntmsci9.pro/res/49/shlxthdl.res ../../../wntmsci9.pro/misc/shlxthdl_def.res > ../../../wntmsci9.pro/misc/shlxthdl.res guw.pl link /MACHINE:IX86 @/tmp/mkb02200 Command: link Microsoft (R) Incremental Linker Version 6.00.8447 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. /MAP /NODEFAULTLIB:libc /OPT:NOREF /RELEASE /DEBUG:notmapped,full /SUBSYSTEM:CONSOLE /DLL -out:../../../wntmsci9.pro/bin/shlxthdl.dll -map:../../../wntmsci9.pro/misc/shlxthdl.map -def:../../../wntmsci9.pro/misc/shlxthdl.def -implib:../../../wntmsci9.pro/lib/ishlxthdl1.lib ..\..\..\wntmsci9.pro\slo\shlxthdl_version.obj ..\..\..\wntmsci9.pro\slo\shlxthdl_description.obj ..\..\..\wntmsci9.pro\slo\classfactory.obj ..\..\..\wntmsci9.pro\slo\columnprovider.obj ..\..\..\wntmsci9.pro\slo\dbgmacros.obj ..\..\..\wntmsci9.pro\slo\fileextensions.obj ..\..\..\wntmsci9.pro\slo\infotip.obj ..\..\..\wntmsci9.pro\slo\propshthdl.obj ..\..\..\wntmsci9.pro\slo\registry.obj ..\..\..\wntmsci9.pro\slo\saxdochdl.obj ..\..\..\wntmsci9.pro\slo\saxprsrexcptn.obj ..\..\..\wntmsci9.pro\slo\shlxthdl.obj ..\..\..\wntmsci9.pro\slo\xmlprsr.obj ..\..\..\wntmsci9.pro\slo\ziparchv.obj ..\..\..\wntmsci9.pro\slo\zipexcptn.obj ..\..\..\wntmsci9.pro\slo\metaaccessor.obj ..\..\..\wntmsci9.pro\slo\utilities.obj ..\..\..\wntmsci9.pro\slo\listviewbuilder.obj ..\..\..\wntmsci9.pro\slo\document_statistic.obj ..\..\..\wntmsci9.pro\slo\iso8601_converter.obj e:\w1\cws_srx645_ooo111fix3\solver\645\wntmsci9.pro\lib\zlib.lib e:\w1\cws_srx645_ooo111fix3\solver\645\wntmsci9.pro\lib\expat_xmlparse.lib e:\w1\cws_srx645_ooo111fix3\solver\645\wntmsci9.pro\lib\expat_xmltok.lib uwinapi.lib oleaut32.lib advapi32.lib ole32.lib uuid.lib shell32.lib comctl32.lib gdi32.lib msvcrt.lib uwinapi.lib kernel32.lib user32.lib oldnames.lib stlport_vc6.lib ..\..\..\wntmsci9.pro\misc\shlxthdl.res LINK : fatal error LNK1104: cannot open file "stlport_vc6_unicode.lib" dmake: Error code 80, while making '../../../wntmsci9.pro/bin/shlxthdl.dll' echo: No match. ERROR: Error 65280 occurred while making /cygdrive/e/w1/cws_srx645_ooo111fix3/shell/source/win32/shlxthandler dmake: Error code 1, while making 'build_all' echo: No match.
We can add a /NODEFAULTLIB:stlport_vc6_unicode to resolve this problem. Apply following patch for my last patch. --- solenv_old.diff 2004-02-06 10:05:21.000000000 +0800 +++ solenv.diff 2004-02-09 09:48:30.000000000 +0800 @@ -10,7 +10,7 @@ LINKFLAGS=/MAP /OPT:NOREF .ENDIF +.IF "$(COMEX)" = "9" -+NODEFATLIBFLAGS = /NODEFAULTLIB:libc ++NODEFATLIBFLAGS = /NODEFAULTLIB:libc /NODEFAULTLIB:stlport_vc6_unicode +.ELSE +NODEFATLIBFLAGS = /NODEFAULTLIB +.ENDIF
Hi Wind, yes, this solved the problem in shell/source/win32/shlxthandler/ but now it breaks again in basic/util. <http://ooo.ximian.com/tinderbox/gunzip.cgi?tree=cws_srx645_ooo111fix3&brief-log=1076312400.19389#err83> My main problem is that I have no idea where these errors are coming from and what the /NODEFAULTLIB:???? are supposed to do.
Syntax /NODEFAULTLIB[:library] This option tells the linker to remove one or more default libraries from the list of libraries it searches when resolving external references. Command Line Project Settings Description /NODEFAULTLIB:library Ignore Libraries This option removes the specified library or libraries from the list of libraries it searches when resolving external references. /NODEFAULTLIB Ignore All Default Libraries This option removes all default libraries from the list of libraries it searches when resolving external references. So I don't think the last problems are caused by /NODEFAULTLIB. You can check whether there are SbxValue::PutDecimal implements in svtool.lib
have we any progress here ?
No, but as I'm the only one that sees these problems it propably is a problem with my MSVC6 installation. When I find the time I'll reinstall it.
mh-vq: so I set this to WORKSFORME, please feel free to reopen if you think this is a real issue :).
close issue.