I have installed WDK version 7.1.0 and tried building NDIS filter driver.
I have taken Filter driver source from Winddk sample folder “src\network\ndis\filter”.
I got compilation error. please find the buildchk log details as below.
BUILD: Computing Include file dependencies:
BUILD: Examining f:\ndisfiltersrc\filter directory for files to compile.
oacr invalidate root:x86chk /autocleanqueue
1>Compiling and Linking f:\ndisfiltersrc\filter *************
1>‘nmake.exe /nologo BUILDMSG=Stop. -i BUILD_PASS=PASS2 LINKONLY=1 NOPASS0=1 MAKEDIR_RELATIVE_TO_BASEDIR=’
#pragma warning( disable: 4201 ) // nonstandard extension used : nameless struct/union #pragma warning( disable: 4214 ) // nonstandard extension used : bit field types other than int
MSC_WARNING_LEVEL=$(MSC_WARNING_LEVEL) /wd4201 /wd4214
Is that all that’s in the log file? I don’t see any compile / link
commands or error messages.
You can’t put #pragma statements in the Sources file. The # character in
the Sources file indicates that the line is a comment. I know there are
some in some MS Sources files, but I don’t see how they are doing
anything.
I have installed WDK version 7.1.0 and tried building NDIS filter driver. I have taken Filter driver source from Winddk sample folder “src\network\ndis\filter”.
I got compilation error. please find the buildchk log details as below.
BUILD: Computing Include file dependencies: BUILD: Examining f:\ndisfiltersrc\filter directory for files to compile. oacr invalidate root:x86chk /autocleanqueue 1>Compiling and Linking f:\ndisfiltersrc\filter ************* 1>‘nmake.exe /nologo BUILDMSG=Stop. -i BUILD_PASS=PASS2 LINKONLY=1 NOPASS0=1 MAKEDIR_RELATIVE_TO_BASEDIR=’
#pragma warning( disable: 4201 ) // nonstandard extension used : nameless struct/union #pragma warning( disable: 4214 ) // nonstandard extension used : bit field types other than int MSC_WARNING_LEVEL=$(MSC_WARNING_LEVEL) /wd4201 /wd4214
Is that all that’s in the log file? I don’t see any compile / link commands or error messages.
You can’t put #pragma statements in the Sources file. The # character in the Sources file indicates that the line is a comment. I know there are some in some MS Sources files, but I don’t see how they are doing anything.
I have installed WDK version 7.1.0 and tried building NDIS filter driver. I have taken Filter driver source from Winddk sample folder “src\network\ndis\filter”.
I got compilation error. please find the buildchk log details as below.
BUILD: Computing Include file dependencies: BUILD: Examining f:\ndisfiltersrc\filter directory for files to compile. oacr invalidate root:x86chk /autocleanqueue 1>Compiling and Linking f:\ndisfiltersrc\filter ************* 1>‘nmake.exe /nologo BUILDMSG=Stop. -i BUILD_PASS=PASS2 LINKONLY=1 NOPASS0=1 MAKEDIR_RELATIVE_TO_BASEDIR=’
#pragma warning( disable: 4201 ) // nonstandard extension used : nameless struct/union #pragma warning( disable: 4214 ) // nonstandard extension used : bit field types other than int MSC_WARNING_LEVEL=$(MSC_WARNING_LEVEL) /wd4201 /wd4214
Technically the WDK version is 7600.16385.1. so if you are using 7.1.0 you have a bogus version, a typo, or I need to check the released versions more often.
How did you run BUILD.exe? Did just open a command line window and run BUILD.exe, or did you navigate to a legitimate build environment provided by the WDK and then run BUILD? If the former, do the latter. BUILD must be run with in the confines of a proper command line environment.
Gary
----- Original Message -----
From: “raphel johnson” To: “Windows System Software Devs Interest List” Sent: Wednesday, November 24, 2010 5:34:07 AM Subject: [ntdev] Compilation error - Network Filter Driver (WDK Version 7.1.0)
Hi,
I have installed WDK version 7.1.0 and tried building NDIS filter driver. I have taken Filter driver source from Winddk sample folder “src\network\ndis\filter”.
I got compilation error. please find the buildchk log details as below.
BUILD: Computing Include file dependencies: BUILD: Examining f:\ndisfiltersrc\filter directory for files to compile. oacr invalidate root:x86chk /autocleanqueue 1>Compiling and Linking f:\ndisfiltersrc\filter ************* 1>‘nmake.exe /nologo BUILDMSG=Stop. -i BUILD_PASS=PASS2 LINKONLY=1 NOPASS0=1 MAKEDIR_RELATIVE_TO_BASEDIR=’
#pragma warning( disable: 4201 ) // nonstandard extension used : nameless struct/union #pragma warning( disable: 4214 ) // nonstandard extension used : bit field types other than int MSC_WARNING_LEVEL=$(MSC_WARNING_LEVEL) /wd4201 /wd4214
On Wed, 24 Nov 2010 13:49:23 +0000 (UTC)
“Gary%20G.%20Little%20%40%20comcast” wrote:
> Technically the WDK version is 7600.16385.1. so if you are using > 7.1.0 you have a bogus version, a typo, or I need to check the > released versions more often.
From Microsoft Connect:
“The Windows Driver Kit (WDK) Version 7.1.0 is available as the latest production release.”
I am using Windows XP x86 Checked build environment for building this filter source.
I am not getting error and getting log file as posted in the previous query.
Find attached the build sequence (with Original version of source and makefile) getting in the Checked build environment for your reference.
F:\NdisFilterSrc\filter>build -cef
BUILD: Compile and Link for x86
BUILD: Loading f:\winddk\7600.16385.1\build.dat…
BUILD: Computing Include file dependencies:
BUILD: Start time: Thu Nov 25 11:18:05 2010
BUILD: Examining f:\ndisfiltersrc\filter directory for files to compile.
BUILD: Saving f:\winddk\7600.16385.1\build.dat…
BUILD: Compiling and Linking f:\ndisfiltersrc\filter directory
Configuring OACR for ‘root:x86chk’ - BUILD: Finish time: Thu Nov 25 11:18:07 2010 BUILD: Done
Please find the makefile (Original version) as below.
!IF DEFINED(_NT_TARGET_VERSION) ! IF $(_NT_TARGET_VERSION)>=0x600 ! INCLUDE $(NTMAKEENV)\makefile.def ! ELSE # Only warn once per directory ! INCLUDE $(NTMAKEENV)\makefile.plt ! IF “$(BUILD_PASS)”==“PASS1” ! message BUILDMSG: Warning : The sample “$(MAKEDIR)” is not valid for the current OS target. ! ENDIF ! ENDIF !ELSE ! INCLUDE $(NTMAKEENV)\makefile.def !ENDIF
I have modified from 0x600 to 0x501 in the makefile. But getting build error as below. 1>errors in directory f:\ndisfiltersrc\filter 1>f:\winddk\7600.16385.1\inc\ddk\ndis.h(362) : error C1189: #error : “Wrong NDIS or DDI version specified” 1>f:\winddk\7600.16385.1\inc\ddk\ndis.h(362) : error C1189: #error : “Wrong NDIS or DDI version specified” 1>f:\ndisfiltersrc\filter\filter.c(23) : error C1083: Cannot open precompiled header file: ‘f:\ndisfiltersrc\filter\objchk_wxp_x86\i386\precomp.pch’: No such file or directory 1>f:\ndisfiltersrc\filter\device.c(7) : error C1083: Cannot open precompiled header file: ‘f:\ndisfiltersrc\filter\objchk_wxp_x86\i386\precomp.pch’: No such file or directory 1>f:\ndisfiltersrc\filter\flt_dbg.c(22) : error C1083: Cannot open precompiled header file: ‘f:\ndisfiltersrc\filter\objchk_wxp_x86\i386\precomp.pch’: No such file or directory 1>link : error LNK1181: cannot open input file ‘f:\ndisfiltersrc\filter\objchk_wxp_x86\i386\precomp.obj’
Is it just me, or does Microsoft Connect appear to be as dead as a doornail?
Despite the confusing fact that connect claims that the latest wdk is
7.1.0, what gets installed on your system is 7600.16385.1.
Mark Roddy
On Wed, Nov 24, 2010 at 9:07 AM, Bruce Cran wrote: > On Wed, 24 Nov 2010 13:49:23 +0000 (UTC) > “Gary%20G.%20Little%20%40%20comcast” wrote: > >> Technically the WDK version is 7600.16385.1. so if you are using >> 7.1.0 you have a bogus version, a typo, or I need to check the >> released versions more often. > > From Microsoft Connect: > > “The Windows Driver Kit (WDK) Version 7.1.0 is available as the latest > production release.” > > – > Bruce Cran > > — > NTDEV is sponsored by OSR > > For our schedule of WDF, WDM, debugging and other seminars visit: > http://www.osr.com/seminars > > To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer >
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@adelphia.net
Sent: Friday, November 26, 2010 4:49 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Compilation error - Network Filter Driver (WDK
Version 7.1.0)
It looks like you realized that NDIS 6.x is only >= Vista.
Unfortunately the sample you’er using doesn’t work for XP (or apparently
NDIS5.x) For XP you’ll need to use the passthru sample.
On Thu, 25 Nov 2010 09:06:51 -0500
Mark Roddy wrote:
> Is it just me, or does Microsoft Connect appear to be as dead as a > doornail?
It’s working here.
What gets installed on your system is also 7.1.0 - see C:\WinDDK\7600.16385.1\relnote.html . It seems there are at least 3 version numbers that are equivalent: 7.1.0 (in the release notes/web site, 7600.16385.1 and 7.1.0.7600 (shown in the installer package selection window).