[OpenAFS-win32-devel] Getting linker error LNK2019 while compiling OpenAFS

Gautam U Raut gautraut@in.ibm.com
Wed, 2 Feb 2011 15:25:19 +0530


This is a multipart message in MIME format.
--=_alternative 00369CAF6525782B_=
Content-Type: text/plain; charset="US-ASCII"

Hi All,


While compiling OpenAFS 1.5.78 on Windows 7 on AMD64 , I am facing 
following errors:

link /OUT:C:\OPENAF~1.78-\OPENAF~1.78\obj\amd64_w2k\free\config\mkvers.exe 
/DEBUG 
/PDB:C:\OPENAF~1.78-\OPENAF~1.78\obj\amd64_w2k\free\config\mkvers.pdb 
/INCREMENTAL:NO /NOLOGO -subsystem:console,5.02  /FIXED:NO /VERBOSE:LIB 
/MACHINE:AMD64 /MANIFEST kernel32.lib  ws2_32.lib mswsock.lib advapi32.lib 
Advapi32.lib user32.lib version.lib 
C:\OPENAF~1.78-\OPENAF~1.78\obj\amd64_w2k\free\config\mkvers.obj

Searching libraries
    Searching C:\Program Files\Microsoft 
SDKs\Windows\v7.1\\lib\kernel32.lib:
    Searching C:\Program Files\Microsoft 
SDKs\Windows\v7.1\\lib\ws2_32.lib:
    Searching C:\Program Files\Microsoft 
SDKs\Windows\v7.1\\lib\mswsock.lib:
    Searching C:\Program Files\Microsoft 
SDKs\Windows\v7.1\\lib\advapi32.lib:
    Searching C:\Program Files\Microsoft 
SDKs\Windows\v7.1\\lib\user32.lib:
    Searching C:\Program Files\Microsoft 
SDKs\Windows\v7.1\\lib\version.lib:
    Searching C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\lib\MSVCRT.lib:
    Searching C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\lib\OLDNAMES.lib:

Finished searching libraries
mkvers.obj : error LNK2019: unresolved external symbol __imp__stat64i32 
referenced in function stat
mkvers.obj : error LNK2019: unresolved external symbol __imp__ctime64 
referenced in function ctime
mkvers.obj : error LNK2019: unresolved external symbol __imp__time64 
referenced in function time
mkvers.obj : error LNK2019: unresolved external symbol __imp_exit 
referenced in function Usage
mkvers.obj : error LNK2019: unresolved external symbol __imp_printf 
referenced in function Usage
mkvers.obj : error LNK2019: unresolved external symbol __imp_strchr 
referenced in function PrintStamps
mkvers.obj : error LNK2019: unresolved external symbol __imp_fprintf 
referenced in function PrintStamps
mkvers.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
mkvers.obj : error LNK2019: unresolved external symbol __imp___iob_func 
referenced in function main
mkvers.obj : error LNK2019: unresolved external symbol __imp_fclose 
referenced in function main
mkvers.obj : error LNK2019: unresolved external symbol __imp_fgets 
referenced in function main
mkvers.obj : error LNK2019: unresolved external symbol __imp_fopen 
referenced in function main
mkvers.obj : error LNK2019: unresolved external symbol __imp_malloc 
referenced in function main
mkvers.obj : error LNK2019: unresolved external symbol __imp__errno 
referenced in function main
mkvers.obj : error LNK2019: unresolved external symbol __imp_sprintf 
referenced in function main
mkvers.obj : error LNK2019: unresolved external symbol __imp_strstr 
referenced in function main
mkvers.obj : error LNK2019: unresolved external symbol __security_cookie 
referenced in function main
mkvers.obj : error LNK2019: unresolved external symbol 
__security_check_cookie referenced in function main
LINK : error LNK2001: unresolved external symbol mainCRTStartup
C:\OPENAF~1.78-\OPENAF~1.78\obj\amd64_w2k\free\config\mkvers.exe : fatal 
error LNK1120: 19 unresolved externals

Details of development environment are: 
AFS Source code version : 
        openafs-1.5.78-src
Operating System:
        Windows 7
Processor :
        Processor = Xeon
        PROCESSOR_ARCHITECTURE=AMD64
        PROCESSOR_IDENTIFIER = Intel64 Family 15 Model 4 Stepping 1, 
GenuineIntel
Development Environment :
        Win SDK = Windows SDK for Windows 7 and .NET Framework 3.5 SP1 
        Win DDK = Windows Driver Kit (WDK) Version 7.1.0 
        Visual Studio 2008 = Visual Studio 2008 SP1 and the .NET Framework 
3.5 Service Pack 1 (SP1)

Let me know your suggestions.

Regards,
Gautam 
--=_alternative 00369CAF6525782B_=
Content-Type: text/html; charset="US-ASCII"

<font size=2 face="sans-serif">Hi All,</font>
<br>
<br>
<br><font size=2 face="sans-serif">While compiling OpenAFS 1.5.78 on Windows
7 on AMD64 , I am facing following errors:</font>
<br>
<br><font size=2 face="sans-serif">link /OUT:C:\OPENAF~1.78-\OPENAF~1.78\obj\amd64_w2k\free\config\mkvers.exe
/DEBUG /PDB:C:\OPENAF~1.78-\OPENAF~1.78\obj\amd64_w2k\free\config\mkvers.pdb
&nbsp;/INCREMENTAL:NO /NOLOGO -subsystem:console,5.02 &nbsp;/FIXED:NO /VERBOSE:LIB
/MACHINE:AMD64 /MANIFEST kernel32.lib &nbsp;ws2_32.lib mswsock.lib advapi32.lib
Advapi32.lib user32.lib version.lib C:\OPENAF~1.78-\OPENAF~1.78\obj\amd64_w2k\free\config\mkvers.obj</font>
<br>
<br><font size=2 face="sans-serif">Searching libraries</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; Searching C:\Program Files\Microsoft
SDKs\Windows\v7.1\\lib\kernel32.lib:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; Searching C:\Program Files\Microsoft
SDKs\Windows\v7.1\\lib\ws2_32.lib:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; Searching C:\Program Files\Microsoft
SDKs\Windows\v7.1\\lib\mswsock.lib:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; Searching C:\Program Files\Microsoft
SDKs\Windows\v7.1\\lib\advapi32.lib:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; Searching C:\Program Files\Microsoft
SDKs\Windows\v7.1\\lib\user32.lib:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; Searching C:\Program Files\Microsoft
SDKs\Windows\v7.1\\lib\version.lib:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; Searching C:\Program Files
(x86)\Microsoft Visual Studio 9.0\VC\lib\MSVCRT.lib:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; Searching C:\Program Files
(x86)\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:</font>
<br>
<br><font size=2 face="sans-serif">Finished searching libraries</font>
<br><font size=2 face="sans-serif">mkvers.obj : error LNK2019: unresolved
external symbol __imp__stat64i32 referenced in function stat</font>
<br><font size=2 face="sans-serif">mkvers.obj : error LNK2019: unresolved
external symbol __imp__ctime64 referenced in function ctime</font>
<br><font size=2 face="sans-serif">mkvers.obj : error LNK2019: unresolved
external symbol __imp__time64 referenced in function time</font>
<br><font size=2 face="sans-serif">mkvers.obj : error LNK2019: unresolved
external symbol __imp_exit referenced in function Usage</font>
<br><font size=2 face="sans-serif">mkvers.obj : error LNK2019: unresolved
external symbol __imp_printf referenced in function Usage</font>
<br><font size=2 face="sans-serif">mkvers.obj : error LNK2019: unresolved
external symbol __imp_strchr referenced in function PrintStamps</font>
<br><font size=2 face="sans-serif">mkvers.obj : error LNK2019: unresolved
external symbol __imp_fprintf referenced in function PrintStamps</font>
<br><font size=2 face="sans-serif">mkvers.obj : error LNK2001: unresolved
external symbol __GSHandlerCheck</font>
<br><font size=2 face="sans-serif">mkvers.obj : error LNK2019: unresolved
external symbol __imp___iob_func referenced in function main</font>
<br><font size=2 face="sans-serif">mkvers.obj : error LNK2019: unresolved
external symbol __imp_fclose referenced in function main</font>
<br><font size=2 face="sans-serif">mkvers.obj : error LNK2019: unresolved
external symbol __imp_fgets referenced in function main</font>
<br><font size=2 face="sans-serif">mkvers.obj : error LNK2019: unresolved
external symbol __imp_fopen referenced in function main</font>
<br><font size=2 face="sans-serif">mkvers.obj : error LNK2019: unresolved
external symbol __imp_malloc referenced in function main</font>
<br><font size=2 face="sans-serif">mkvers.obj : error LNK2019: unresolved
external symbol __imp__errno referenced in function main</font>
<br><font size=2 face="sans-serif">mkvers.obj : error LNK2019: unresolved
external symbol __imp_sprintf referenced in function main</font>
<br><font size=2 face="sans-serif">mkvers.obj : error LNK2019: unresolved
external symbol __imp_strstr referenced in function main</font>
<br><font size=2 face="sans-serif">mkvers.obj : error LNK2019: unresolved
external symbol __security_cookie referenced in function main</font>
<br><font size=2 face="sans-serif">mkvers.obj : error LNK2019: unresolved
external symbol __security_check_cookie referenced in function main</font>
<br><font size=2 face="sans-serif">LINK : error LNK2001: unresolved external
symbol mainCRTStartup</font>
<br><font size=2 face="sans-serif">C:\OPENAF~1.78-\OPENAF~1.78\obj\amd64_w2k\free\config\mkvers.exe
: fatal error LNK1120: 19 unresolved externals</font>
<br>
<br><font size=2 face="sans-serif">Details of development environment are:
</font>
<br><font size=2 face="sans-serif">AFS Source code version : </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; openafs-1.5.78-src</font>
<br><font size=2 face="sans-serif">Operating System:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Windows
7</font>
<br><font size=2 face="sans-serif">Processor :</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Processor
= Xeon</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; PROCESSOR_ARCHITECTURE=AMD64</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; PROCESSOR_IDENTIFIER
= Intel64 Family 15 Model 4 Stepping 1, GenuineIntel</font>
<br><font size=2 face="sans-serif">Development Environment :</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Win
SDK = Windows SDK for Windows 7 and .NET Framework 3.5 SP1 &nbsp; </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Win
DDK = Windows Driver Kit (WDK) Version 7.1.0 </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Visual
Studio 2008 = Visual Studio 2008 SP1 and the .NET Framework 3.5 Service
Pack 1 (SP1)</font>
<br>
<br><font size=2 face="sans-serif">Let me know your suggestions.</font>
<br>
<br><font size=2 face="sans-serif">Regards,</font>
<br><font size=2 face="sans-serif">Gautam </font>
--=_alternative 00369CAF6525782B_=--