pastebin - collaborative debugging tool
rovema.kpaste.net RSS


msnfs41client: Patches for Visual Studio 2026 support+misc, 2025-10-07
Posted by Anonymous on Tue 7th Oct 2025 18:45
raw | new post

  1. From d09c73704e735619d04f941b2ca8b81da57ecbcf Mon Sep 17 00:00:00 2001
  2. From: Roland Mainz <roland.mainz@nrubsig.org>
  3. Date: Tue, 7 Oct 2025 13:56:10 +0200
  4. Subject: [PATCH 1/5] build.vc19: Add workaround for ARM64 build
  5.  "winnt.h(6343,27): warning C4013: '_CountOneBits64' undefined; assuming
  6.  extern" warnings if VS2026 and VS2019 are installed on the same machine
  7.  
  8. Add workaround for ARM64 build "winnt.h(6343,27): warning C4013:
  9. '_CountOneBits64' undefined; assuming extern" warnings if VS2026
  10. and VS2019 are installed on the same machine.
  11.  
  12. Issue has been reported to Microsoft as
  13. https://developercommunity.visualstudio.com/t/winnth634327:-warning-C4013:-_Coun/10978134
  14.  
  15. Reported-by: Lionel Cons <lionelcons1972@gmail.com>
  16. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  17. ---
  18. build.vc19/libtirpc/libtirpc.vcxproj       | 4 ++--
  19.  build.vc19/nfs41_np/nfs41_np.vcxproj       | 4 ++--
  20.  build.vc19/nfs_install/nfs_install.vcxproj | 4 ++--
  21.  build.vc19/nfs_mount/nfs_mount.vcxproj     | 4 ++--
  22.  build.vc19/nfsd/nfsd.vcxproj               | 4 ++--
  23.  5 files changed, 10 insertions(+), 10 deletions(-)
  24.  
  25. diff --git a/build.vc19/libtirpc/libtirpc.vcxproj b/build.vc19/libtirpc/libtirpc.vcxproj
  26. index 4034b0b..2fe8388 100644
  27. --- a/build.vc19/libtirpc/libtirpc.vcxproj
  28. +++ b/build.vc19/libtirpc/libtirpc.vcxproj
  29. @@ -178,7 +178,7 @@
  30.        </PrecompiledHeader>
  31.        <WarningLevel>Level4</WarningLevel>
  32.        <Optimization>Disabled</Optimization>
  33. -      <PreprocessorDefinitions>FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;PORTMAP;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_WINTIRPC;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;UNICODE;_UNICODE;_DEBUG;_WINDOWS;_USRDLL;LIBTIRPC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  34. +      <PreprocessorDefinitions>FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;PORTMAP;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_WINTIRPC;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;PopulationCount64=1;UNICODE;_UNICODE;_DEBUG;_WINDOWS;_USRDLL;LIBTIRPC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  35.        <AdditionalIncludeDirectories>..\..\libtirpc\tirpc;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  36.        <LanguageStandard_C>stdc17</LanguageStandard_C>
  37.        <StringPooling>true</StringPooling>
  38. @@ -264,7 +264,7 @@
  39.        </PrecompiledHeader>
  40.        <Optimization>MaxSpeed</Optimization>
  41.        <IntrinsicFunctions>true</IntrinsicFunctions>
  42. -      <PreprocessorDefinitions>FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;PORTMAP;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_WINTIRPC;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;UNICODE;_UNICODE;NDEBUG;_WINDOWS;_USRDLL;LIBTIRPC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  43. +      <PreprocessorDefinitions>FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;PORTMAP;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_WINTIRPC;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;PopulationCount64=1;UNICODE;_UNICODE;NDEBUG;_WINDOWS;_USRDLL;LIBTIRPC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  44.        <AdditionalIncludeDirectories>..\..\libtirpc\tirpc;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  45.        <LanguageStandard_C>stdc17</LanguageStandard_C>
  46.        <StringPooling>true</StringPooling>
  47. diff --git a/build.vc19/nfs41_np/nfs41_np.vcxproj b/build.vc19/nfs41_np/nfs41_np.vcxproj
  48. index 5806707..9fb8fff 100644
  49. --- a/build.vc19/nfs41_np/nfs41_np.vcxproj
  50. +++ b/build.vc19/nfs41_np/nfs41_np.vcxproj
  51. @@ -171,7 +171,7 @@
  52.        </PrecompiledHeader>
  53.        <WarningLevel>Level4</WarningLevel>
  54.        <Optimization>Disabled</Optimization>
  55. -      <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;UNICODE;_UNICODE;_DEBUG;_WINDOWS;_USRDLL;NFS41_NP_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  56. +      <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;PopulationCount64=1;UNICODE;_UNICODE;_DEBUG;_WINDOWS;_USRDLL;NFS41_NP_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  57.        <AdditionalIncludeDirectories>..\..\include;..\..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  58.        <LanguageStandard_C>stdc17</LanguageStandard_C>
  59.        <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
  60. @@ -241,7 +241,7 @@
  61.        <Optimization>MaxSpeed</Optimization>
  62.        <FunctionLevelLinking>true</FunctionLevelLinking>
  63.        <IntrinsicFunctions>true</IntrinsicFunctions>
  64. -      <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;UNICODE;_UNICODE;NDEBUG;_WINDOWS;_USRDLL;NFS41_NP_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  65. +      <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;PopulationCount64=1;UNICODE;_UNICODE;NDEBUG;_WINDOWS;_USRDLL;NFS41_NP_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  66.        <AdditionalIncludeDirectories>..\..\include;..\..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  67.        <LanguageStandard_C>stdc17</LanguageStandard_C>
  68.        <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
  69. diff --git a/build.vc19/nfs_install/nfs_install.vcxproj b/build.vc19/nfs_install/nfs_install.vcxproj
  70. index 192bdaf..7e313e7 100644
  71. --- a/build.vc19/nfs_install/nfs_install.vcxproj
  72. +++ b/build.vc19/nfs_install/nfs_install.vcxproj
  73. @@ -162,7 +162,7 @@
  74.        </PrecompiledHeader>
  75.        <WarningLevel>Level4</WarningLevel>
  76.        <Optimization>Disabled</Optimization>
  77. -      <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;UNICODE;_UNICODE;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  78. +      <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;PopulationCount64=1;UNICODE;_UNICODE;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  79.        <AdditionalIncludeDirectories>..\..\sys;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  80.        <LanguageStandard_C>stdc17</LanguageStandard_C>
  81.        <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
  82. @@ -224,7 +224,7 @@
  83.        <Optimization>MaxSpeed</Optimization>
  84.        <FunctionLevelLinking>true</FunctionLevelLinking>
  85.        <IntrinsicFunctions>true</IntrinsicFunctions>
  86. -      <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;UNICODE;_UNICODE;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  87. +      <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;PopulationCount64=1;UNICODE;_UNICODE;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  88.        <AdditionalIncludeDirectories>..\..\sys;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  89.        <LanguageStandard_C>stdc17</LanguageStandard_C>
  90.        <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
  91. diff --git a/build.vc19/nfs_mount/nfs_mount.vcxproj b/build.vc19/nfs_mount/nfs_mount.vcxproj
  92. index ac139f7..2b25d55 100644
  93. --- a/build.vc19/nfs_mount/nfs_mount.vcxproj
  94. +++ b/build.vc19/nfs_mount/nfs_mount.vcxproj
  95. @@ -170,7 +170,7 @@
  96.        </PrecompiledHeader>
  97.        <WarningLevel>Level4</WarningLevel>
  98.        <Optimization>Disabled</Optimization>
  99. -      <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;UNICODE;_UNICODE;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  100. +      <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;PopulationCount64=1;UNICODE;_UNICODE;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  101.        <AdditionalIncludeDirectories>..\..\include;..\..;$(IntermediateOutputPath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  102.        <LanguageStandard_C>stdc17</LanguageStandard_C>
  103.        <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
  104. @@ -235,7 +235,7 @@
  105.        <Optimization>MaxSpeed</Optimization>
  106.        <FunctionLevelLinking>true</FunctionLevelLinking>
  107.        <IntrinsicFunctions>true</IntrinsicFunctions>
  108. -      <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;UNICODE;_UNICODE;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  109. +      <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;PopulationCount64=1;UNICODE;_UNICODE;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  110.        <AdditionalIncludeDirectories>..\..\include;..\..;$(IntermediateOutputPath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  111.        <LanguageStandard_C>stdc17</LanguageStandard_C>
  112.        <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
  113. diff --git a/build.vc19/nfsd/nfsd.vcxproj b/build.vc19/nfsd/nfsd.vcxproj
  114. index e38f629..fc5f5d4 100644
  115. --- a/build.vc19/nfsd/nfsd.vcxproj
  116. +++ b/build.vc19/nfsd/nfsd.vcxproj
  117. @@ -183,7 +183,7 @@
  118.        </PrecompiledHeader>
  119.        <WarningLevel>Level4</WarningLevel>
  120.        <Optimization>Disabled</Optimization>
  121. -      <PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;STANDALONE_NFSD;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_WINTIRPC;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;UNICODE;_UNICODE;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  122. +      <PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;STANDALONE_NFSD;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_WINTIRPC;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;PopulationCount64=1;UNICODE;_UNICODE;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  123.        <AdditionalIncludeDirectories>..\..\include;..\..\libtirpc\tirpc;..\..\dll;..\..;$(IntermediateOutputPath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  124.        <LanguageStandard_C>stdc17</LanguageStandard_C>
  125.        <BasicRuntimeChecks>Default</BasicRuntimeChecks>
  126. @@ -267,7 +267,7 @@
  127.        <Optimization>MaxSpeed</Optimization>
  128.        <FunctionLevelLinking>true</FunctionLevelLinking>
  129.        <IntrinsicFunctions>true</IntrinsicFunctions>
  130. -      <PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_WINTIRPC;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;UNICODE;_UNICODE;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  131. +      <PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_WINTIRPC;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;PopulationCount64=1;UNICODE;_UNICODE;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  132.        <AdditionalIncludeDirectories>..\..\include;..\..\libtirpc\tirpc;..\..\dll;..\..;$(IntermediateOutputPath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  133.        <LanguageStandard_C>stdc17</LanguageStandard_C>
  134.        <BufferSecurityCheck>false</BufferSecurityCheck>
  135. --
  136. 2.51.0
  137.  
  138. From 86b897b7dc026d73fe2cffc1c07b6df3b354d8bf Mon Sep 17 00:00:00 2001
  139. From: Roland Mainz <roland.mainz@nrubsig.org>
  140. Date: Tue, 7 Oct 2025 13:58:32 +0200
  141. Subject: [PATCH 2/5] cygwin: Fix VS2026 build failure because
  142.  s/Community/Insider/ name difference in compiler path
  143.  
  144. Fix VS2026 build failure because s/Community/Insider/ name difference in
  145. compiler path.
  146.  
  147. Reported-by: Lionel Cons <lionelcons1972@gmail.com>
  148. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  149. ---
  150. cygwin/Makefile.install | 12 ++++++++----
  151.  1 file changed, 8 insertions(+), 4 deletions(-)
  152.  
  153. diff --git a/cygwin/Makefile.install b/cygwin/Makefile.install
  154. index a25aee8..f02fb50 100644
  155. --- a/cygwin/Makefile.install
  156. +++ b/cygwin/Makefile.install
  157. @@ -176,21 +176,25 @@ installdest:
  158.         @ printf '# Packaging libs\n'
  159.         set -o errexit -o pipefail ; \
  160.         typeset msbuildpath="$$(which MSBuild.exe)" ; \
  161. -       typeset vsbasepath="$${msbuildpath%*/Community/*}" ; \
  162. +       case "$$msbuildpath" in \
  163. +               *Community*)    typeset vsbasepath="$${msbuildpath%*/Community/*}" ; typeset vssubdir="Community" ;; \
  164. +               *Insiders*)     typeset vsbasepath="$${msbuildpath%*/Insiders/*}" ;  typeset vssubdir="Insiders" ;; \
  165. +               *)              printf "Unknown msbuildpath=%q\n" "$$msbuildpath" 1>&2 ; exit 1 ;; \
  166. +       esac ; \
  167.         test -d "$${vsbasepath}" || { printf "vsbasepath not found\n" 1>&2 ; exit 1 ; }; \
  168.         cp \
  169. -               "$$(find "$${vsbasepath}/Community" -ipath '*/x86/*/VCRUNTIME140D.dll' | sort -n -r | head -n 1)" \
  170. +               "$$(find "$${vsbasepath}/$${vssubdir}" -ipath '*/x86/*/VCRUNTIME140D.dll' | sort -n -r | head -n 1)" \
  171.                 "$(DESTDIR)/lib/msnfs41client/i686/." ; \
  172.         cp '/cygdrive/c/Program Files (x86)/Windows Kits/10/bin/x86/ucrt/ucrtbased.dll' "$(DESTDIR)/lib/msnfs41client/i686/." ; \
  173.         if [[ "$(VS_BUILD_DIR_X64)" != '' ]] ; then \
  174.                 cp \
  175. -                       "$$(find "$${vsbasepath}/Community" -ipath '*/x64/*/VCRUNTIME140D.dll' | sort -n -r | head -n 1)" \
  176. +                       "$$(find "$${vsbasepath}/$${vssubdir}" -ipath '*/x64/*/VCRUNTIME140D.dll' | sort -n -r | head -n 1)" \
  177.                         "$(DESTDIR)/lib/msnfs41client/x64/." ; \
  178.                 cp '/cygdrive/c/Program Files (x86)/Windows Kits/10/bin/x64/ucrt/ucrtbased.dll' "$(DESTDIR)/lib/msnfs41client/x64/." ; \
  179.         fi ; \
  180.         if [[ "$(VS_BUILD_DIR_ARM64)" != '' ]] ; then \
  181.                 cp \
  182. -                       "$$(find "$${vsbasepath}/Community" -ipath '*/arm64/*/VCRUNTIME140D.dll' | sort -n -r | head -n 1)" \
  183. +                       "$$(find "$${vsbasepath}/$${vssubdir}" -ipath '*/arm64/*/VCRUNTIME140D.dll' | sort -n -r | head -n 1)" \
  184.                         "$(DESTDIR)/lib/msnfs41client/arm64/." ; \
  185.                 cp '/cygdrive/c/Program Files (x86)/Windows Kits/10/bin/arm64/ucrt/ucrtbased.dll' "$(DESTDIR)/lib/msnfs41client/arm64/." ; \
  186.         fi
  187. --
  188. 2.51.0
  189.  
  190. From eab5e095c4b45b86047785d35e6d25d910a9a5e0 Mon Sep 17 00:00:00 2001
  191. From: Roland Mainz <roland.mainz@nrubsig.org>
  192. Date: Tue, 7 Oct 2025 14:18:54 +0200
  193. Subject: [PATCH 3/5] README.md,build.vc19,docs: Add VS2026 vsconfig
  194.  file+document it
  195.  
  196. Add VS2026 vsconfig file+document it.
  197.  
  198. Reported-by: Lionel Cons <lionelcons1972@gmail.com>
  199. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  200. ---
  201. README.md                                  |  2 +-
  202.  build.vc19/ms-nfs41-client_vs2026.vsconfig | 71 ++++++++++++++++++++++
  203.  docs/README.xml                            |  2 +-
  204.  3 files changed, 73 insertions(+), 2 deletions(-)
  205.  create mode 100755 build.vc19/ms-nfs41-client_vs2026.vsconfig
  206.  
  207. diff --git a/README.md b/README.md
  208. index 8c28eec..960d480 100644
  209. --- a/README.md
  210. +++ b/README.md
  211. @@ -870,7 +870,7 @@ Source code can be obtained from
  212.    Community Insiders
  213.  
  214.    - Start Visual Studio 2026 installer and import the installer config
  215. -    file `ms-nfs41-client/build.vc19/ms-nfs41-client_vs2022.vsconfig`,
  216. +    file `ms-nfs41-client/build.vc19/ms-nfs41-client_vs2026.vsconfig`,
  217.      and then install Visual Studio 2026 Community Insiders.
  218.  
  219.    - WDK for Windows 10, version 2004, from
  220. diff --git a/build.vc19/ms-nfs41-client_vs2026.vsconfig b/build.vc19/ms-nfs41-client_vs2026.vsconfig
  221. new file mode 100755
  222. index 0000000..6c9dacc
  223. --- /dev/null
  224. +++ b/build.vc19/ms-nfs41-client_vs2026.vsconfig
  225. @@ -0,0 +1,71 @@
  226. +{
  227. +  "version": "1.0",
  228. +  "components": [
  229. +    "Microsoft.VisualStudio.Component.CoreEditor",
  230. +    "Microsoft.VisualStudio.Workload.CoreEditor",
  231. +    "Microsoft.Net.Component.4.8.SDK",
  232. +    "Microsoft.Net.Component.4.7.2.TargetingPack",
  233. +    "Microsoft.VisualStudio.Component.TypeScript.TSServer",
  234. +    "Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions",
  235. +    "Microsoft.VisualStudio.Component.JavaScript.TypeScript",
  236. +    "Microsoft.VisualStudio.Component.Roslyn.Compiler",
  237. +    "Microsoft.Component.MSBuild",
  238. +    "Microsoft.VisualStudio.Component.Roslyn.LanguageServices",
  239. +    "Microsoft.VisualStudio.Component.TextTemplating",
  240. +    "Microsoft.VisualStudio.Component.NuGet",
  241. +    "Microsoft.Component.ClickOnce",
  242. +    "Microsoft.VisualStudio.Component.IntelliCode",
  243. +    "Component.VisualStudio.GitHub.Copilot",
  244. +    "Microsoft.VisualStudio.Component.Debugger.JustInTime",
  245. +    "Microsoft.VisualStudio.Component.VC.CoreIde",
  246. +    "Microsoft.VisualStudio.Component.Windows10SDK",
  247. +    "Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
  248. +    "Microsoft.VisualStudio.Component.Graphics.Tools",
  249. +    "Microsoft.VisualStudio.Component.VC.DiagnosticTools",
  250. +    "Microsoft.VisualStudio.Component.Windows11SDK.26100",
  251. +    "Microsoft.VisualStudio.Component.VC.ATL",
  252. +    "Microsoft.VisualStudio.Component.VC.ATLMFC",
  253. +    "Microsoft.VisualStudio.Component.VC.Redist.14.Latest",
  254. +    "Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core",
  255. +    "Microsoft.VisualStudio.Component.Windows11Sdk.WindowsPerformanceToolkit",
  256. +    "Microsoft.VisualStudio.Component.CppBuildInsights",
  257. +    "Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions.CMake",
  258. +    "Microsoft.VisualStudio.Component.VC.CMake.Project",
  259. +    "Microsoft.VisualStudio.Component.VC.TestAdapterForBoostTest",
  260. +    "Microsoft.VisualStudio.Component.VC.TestAdapterForGoogleTest",
  261. +    "Microsoft.VisualStudio.Component.VC.ASAN",
  262. +    "Microsoft.VisualStudio.Component.Vcpkg",
  263. +    "Microsoft.Net.Component.4.6.1.TargetingPack",
  264. +    "Microsoft.VisualStudio.Component.VC.CLI.Support",
  265. +    "Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset",
  266. +    "Microsoft.VisualStudio.Component.VC.Llvm.Clang",
  267. +    "Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Llvm.Clang",
  268. +    "Microsoft.VisualStudio.Component.Windows11SDK.22621",
  269. +    "Microsoft.VisualStudio.Component.Windows10SDK.19041",
  270. +    "Microsoft.Component.VC.Runtime.UCRTSDK",
  271. +    "Microsoft.VisualStudio.Workload.NativeDesktop",
  272. +    "Microsoft.VisualStudio.Component.VC.Tools.ARM64EC",
  273. +    "Microsoft.VisualStudio.Component.VC.Tools.ARM64",
  274. +    "Microsoft.VisualStudio.Component.Git",
  275. +    "Microsoft.VisualStudio.Component.VC.ATL.ARM64",
  276. +    "Microsoft.VisualStudio.Component.VC.ATL.Spectre",
  277. +    "Microsoft.VisualStudio.Component.VC.ATL.ARM64.Spectre",
  278. +    "Microsoft.VisualStudio.Component.VC.MFC.ARM64.Spectre",
  279. +    "Microsoft.VisualStudio.Component.VC.Runtimes.ARM64EC.Spectre",
  280. +    "Microsoft.VisualStudio.Component.VC.Runtimes.ARM64.Spectre",
  281. +    "Microsoft.VisualStudio.Component.VC.Runtimes.x86.x64.Spectre",
  282. +    "Microsoft.VisualStudio.Component.VC.MFC.ARM64",
  283. +    "Microsoft.VisualStudio.Component.VC.14.50.18.0.x86.x64",
  284. +    "Microsoft.VisualStudio.Component.VC.14.50.18.0.x86.x64.Spectre",
  285. +    "Microsoft.VisualStudio.Component.VC.14.50.18.0.ATL.ARM64",
  286. +    "Microsoft.VisualStudio.Component.VC.14.50.18.0.ATL",
  287. +    "Microsoft.VisualStudio.Component.VC.14.50.18.0.ATL.ARM64.Spectre",
  288. +    "Microsoft.VisualStudio.Component.VC.14.50.18.0.ATL.Spectre",
  289. +    "Microsoft.VisualStudio.Component.VC.14.50.18.0.MFC.ARM64",
  290. +    "Microsoft.VisualStudio.Component.VC.14.50.18.0.MFC",
  291. +    "Microsoft.VisualStudio.Component.VC.14.50.18.0.MFC.ARM64.Spectre",
  292. +    "Microsoft.VisualStudio.Component.VC.14.50.18.0.MFC.Spectre",
  293. +    "Component.Microsoft.Windows.DriverKit"
  294. +  ],
  295. +  "extensions": []
  296. +}
  297. \ No newline at end of file
  298. diff --git a/docs/README.xml b/docs/README.xml
  299. index f994545..fe33f0c 100644
  300. --- a/docs/README.xml
  301. +++ b/docs/README.xml
  302. @@ -971,7 +971,7 @@ Datei befindet. Versuchen Sie, die Datei woanders zu speichern.</programlisting>
  303.              <itemizedlist>
  304.                <listitem>
  305.                  <para>Start Visual Studio 2026 installer and import the installer config file
  306. -                <filename>ms-nfs41-client/build.vc19/ms-nfs41-client_vs2022.vsconfig</filename>,
  307. +                <filename>ms-nfs41-client/build.vc19/ms-nfs41-client_vs2026.vsconfig</filename>,
  308.                  and then install Visual Studio 2026 Community Insiders.</para>
  309.                </listitem>
  310.                <listitem>
  311. --
  312. 2.51.0
  313.  
  314. From 8064bb0901e59c9fa5df98d9d5ec397a60cec1ae Mon Sep 17 00:00:00 2001
  315. From: Roland Mainz <roland.mainz@nrubsig.org>
  316. Date: Tue, 7 Oct 2025 14:37:56 +0200
  317. Subject: [PATCH 4/5] README.md,docs,tests: Make sed commands used to switch VS
  318.  platform toolsets independent of original version
  319.  
  320. Make sed commands used to switch VS platform toolsets independent of
  321. original version. That limits issues if forks/branches use a different
  322. default platform toolset version.
  323.  
  324. Reported-by: Lionel Cons <lionelcons1972@gmail.com>
  325. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  326. ---
  327. README.md                             | 7 +++++--
  328.  docs/README.xml                       | 7 +++++--
  329.  tests/nfsbuildtest/nfsbuildtest.ksh93 | 8 +++++++-
  330.  3 files changed, 17 insertions(+), 5 deletions(-)
  331.  
  332. diff --git a/README.md b/README.md
  333. index 960d480..01cbb9f 100644
  334. --- a/README.md
  335. +++ b/README.md
  336. @@ -896,6 +896,9 @@ Source code can be obtained from
  337.        export PATH="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/:$PATH"
  338.        git clone https://github.com/kofemann/ms-nfs41-client.git
  339.        cd ms-nfs41-client
  340. +      # "retarget" VS platform toolset to "v142"
  341. +      # ("v142" should remain the default when comitting)
  342. +      sed -i -E 's/<PlatformToolset>v...<\/PlatformToolset>/<PlatformToolset>v142<\/PlatformToolset>/g' $(find 'build.vc19' -name \*.vcxproj)
  343.        cd cygwin
  344.        # get default WDK Test Certificate SHA1 ThumbPrint value for code signing
  345.        export CERTIFICATE_THUMBPRINT="$(powershell -c 'Get-ChildItem -Path Cert:\CurrentUser\My | Where-Object {$_.Subject -like "*WDKTestCert*"} | Select-Object -ExpandProperty Thumbprint')"
  346. @@ -912,7 +915,7 @@ Source code can be obtained from
  347.        cd ms-nfs41-client
  348.        # "retarget" VS platform toolset to "v143"
  349.        # ("v142" should remain the default when comitting)
  350. -      sed -i -E 's/<PlatformToolset>v142<\/PlatformToolset>/<PlatformToolset>v143<\/PlatformToolset>/g' $(find 'build.vc19' -name \*.vcxproj)
  351. +      sed -i -E 's/<PlatformToolset>v...<\/PlatformToolset>/<PlatformToolset>v143<\/PlatformToolset>/g' $(find 'build.vc19' -name \*.vcxproj)
  352.        cd cygwin
  353.        # get default WDK Test Certificate SHA1 ThumbPrint value for code signing
  354.        export CERTIFICATE_THUMBPRINT="$(powershell -c 'Get-ChildItem -Path Cert:\CurrentUser\My | Where-Object {$_.Subject -like "*WDKTestCert*"} | Select-Object -ExpandProperty Thumbprint')"
  355. @@ -929,7 +932,7 @@ Source code can be obtained from
  356.        cd ms-nfs41-client
  357.        # "retarget" VS platform toolset to "v145"
  358.        # ("v142" should remain the default when comitting)
  359. -      sed -i -E 's/<PlatformToolset>v142<\/PlatformToolset>/<PlatformToolset>v145<\/PlatformToolset>/g' $(find 'build.vc19' -name \*.vcxproj)
  360. +      sed -i -E 's/<PlatformToolset>v...<\/PlatformToolset>/<PlatformToolset>v145<\/PlatformToolset>/g' $(find 'build.vc19' -name \*.vcxproj)
  361.        cd cygwin
  362.        # get default WDK Test Certificate SHA1 ThumbPrint value for code signing
  363.        export CERTIFICATE_THUMBPRINT="$(powershell -c 'Get-ChildItem -Path Cert:\CurrentUser\My | Where-Object {$_.Subject -like "*WDKTestCert*"} | Select-Object -ExpandProperty Thumbprint')"
  364. diff --git a/docs/README.xml b/docs/README.xml
  365. index fe33f0c..5830f66 100644
  366. --- a/docs/README.xml
  367. +++ b/docs/README.xml
  368. @@ -1000,6 +1000,9 @@ Datei befindet. Versuchen Sie, die Datei woanders zu speichern.</programlisting>
  369.  export PATH="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/:$PATH"
  370.  git clone https://github.com/kofemann/ms-nfs41-client.git
  371.  cd ms-nfs41-client
  372. +# "retarget" VS platform toolset to "v142"
  373. +# ("v142" should remain the default when comitting)
  374. +sed -i -E 's/&lt;PlatformToolset&gt;v...&lt;\/PlatformToolset&gt;/&lt;PlatformToolset&gt;v142&lt;\/PlatformToolset&gt;/g' $(find 'build.vc19' -name \*.vcxproj)
  375.  cd cygwin
  376.  # get default WDK Test Certificate SHA1 ThumbPrint value for code signing
  377.  export CERTIFICATE_THUMBPRINT="$(powershell -c 'Get-ChildItem -Path Cert:\CurrentUser\My | Where-Object {$_.Subject -like "*WDKTestCert*"} | Select-Object -ExpandProperty Thumbprint')"
  378. @@ -1015,7 +1018,7 @@ git clone https://github.com/kofemann/ms-nfs41-client.git
  379.  cd ms-nfs41-client
  380.  # "retarget" VS platform toolset to "v143"
  381.  # ("v142" should remain the default when comitting)
  382. -sed -i -E 's/&lt;PlatformToolset&gt;v142&lt;\/PlatformToolset&gt;/&lt;PlatformToolset&gt;v143&lt;\/PlatformToolset&gt;/g' $(find 'build.vc19' -name \*.vcxproj)
  383. +sed -i -E 's/&lt;PlatformToolset&gt;v...&lt;\/PlatformToolset&gt;/&lt;PlatformToolset&gt;v143&lt;\/PlatformToolset&gt;/g' $(find 'build.vc19' -name \*.vcxproj)
  384.  cd cygwin
  385.  # get default WDK Test Certificate SHA1 ThumbPrint value for code signing
  386.  export CERTIFICATE_THUMBPRINT="$(powershell -c 'Get-ChildItem -Path Cert:\CurrentUser\My | Where-Object {$_.Subject -like "*WDKTestCert*"} | Select-Object -ExpandProperty Thumbprint')"
  387. @@ -1031,7 +1034,7 @@ git clone https://github.com/kofemann/ms-nfs41-client.git
  388.  cd ms-nfs41-client
  389.  # "retarget" VS platform toolset to "v145"
  390.  # ("v142" should remain the default when comitting)
  391. -sed -i -E 's/&lt;PlatformToolset&gt;v142&lt;\/PlatformToolset&gt;/&lt;PlatformToolset&gt;v145&lt;\/PlatformToolset&gt;/g' $(find 'build.vc19' -name \*.vcxproj)
  392. +sed -i -E 's/&lt;PlatformToolset&gt;v...&lt;\/PlatformToolset&gt;/&lt;PlatformToolset&gt;v145&lt;\/PlatformToolset&gt;/g' $(find 'build.vc19' -name \*.vcxproj)
  393.  cd cygwin
  394.  # get default WDK Test Certificate SHA1 ThumbPrint value for code signing
  395.  export CERTIFICATE_THUMBPRINT="$(powershell -c 'Get-ChildItem -Path Cert:\CurrentUser\My | Where-Object {$_.Subject -like "*WDKTestCert*"} | Select-Object -ExpandProperty Thumbprint')"
  396. diff --git a/tests/nfsbuildtest/nfsbuildtest.ksh93 b/tests/nfsbuildtest/nfsbuildtest.ksh93
  397. index 37024cb..322c685 100644
  398. --- a/tests/nfsbuildtest/nfsbuildtest.ksh93
  399. +++ b/tests/nfsbuildtest/nfsbuildtest.ksh93
  400. @@ -546,7 +546,7 @@ function msnfs41client_build
  401.  
  402.                         # "retarget" VS platform toolset to "v143"
  403.                         # ("v142" should remain the default when comitting)
  404. -                       sed -i -E 's/<PlatformToolset>v142<\/PlatformToolset>/<PlatformToolset>v143<\/PlatformToolset>/g' $(find 'build.vc19' -name \*.vcxproj)
  405. +                       sed -i -E 's/<PlatformToolset>v...<\/PlatformToolset>/<PlatformToolset>v143<\/PlatformToolset>/g' $(find 'build.vc19' -name \*.vcxproj)
  406.  
  407.                         # build
  408.                         time make -j1 -f cygwin/Makefile build64
  409. @@ -561,6 +561,12 @@ function msnfs41client_build
  410.                                 export PATH="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/:$PATH"
  411.                         fi
  412.                         set -o errexit
  413. +
  414. +                       # "retarget" VS platform toolset to "v142"
  415. +                       # ("v142" should remain the default when comitting)
  416. +                       sed -i -E 's/<PlatformToolset>v...<\/PlatformToolset>/<PlatformToolset>v142<\/PlatformToolset>/g' $(find 'build.vc19' -name \*.vcxproj)
  417. +
  418. +                       # build
  419.                         time make -j1 -f cygwin/Makefile build
  420.                         time make -j1 -f cygwin/Makefile installdest
  421.                         time make -j1 -f cygwin/Makefile bintarball
  422. --
  423. 2.51.0
  424.  
  425. From 7a7231afb68f76b4b2a6639c82fd034a266b419f Mon Sep 17 00:00:00 2001
  426. From: Roland Mainz <roland.mainz@nrubsig.org>
  427. Date: Tue, 7 Oct 2025 15:13:28 +0200
  428. Subject: [PATCH 5/5] daemon,mount: nfs_mount.exe --version, nfsd.exe --version
  429.  should include compiler+SDK+WDK versions
  430.  
  431. nfs_mount.exe --version, nfsd.exe --version should include
  432. compiler+SDK+WDK versions.
  433.  
  434. Reported-by: Lionel Cons <lionelcons1972@gmail.com>
  435. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  436. ---
  437. daemon/nfs41_daemon.c | 22 ++++++++++++++++++----
  438.  mount/mount.c         | 17 +++++++++++++++--
  439.  2 files changed, 33 insertions(+), 6 deletions(-)
  440.  
  441. diff --git a/daemon/nfs41_daemon.c b/daemon/nfs41_daemon.c
  442. index 9f47d43..ff528c4 100644
  443. --- a/daemon/nfs41_daemon.c
  444. +++ b/daemon/nfs41_daemon.c
  445. @@ -31,6 +31,10 @@
  446.  
  447.  #include <devioctl.h>
  448.  #include <iphlpapi.h> /* for GetNetworkParam() */
  449. +
  450. +/* SDK, WDK versions */
  451. +#include <sdkddkver.h>
  452. +
  453.  #include "nfs41_build_features.h"
  454.  #include "nfs41_driver.h" /* for NFS41_USER_DEVICE_NAME_A */
  455.  #include "nfs41_np.h" /* for NFS41NP_SHARED_MEMORY */
  456. @@ -329,14 +333,24 @@ static void PrintUsage(const wchar_t *argv0)
  457.  static
  458.  void PrintVersion(void)
  459.  {
  460. -    (void)fprintf(stderr,
  461. -        "nfsd.exe version 0.1 (%s) from ms-nfs41-client, commitid=%s\n",
  462. +    (void)fwprintf(stderr,
  463. +        L"nfsd.exe "
  464. +        L"version 0.1 (%s) from ms-nfs41-client, commitid=\"%s\", "
  465. +#ifdef _MSC_VER
  466. +        L"_MSC_VER=%ld, "
  467. +#endif /* _MSC_VER */
  468. +        L"NTDDI_VERSION=0x%lx, WDK_NTDDI_VERSION=0x%lx\n",
  469.  #ifdef _DEBUG
  470.          "DEBUG build",
  471.  #else
  472. -        "RELEASE",
  473. +        "RELEASE build",
  474.  #endif /* _DEBUG */
  475. -        GIT_COMMIT_ID);
  476. +        GIT_COMMIT_ID,
  477. +#ifdef _MSC_VER
  478. +        (long)_MSC_VER,
  479. +#endif /* _MSC_VER */
  480. +        (long)NTDDI_VERSION,
  481. +        (long)WDK_NTDDI_VERSION);
  482.  }
  483.  
  484.  static
  485. diff --git a/mount/mount.c b/mount/mount.c
  486. index e5b6df5..a5355aa 100644
  487. --- a/mount/mount.c
  488. +++ b/mount/mount.c
  489. @@ -40,6 +40,9 @@
  490.  #include <io.h>
  491.  #include <fcntl.h>
  492.  
  493. +/* SDK, WDK versions */
  494. +#include <sdkddkver.h>
  495. +
  496.  #include "nfs41_build_features.h"
  497.  #include "nfs41_driver.h" /* |NFS41_PROVIDER_NAME_U| */
  498.  #include "options.h"
  499. @@ -92,13 +95,23 @@ static
  500.  void PrintVersion(void)
  501.  {
  502.      (void)fwprintf(stderr,
  503. -        L"nfs_mount.exe version 0.1 (%s) from ms-nfs41-client, commitid=%s\n",
  504. +        L"nfs_mount.exe "
  505. +        L"version 0.1 (%s) from ms-nfs41-client, commitid=\"%s\", "
  506. +#ifdef _MSC_VER
  507. +        L"_MSC_VER=%ld, "
  508. +#endif /* _MSC_VER */
  509. +        L"NTDDI_VERSION=0x%lx, WDK_NTDDI_VERSION=0x%lx\n",
  510.  #ifdef _DEBUG
  511.          "DEBUG build",
  512.  #else
  513.          "RELEASE build",
  514.  #endif /* _DEBUG */
  515. -        GIT_COMMIT_ID);
  516. +        GIT_COMMIT_ID,
  517. +#ifdef _MSC_VER
  518. +        (long)_MSC_VER,
  519. +#endif /* _MSC_VER */
  520. +        (long)NTDDI_VERSION,
  521. +        (long)WDK_NTDDI_VERSION);
  522.  }
  523.  
  524.  static
  525. --
  526. 2.51.0

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at