Windows build problem: fatal error LNK1181: cannot open input file 'wsock32.lib'

Ilmari Lauhakangas ilmari.lauhakangas at libreoffice.org
Wed Jun 16 05:33:13 UTC 2021


Someone I am onboarding is having this problem. Windows 10 SDK is installed.

What concrete steps could be done to remedy the situation?

Ilmari

$ /opt/lo/bin/make vertbose=t
C:/cygwin/opt/lo/bin/make -j 12  -rs -f 
C:/sources/libo-core/Makefile.gbuild bui
ld
[build UPK] libassuan-2.5.3.tar.bz2
[build PAT] python3
[build DEP] LNK:Library/cppuhelper3MSC.dll
3 out of 3 hunks FAILED -- saving rejects to file 
Python/thread_pthread.h.rej
Patch FAILED: C:/sources/libo-core/external/python3/i100492-freebsd.patch.1
[build LNK] Library/cppuhelper3MSC.dll
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.

libxml2 version: 2.9.12
Created Makefile.
Created config.h.

XML processor configuration
---------------------------
               Trio: no
      Thread safety: native
         FTP client: yes
        HTTP client: yes
     HTML processor: yes
       C14N support: yes
    Catalog support: yes
    DocBook support: yes
      XPath support: yes
   XPointer support: yes
   XInclude support: yes
      iconv support: no
      icu   support: yes
   iso8859x support: no
       zlib support: no
       lzma support: no
   Debugging module: yes
   Memory debugging: no
  Runtime debugging: no
     Regexp support: yes
     Module support: yes
       Tree support: yes
     Reader support: yes
     Writer support: yes
     Walker support: yes
    Pattern support: yes
       Push support: yes
Validation support: yes
       SAX1 support: yes
     Legacy support: yes
     Output support: yes
XML Schema support: yes
Schematron support: yes
    Python bindings: no

Win32 build configuration
-------------------------
           Compiler: msvc
   C-Runtime option: /MD
     Embed Manifest: no
      Debug symbols: no
     Static xmllint: no
     Install prefix: .
       Put tools in: $(PREFIX)\bin
     Put headers in: $(PREFIX)\include
Put static libs in: $(PREFIX)\lib
Put shared libs in: $(PREFIX)\bin
       Include path: .
           Lib path: .


Microsoft (R) Program Maintenance Utility Version 14.29.30037.0
Copyright (C) Microsoft Corporation.  All rights reserved.

         link.exe /nologo /VERSION:2.9 
/LIBPATH:C:/sources/libo-core/workdir/Unpa
ckedTarball/icu/source/lib /LIBPATH:bin.msvc /LIBPATH:.\lib  /DLL 
/IMPLIB:bin.m
svc\libxml2.lib /OUT:bin.msvc\libxml2.dll int.msvc\buf.obj 
int.msvc\c14n.obj int
.msvc\catalog.obj int.msvc\chvalid.obj int.msvc\debugXML.obj 
int.msvc\dict.obj i
nt.msvc\DOCBparser.obj int.msvc\encoding.obj int.msvc\entities.obj 
int.msvc\erro
r.obj int.msvc\globals.obj int.msvc\hash.obj int.msvc\HTMLparser.obj 
int.msvc\HT
MLtree.obj int.msvc\legacy.obj int.msvc\list.obj int.msvc\nanoftp.obj 
int.msvc\n
anohttp.obj int.msvc\parser.obj int.msvc\parserInternals.obj 
int.msvc\pattern.ob
j int.msvc\relaxng.obj int.msvc\SAX2.obj int.msvc\SAX.obj 
int.msvc\schematron.ob
j int.msvc\threads.obj int.msvc\tree.obj int.msvc\uri.obj 
int.msvc\valid.obj int
.msvc\xinclude.obj int.msvc\xlink.obj int.msvc\xmlIO.obj 
int.msvc\xmlmemory.obj
int.msvc\xmlreader.obj int.msvc\xmlregexp.obj int.msvc\xmlmodule.obj 
int.msvc\xm
lsave.obj int.msvc\xmlschemas.obj int.msvc\xmlschemastypes.obj 
int.msvc\xmlunico
de.obj int.msvc\xmlwriter.obj int.msvc\xpath.obj int.msvc\xpointer.obj 
int.msvc\
xmlstring.obj int.msvc\libxml2.res  wsock32.lib ws2_32.lib icuuc.lib 
icuin.lib i
cudt.lib kernel32.lib
LINK : fatal error LNK1181: cannot open input file 'wsock32.lib'
NMAKE : fatal error U1077: 
'C:/PROGRA~2/MICROS~1/2019/COMMUN~1/VC/Tools/MSVC/142
9~1.300/bin/Hostx64/x64\link.exe' : return code '0x49d'
Stop.
make[1]: *** 
[C:/sources/libo-core/external/libxml2/ExternalProject_libxml2.mk:2
7: C:/sources/libo-core/workdir/ExternalProject/libxml2/build] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [C:/sources/libo-core/solenv/gbuild/UnpackedTarball.mk:175: 
C:/sour
ces/libo-core/workdir/UnpackedTarball/python3.done] Error 1


More information about the LibreOffice mailing list