i try to build a driver in windows 7 x64 by using the source code from professional rootkits chapter 3.I got 2 errors
1.c:\chapter03ghost\src\hookmanager.obj : error LNK2001: unresolved external symbol __imp_KeServiceDescriptorTable
2.c:\chapter03ghost\src\objchk_win7_amd64\amd64\comint32.sys : error LNK1120: 1 unresolved externals
i already go through this link"http://www.osronline.com/showthread.cfm?link=121098" but i am unable to find the solution…
this is my source file content:
TARGETNAME=comint32
TARGETPATH=OBJ
TARGETTYPE=DRIVER
SOURCES=Ghost.c\
fileManager.c\
hookManager.c\
configManager.c
this is the log error:
BUILD: Examining c:\chapter03ghost\src directory for files to compile.
oacr invalidate root:amd64chk /autocleanqueue
1>Compiling and Linking c:\chapter03ghost\src *************
1>‘nmake.exe /nologo BUILDMSG=Stop. -i BUILD_PASS=PASS2 LINKONLY=1 NOPASS0=1 MAKEDIR_RELATIVE_TO_BASEDIR=’
1>c:\chapter03ghost\src: TARGETPATH is OBJ
1> C:\WinDDK\7600.16385.1\Bin\amd64\oacr\oacrcl @c:\chapter03ghost\src\objchk_win7_amd64\amd64\cl.rsp
1>Microsoft (R) C/C++ Optimizing Compiler Version 15.00.30729.207 for x64
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>cl /Fo"c:\chapter03ghost\src\objchk_win7_amd64\amd64/"
1> /FC
1> /Iamd64\
1> /I.
1> /IC:\WinDDK\7600.16385.1\lib\win7\amd64\inc\ddk\wdmC:\WinDDK\7600.16385.1\lib\win7\amd64\inc\ddk\wdm\wxpC:\WinDDK\7600.16385.1\lib\win7\amd64\inc\ddk\wxpC:\WinDDK\7600.16385.1\lib\win7\amd64\inc\wxpC:\WinDDK\7600.16385.1\lib\win7\amd64\inc\crt
1> /Ic:\chapter03ghost\src\objchk_win7_amd64\amd64
1> /IC:\WinDDK\7600.16385.1\inc\api
1> /IC:\WinDDK\7600.16385.1\inc\api
1> /IC:\WinDDK\7600.16385.1\inc\ddk
1> /IC:\WinDDK\7600.16385.1\inc\ddk
1> /IC:\WinDDK\7600.16385.1\inc\crt
1> /D_WIN64
1> /D_AMD64_
1> /DAMD64
1> /DCONDITION_HANDLING=1
1> /DNT_UP=1
1> /DNT_INST=0
1> /DWIN32=100
1> /D_NT1X_=100
1> /DWINNT=1
1> /D_WIN32_WINNT=0x0601
1> /DWINVER=0x0601
1> /D_WIN32_IE=0x0800
1> /DWIN32_LEAN_AND_MEAN=1
1> /DDEVL=1
1> /DDBG=1
1> /D__BUILDMACHINE__=WinDDK
1> /D_DLL=1
1> /DNDEBUG
1> /DDEPRECATE_DDK_FUNCTIONS=1
1> /DMSC_NOOPT
1> /DNTDDI_VERSION=0x06010000
1> /c
1> /Zc:wchar_t-
1> /Zl
1> /Zp8
1> /Gy
1> -cbstring
1> /W3
1> /EHs-c-
1> /GR-
1> /GF
1> /GS
1> /Zi
1> /Od
1> /Oi
1> /GL
1> /Zi
1> /Fdc:\chapter03ghost\src\objchk_win7_amd64\amd64\
1> /DKMDF_MAJOR_VERSION_STRING=01
1> /DKMDF_MINOR_VERSION_STRING=009
1> /typedil-
1> /wd4603
1> /wd4627
1> /homeparams
1> /FIC:\WinDDK\7600.16385.1\inc\api\warning.h
1> .\ghost.c .\filemanager.c .\hookmanager.c .\configmanager.c
1>ghost.c
1>filemanager.c
1>c:\chapter03ghost\src\filemanager.c(77) : warning C4242: ‘=’ : conversion from ‘ULONG_PTR’ to ‘ULONG’, possible loss of data
1>warnings in directory c:\chapter03ghost\src
1>c:\chapter03ghost\src\filemanager.c(77) : warning C4242: ‘=’ : conversion from ‘ULONG_PTR’ to ‘ULONG’, possible loss of data
1>hookmanager.c
1>c:\chapter03ghost\src\hookmanager.c(48) : warning C4996: ‘MmCreateMdl’: was declared deprecated
1>c:\chapter03ghost\src\hookmanager.c(48) : warning C4996: ‘MmCreateMdl’: was declared deprecated
1> c:\winddk\7600.16385.1\inc\ddk\wdm.h(19491) : see declaration of ‘MmCreateMdl’
1>c:\chapter03ghost\src\hookmanager.c(55) : warning C4996: ‘MmMapLockedPages’: was declared deprecated
1>c:\chapter03ghost\src\hookmanager.c(55) : warning C4996: ‘MmMapLockedPages’: was declared deprecated
1> c:\winddk\7600.16385.1\inc\ddk\wdm.h(19188) : see declaration of ‘MmMapLockedPages’
1>configmanager.c
1> C:\WinDDK\7600.16385.1\Bin\amd64\oacr\oacrlink /out:c:\chapter03ghost\src\objchk_win7_amd64\amd64\comint32.sys /machine:amd64 @c:\chapter03ghost\src\objchk_win7_amd64\amd64\lnk.rsp
1>Microsoft (R) Incremental Linker Version 9.00.30729.207
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>/MERGE:_PAGE=PAGE
1>/MERGE:_TEXT=.text
1>/SECTION:INIT,d
1>/OPT:REF
1>/OPT:ICF
1>/IGNORE:4198,4010,4037,4039,4065,4070,4078,4087,4089,4221,4108,4088,4218,4218,4235
1>/INCREMENTAL:NO
1>/release
1>/NODEFAULTLIB
1>/WX
1>/debug
1>/debugtype:cv,fixup,pdata
1>/version:6.1
1>/osversion:6.1
1>C:\WinDDK\7600.16385.1\lib\win7\amd64\hotpatch.obj
1>/functionpadmin:6
1>/pdbcompress
1>/STACK:0x40000,0x1000
1>/driver
1>/base:0x10000
1>/subsystem:native,6.01
1>/entry:GsDriverEntry
1>/out:c:\chapter03ghost\src\objchk_win7_amd64\amd64\comint32.sys
1>c:\chapter03ghost\src\objchk_win7_amd64\amd64\ghost.obj
1>c:\chapter03ghost\src\objchk_win7_amd64\amd64\filemanager.obj
1>c:\chapter03ghost\src\objchk_win7_amd64\amd64\hookmanager.obj
1>c:\chapter03ghost\src\objchk_win7_amd64\amd64\configmanager.obj
1>C:\WinDDK\7600.16385.1\lib\win7\amd64\BufferOverflowK.lib
1>C:\WinDDK\7600.16385.1\lib\win7\amd64\ntoskrnl.lib
1>C:\WinDDK\7600.16385.1\lib\win7\amd64\hal.lib
1>C:\WinDDK\7600.16385.1\lib\win7\amd64\wmilib.lib
1>ghost.obj : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
1>Microsoft (R) Incremental Linker Version 9.00.30729.207
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>/MERGE:_PAGE=PAGE
1>/MERGE:_TEXT=.text
1>/SECTION:INIT,d
1>/OPT:REF
1>/OPT:ICF
1>/IGNORE:4198,4010,4037,4039,4065,4070,4078,4087,4089,4221,4108,4088,4218,4218,4235
1>/INCREMENTAL:NO
1>/release
1>/NODEFAULTLIB
1>/WX
1>/debug
1>/debugtype:cv,fixup,pdata
1>/version:6.1
1>/osversion:6.1
1>C:\WinDDK\7600.16385.1\lib\win7\amd64\hotpatch.obj
1>/functionpadmin:6
1>/pdbcompress
1>/STACK:0x40000,0x1000
1>/driver
1>/base:0x10000
1>/subsystem:native,6.01
1>/entry:GsDriverEntry
1>/out:c:\chapter03ghost\src\objchk_win7_amd64\amd64\comint32.sys
1>c:\chapter03ghost\src\objchk_win7_amd64\amd64\ghost.obj
1>c:\chapter03ghost\src\objchk_win7_amd64\amd64\filemanager.obj
1>c:\chapter03ghost\src\objchk_win7_amd64\amd64\hookmanager.obj
1>c:\chapter03ghost\src\objchk_win7_amd64\amd64\configmanager.obj
1>C:\WinDDK\7600.16385.1\lib\win7\amd64\BufferOverflowK.lib
1>C:\WinDDK\7600.16385.1\lib\win7\amd64\ntoskrnl.lib
1>C:\WinDDK\7600.16385.1\lib\win7\amd64\hal.lib
1>C:\WinDDK\7600.16385.1\lib\win7\amd64\wmilib.lib
1>hookmanager.obj : error LNK2001: unresolved external symbol __imp_KeServiceDescriptorTable
1>errors in directory c:\chapter03ghost\src
1>c:\chapter03ghost\src\hookmanager.obj : error LNK2001: unresolved external symbol __imp_KeServiceDescriptorTable
1>c:\chapter03ghost\src\objchk_win7_amd64\amd64\comint32.sys : fatal error LNK1120: 1 unresolved externals
1>c:\chapter03ghost\src\objchk_win7_amd64\amd64\comint32.sys : error LNK1120: 1 unresolved externals
Help me please…