nmap / nmap/npcap

Build crash

Open
#850 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
3.6k
Forks
592
PR merge metrics
No merged PRs in 30d

Description

When i run
D:\VS\VC\npcap-1.88>build_sdk.bat


** Visual Studio 2026 Developer Command Prompt v18.9.1
** Copyright (c) 2026 Microsoft Corporation


[vcvarsall.bat] Environment initialized for: 'x86'
MSBuild version 18.9.1+a81b43525 for .NET Framework
Build started 20.08.2026 16:56:29.
..................
I have this below:

   ClCompile:
     C:\VS2026\Prod\VC\Tools\MSVC\14.51.36231\bin\HostX86\x86\CL.exe /c /Zi /nologo /W3 /WX- /diagnostics:column /O2 /Oy- /GL /D HAVE_WFP_LOOPBACK_SUPPORT /D HAVE_RX_SUPPORT /D HAVE_DO
     T11_SUPPORT /D STD_CALL /D NDIS650 /D NDIS685 /D NDIS689 /D WINVER=0x0A00 /D _WIN32_WINNT=0x0A00 /D NTDDI_VERSION=0x0A000000 /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScop
     e /Zc:inline /Fo"Win10 Release\\" /Fd"Win10 Release\vc145.pdb" /external:W3 /Gd /TC /analyze- /FC /errorReport:queue Loopback.c Openclos.c Packet.c Read.c win_bpf_filter.c Write.c
     Loopback.c
     Openclos.c
 3>D:\VS\VC\npcap-1.88\packetWin7\npf\npf\stdafx.h(76,10): error C1083: Cannot open include file: 'ntifs.h': No such file or directory [D:\VS\VC\npcap-1.88\packetWin7\npf\npf\npf.vcxpr
   oj]
     (compiling source file 'Loopback.c')

 3>D:\VS\VC\npcap-1.88\packetWin7\npf\npf\stdafx.h(76,10): error C1083: Cannot open include file: 'ntifs.h': No such file or directory [D:\VS\VC\npcap-1.88\packetWin7\npf\npf\npf.vcxpr
   oj]
     (compiling source file 'Openclos.c')

     Packet.c
 3>D:\VS\VC\npcap-1.88\packetWin7\npf\npf\stdafx.h(76,10): error C1083: Cannot open include file: 'ntifs.h': No such file or directory [D:\VS\VC\npcap-1.88\packetWin7\npf\npf\npf.vcxpr
   oj]
     (compiling source file 'Packet.c')

     Read.c
 3>D:\VS\VC\npcap-1.88\packetWin7\npf\npf\stdafx.h(76,10): error C1083: Cannot open include file: 'ntifs.h': No such file or directory [D:\VS\VC\npcap-1.88\packetWin7\npf\npf\npf.vcxpr
   oj]
     (compiling source file 'Read.c')

     win_bpf_filter.c
 3>D:\VS\VC\npcap-1.88\packetWin7\npf\npf\stdafx.h(76,10): error C1083: Cannot open include file: 'ntifs.h': No such file or directory [D:\VS\VC\npcap-1.88\packetWin7\npf\npf\npf.vcxpr
   oj]
     (compiling source file 'win_bpf_filter.c')

     Write.c
 3>D:\VS\VC\npcap-1.88\packetWin7\npf\npf\stdafx.h(76,10): error C1083: Cannot open include file: 'ntifs.h': No such file or directory [D:\VS\VC\npcap-1.88\packetWin7\npf\npf\npf.vcxpr
   oj]
     (compiling source file 'Write.c')

Attempting to cancel the build...
3>Done Building Project "D:\VS\VC\npcap-1.88\packetWin7\npf\npf\npf.vcxproj" (default targets) -- FAILED.
1>Done Building Project "D:\VS\VC\npcap-1.88\packetWin7\vs14\npcap.sln" (Build target(s)) -- FAILED.

Build FAILED.

   "D:\VS\VC\npcap-1.88\packetWin7\vs14\npcap.sln" (Build target) (1) ->
   "D:\VS\VC\npcap-1.88\packetWin7\npf\npf\npf.vcxproj" (default target) (3) ->
   (ClCompile target) ->
     D:\VS\VC\npcap-1.88\packetWin7\npf\npf\stdafx.h(76,10): error C1083: Cannot open include file: 'ntifs.h': No such file or directory [D:\VS\VC\npcap-1.88\packetWin7\npf\npf\npf.vcx
   proj]
     D:\VS\VC\npcap-1.88\packetWin7\npf\npf\stdafx.h(76,10): error C1083: Cannot open include file: 'ntifs.h': No such file or directory [D:\VS\VC\npcap-1.88\packetWin7\npf\npf\npf.vcx
   proj]
     D:\VS\VC\npcap-1.88\packetWin7\npf\npf\stdafx.h(76,10): error C1083: Cannot open include file: 'ntifs.h': No such file or directory [D:\VS\VC\npcap-1.88\packetWin7\npf\npf\npf.vcx
   proj]
     D:\VS\VC\npcap-1.88\packetWin7\npf\npf\stdafx.h(76,10): error C1083: Cannot open include file: 'ntifs.h': No such file or directory [D:\VS\VC\npcap-1.88\packetWin7\npf\npf\npf.vcx
   proj]
     D:\VS\VC\npcap-1.88\packetWin7\npf\npf\stdafx.h(76,10): error C1083: Cannot open include file: 'ntifs.h': No such file or directory [D:\VS\VC\npcap-1.88\packetWin7\npf\npf\npf.vcx
   proj]
     D:\VS\VC\npcap-1.88\packetWin7\npf\npf\stdafx.h(76,10): error C1083: Cannot open include file: 'ntifs.h': No such file or directory [D:\VS\VC\npcap-1.88\packetWin7\npf\npf\npf.vcx
   proj]

0 Warning(s)
6 Error(s)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with build_sdk.bat and packetWin7\pf\pf\stdafx.h, then inspect the ncap.sln and pf.vcxproj configuration around the reported ClCompile invocation. Re-run the build and confirm the project no longer reports C1083 for ntifs.h.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.