- From d09c73704e735619d04f941b2ca8b81da57ecbcf Mon Sep 17 00:00:00 2001
- From: Roland Mainz <roland.mainz@nrubsig.org>
- Date: Tue, 7 Oct 2025 13:56:10 +0200
- Subject: [PATCH 1/5] build.vc19: Add workaround for ARM64 build
- "winnt.h(6343,27): warning C4013: '_CountOneBits64' undefined; assuming
- extern" warnings if VS2026 and VS2019 are installed on the same machine
- Add workaround for ARM64 build "winnt.h(6343,27): warning C4013:
- '_CountOneBits64' undefined; assuming extern" warnings if VS2026
- and VS2019 are installed on the same machine.
- Issue has been reported to Microsoft as
- https://developercommunity.visualstudio.com/t/winnth634327:-warning-C4013:-_Coun/10978134
- Reported-by: Lionel Cons <lionelcons1972@gmail.com>
- Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
- ---
- build.vc19/libtirpc/libtirpc.vcxproj | 4 ++--
- build.vc19/nfs41_np/nfs41_np.vcxproj | 4 ++--
- build.vc19/nfs_install/nfs_install.vcxproj | 4 ++--
- build.vc19/nfs_mount/nfs_mount.vcxproj | 4 ++--
- build.vc19/nfsd/nfsd.vcxproj | 4 ++--
- 5 files changed, 10 insertions(+), 10 deletions(-)
- diff --git a/build.vc19/libtirpc/libtirpc.vcxproj b/build.vc19/libtirpc/libtirpc.vcxproj
- index 4034b0b..2fe8388 100644
- --- a/build.vc19/libtirpc/libtirpc.vcxproj
- +++ b/build.vc19/libtirpc/libtirpc.vcxproj
- @@ -178,7 +178,7 @@
- </PrecompiledHeader>
- <WarningLevel>Level4</WarningLevel>
- <Optimization>Disabled</Optimization>
- - <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>
- + <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>
- <AdditionalIncludeDirectories>..\..\libtirpc\tirpc;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <StringPooling>true</StringPooling>
- @@ -264,7 +264,7 @@
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- - <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>
- + <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>
- <AdditionalIncludeDirectories>..\..\libtirpc\tirpc;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <StringPooling>true</StringPooling>
- diff --git a/build.vc19/nfs41_np/nfs41_np.vcxproj b/build.vc19/nfs41_np/nfs41_np.vcxproj
- index 5806707..9fb8fff 100644
- --- a/build.vc19/nfs41_np/nfs41_np.vcxproj
- +++ b/build.vc19/nfs41_np/nfs41_np.vcxproj
- @@ -171,7 +171,7 @@
- </PrecompiledHeader>
- <WarningLevel>Level4</WarningLevel>
- <Optimization>Disabled</Optimization>
- - <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;UNICODE;_UNICODE;_DEBUG;_WINDOWS;_USRDLL;NFS41_NP_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- + <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;PopulationCount64=1;UNICODE;_UNICODE;_DEBUG;_WINDOWS;_USRDLL;NFS41_NP_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\include;..\..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- @@ -241,7 +241,7 @@
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- - <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;UNICODE;_UNICODE;NDEBUG;_WINDOWS;_USRDLL;NFS41_NP_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- + <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;PopulationCount64=1;UNICODE;_UNICODE;NDEBUG;_WINDOWS;_USRDLL;NFS41_NP_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\include;..\..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- diff --git a/build.vc19/nfs_install/nfs_install.vcxproj b/build.vc19/nfs_install/nfs_install.vcxproj
- index 192bdaf..7e313e7 100644
- --- a/build.vc19/nfs_install/nfs_install.vcxproj
- +++ b/build.vc19/nfs_install/nfs_install.vcxproj
- @@ -162,7 +162,7 @@
- </PrecompiledHeader>
- <WarningLevel>Level4</WarningLevel>
- <Optimization>Disabled</Optimization>
- - <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;UNICODE;_UNICODE;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- + <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;PopulationCount64=1;UNICODE;_UNICODE;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\sys;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- @@ -224,7 +224,7 @@
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- - <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;UNICODE;_UNICODE;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- + <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;PopulationCount64=1;UNICODE;_UNICODE;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\sys;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- diff --git a/build.vc19/nfs_mount/nfs_mount.vcxproj b/build.vc19/nfs_mount/nfs_mount.vcxproj
- index ac139f7..2b25d55 100644
- --- a/build.vc19/nfs_mount/nfs_mount.vcxproj
- +++ b/build.vc19/nfs_mount/nfs_mount.vcxproj
- @@ -170,7 +170,7 @@
- </PrecompiledHeader>
- <WarningLevel>Level4</WarningLevel>
- <Optimization>Disabled</Optimization>
- - <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;UNICODE;_UNICODE;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- + <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;PopulationCount64=1;UNICODE;_UNICODE;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\include;..\..;$(IntermediateOutputPath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- @@ -235,7 +235,7 @@
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- - <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;UNICODE;_UNICODE;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- + <PreprocessorDefinitions>WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;_MEMCPY_INLINE_=1;PopulationCount64=1;UNICODE;_UNICODE;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\include;..\..;$(IntermediateOutputPath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- diff --git a/build.vc19/nfsd/nfsd.vcxproj b/build.vc19/nfsd/nfsd.vcxproj
- index e38f629..fc5f5d4 100644
- --- a/build.vc19/nfsd/nfsd.vcxproj
- +++ b/build.vc19/nfsd/nfsd.vcxproj
- @@ -183,7 +183,7 @@
- </PrecompiledHeader>
- <WarningLevel>Level4</WarningLevel>
- <Optimization>Disabled</Optimization>
- - <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>
- + <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>
- <AdditionalIncludeDirectories>..\..\include;..\..\libtirpc\tirpc;..\..\dll;..\..;$(IntermediateOutputPath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <BasicRuntimeChecks>Default</BasicRuntimeChecks>
- @@ -267,7 +267,7 @@
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- - <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>
- + <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>
- <AdditionalIncludeDirectories>..\..\include;..\..\libtirpc\tirpc;..\..\dll;..\..;$(IntermediateOutputPath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <BufferSecurityCheck>false</BufferSecurityCheck>
- --
- 2.51.0
- From 86b897b7dc026d73fe2cffc1c07b6df3b354d8bf Mon Sep 17 00:00:00 2001
- From: Roland Mainz <roland.mainz@nrubsig.org>
- Date: Tue, 7 Oct 2025 13:58:32 +0200
- Subject: [PATCH 2/5] cygwin: Fix VS2026 build failure because
- s/Community/Insider/ name difference in compiler path
- Fix VS2026 build failure because s/Community/Insider/ name difference in
- compiler path.
- Reported-by: Lionel Cons <lionelcons1972@gmail.com>
- Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
- ---
- cygwin/Makefile.install | 12 ++++++++----
- 1 file changed, 8 insertions(+), 4 deletions(-)
- diff --git a/cygwin/Makefile.install b/cygwin/Makefile.install
- index a25aee8..f02fb50 100644
- --- a/cygwin/Makefile.install
- +++ b/cygwin/Makefile.install
- @@ -176,21 +176,25 @@ installdest:
- @ printf '# Packaging libs\n'
- set -o errexit -o pipefail ; \
- typeset msbuildpath="$$(which MSBuild.exe)" ; \
- - typeset vsbasepath="$${msbuildpath%*/Community/*}" ; \
- + case "$$msbuildpath" in \
- + *Community*) typeset vsbasepath="$${msbuildpath%*/Community/*}" ; typeset vssubdir="Community" ;; \
- + *Insiders*) typeset vsbasepath="$${msbuildpath%*/Insiders/*}" ; typeset vssubdir="Insiders" ;; \
- + *) printf "Unknown msbuildpath=%q\n" "$$msbuildpath" 1>&2 ; exit 1 ;; \
- + esac ; \
- test -d "$${vsbasepath}" || { printf "vsbasepath not found\n" 1>&2 ; exit 1 ; }; \
- cp \
- - "$$(find "$${vsbasepath}/Community" -ipath '*/x86/*/VCRUNTIME140D.dll' | sort -n -r | head -n 1)" \
- + "$$(find "$${vsbasepath}/$${vssubdir}" -ipath '*/x86/*/VCRUNTIME140D.dll' | sort -n -r | head -n 1)" \
- "$(DESTDIR)/lib/msnfs41client/i686/." ; \
- cp '/cygdrive/c/Program Files (x86)/Windows Kits/10/bin/x86/ucrt/ucrtbased.dll' "$(DESTDIR)/lib/msnfs41client/i686/." ; \
- if [[ "$(VS_BUILD_DIR_X64)" != '' ]] ; then \
- cp \
- - "$$(find "$${vsbasepath}/Community" -ipath '*/x64/*/VCRUNTIME140D.dll' | sort -n -r | head -n 1)" \
- + "$$(find "$${vsbasepath}/$${vssubdir}" -ipath '*/x64/*/VCRUNTIME140D.dll' | sort -n -r | head -n 1)" \
- "$(DESTDIR)/lib/msnfs41client/x64/." ; \
- cp '/cygdrive/c/Program Files (x86)/Windows Kits/10/bin/x64/ucrt/ucrtbased.dll' "$(DESTDIR)/lib/msnfs41client/x64/." ; \
- fi ; \
- if [[ "$(VS_BUILD_DIR_ARM64)" != '' ]] ; then \
- cp \
- - "$$(find "$${vsbasepath}/Community" -ipath '*/arm64/*/VCRUNTIME140D.dll' | sort -n -r | head -n 1)" \
- + "$$(find "$${vsbasepath}/$${vssubdir}" -ipath '*/arm64/*/VCRUNTIME140D.dll' | sort -n -r | head -n 1)" \
- "$(DESTDIR)/lib/msnfs41client/arm64/." ; \
- cp '/cygdrive/c/Program Files (x86)/Windows Kits/10/bin/arm64/ucrt/ucrtbased.dll' "$(DESTDIR)/lib/msnfs41client/arm64/." ; \
- fi
- --
- 2.51.0
- From eab5e095c4b45b86047785d35e6d25d910a9a5e0 Mon Sep 17 00:00:00 2001
- From: Roland Mainz <roland.mainz@nrubsig.org>
- Date: Tue, 7 Oct 2025 14:18:54 +0200
- Subject: [PATCH 3/5] README.md,build.vc19,docs: Add VS2026 vsconfig
- file+document it
- Add VS2026 vsconfig file+document it.
- Reported-by: Lionel Cons <lionelcons1972@gmail.com>
- Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
- ---
- README.md | 2 +-
- build.vc19/ms-nfs41-client_vs2026.vsconfig | 71 ++++++++++++++++++++++
- docs/README.xml | 2 +-
- 3 files changed, 73 insertions(+), 2 deletions(-)
- create mode 100755 build.vc19/ms-nfs41-client_vs2026.vsconfig
- diff --git a/README.md b/README.md
- index 8c28eec..960d480 100644
- --- a/README.md
- +++ b/README.md
- @@ -870,7 +870,7 @@ Source code can be obtained from
- Community Insiders
- - Start Visual Studio 2026 installer and import the installer config
- - file `ms-nfs41-client/build.vc19/ms-nfs41-client_vs2022.vsconfig`,
- + file `ms-nfs41-client/build.vc19/ms-nfs41-client_vs2026.vsconfig`,
- and then install Visual Studio 2026 Community Insiders.
- - WDK for Windows 10, version 2004, from
- diff --git a/build.vc19/ms-nfs41-client_vs2026.vsconfig b/build.vc19/ms-nfs41-client_vs2026.vsconfig
- new file mode 100755
- index 0000000..6c9dacc
- --- /dev/null
- +++ b/build.vc19/ms-nfs41-client_vs2026.vsconfig
- @@ -0,0 +1,71 @@
- +{
- + "version": "1.0",
- + "components": [
- + "Microsoft.VisualStudio.Component.CoreEditor",
- + "Microsoft.VisualStudio.Workload.CoreEditor",
- + "Microsoft.Net.Component.4.8.SDK",
- + "Microsoft.Net.Component.4.7.2.TargetingPack",
- + "Microsoft.VisualStudio.Component.TypeScript.TSServer",
- + "Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions",
- + "Microsoft.VisualStudio.Component.JavaScript.TypeScript",
- + "Microsoft.VisualStudio.Component.Roslyn.Compiler",
- + "Microsoft.Component.MSBuild",
- + "Microsoft.VisualStudio.Component.Roslyn.LanguageServices",
- + "Microsoft.VisualStudio.Component.TextTemplating",
- + "Microsoft.VisualStudio.Component.NuGet",
- + "Microsoft.Component.ClickOnce",
- + "Microsoft.VisualStudio.Component.IntelliCode",
- + "Component.VisualStudio.GitHub.Copilot",
- + "Microsoft.VisualStudio.Component.Debugger.JustInTime",
- + "Microsoft.VisualStudio.Component.VC.CoreIde",
- + "Microsoft.VisualStudio.Component.Windows10SDK",
- + "Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
- + "Microsoft.VisualStudio.Component.Graphics.Tools",
- + "Microsoft.VisualStudio.Component.VC.DiagnosticTools",
- + "Microsoft.VisualStudio.Component.Windows11SDK.26100",
- + "Microsoft.VisualStudio.Component.VC.ATL",
- + "Microsoft.VisualStudio.Component.VC.ATLMFC",
- + "Microsoft.VisualStudio.Component.VC.Redist.14.Latest",
- + "Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core",
- + "Microsoft.VisualStudio.Component.Windows11Sdk.WindowsPerformanceToolkit",
- + "Microsoft.VisualStudio.Component.CppBuildInsights",
- + "Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions.CMake",
- + "Microsoft.VisualStudio.Component.VC.CMake.Project",
- + "Microsoft.VisualStudio.Component.VC.TestAdapterForBoostTest",
- + "Microsoft.VisualStudio.Component.VC.TestAdapterForGoogleTest",
- + "Microsoft.VisualStudio.Component.VC.ASAN",
- + "Microsoft.VisualStudio.Component.Vcpkg",
- + "Microsoft.Net.Component.4.6.1.TargetingPack",
- + "Microsoft.VisualStudio.Component.VC.CLI.Support",
- + "Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset",
- + "Microsoft.VisualStudio.Component.VC.Llvm.Clang",
- + "Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Llvm.Clang",
- + "Microsoft.VisualStudio.Component.Windows11SDK.22621",
- + "Microsoft.VisualStudio.Component.Windows10SDK.19041",
- + "Microsoft.Component.VC.Runtime.UCRTSDK",
- + "Microsoft.VisualStudio.Workload.NativeDesktop",
- + "Microsoft.VisualStudio.Component.VC.Tools.ARM64EC",
- + "Microsoft.VisualStudio.Component.VC.Tools.ARM64",
- + "Microsoft.VisualStudio.Component.Git",
- + "Microsoft.VisualStudio.Component.VC.ATL.ARM64",
- + "Microsoft.VisualStudio.Component.VC.ATL.Spectre",
- + "Microsoft.VisualStudio.Component.VC.ATL.ARM64.Spectre",
- + "Microsoft.VisualStudio.Component.VC.MFC.ARM64.Spectre",
- + "Microsoft.VisualStudio.Component.VC.Runtimes.ARM64EC.Spectre",
- + "Microsoft.VisualStudio.Component.VC.Runtimes.ARM64.Spectre",
- + "Microsoft.VisualStudio.Component.VC.Runtimes.x86.x64.Spectre",
- + "Microsoft.VisualStudio.Component.VC.MFC.ARM64",
- + "Microsoft.VisualStudio.Component.VC.14.50.18.0.x86.x64",
- + "Microsoft.VisualStudio.Component.VC.14.50.18.0.x86.x64.Spectre",
- + "Microsoft.VisualStudio.Component.VC.14.50.18.0.ATL.ARM64",
- + "Microsoft.VisualStudio.Component.VC.14.50.18.0.ATL",
- + "Microsoft.VisualStudio.Component.VC.14.50.18.0.ATL.ARM64.Spectre",
- + "Microsoft.VisualStudio.Component.VC.14.50.18.0.ATL.Spectre",
- + "Microsoft.VisualStudio.Component.VC.14.50.18.0.MFC.ARM64",
- + "Microsoft.VisualStudio.Component.VC.14.50.18.0.MFC",
- + "Microsoft.VisualStudio.Component.VC.14.50.18.0.MFC.ARM64.Spectre",
- + "Microsoft.VisualStudio.Component.VC.14.50.18.0.MFC.Spectre",
- + "Component.Microsoft.Windows.DriverKit"
- + ],
- + "extensions": []
- +}
- \ No newline at end of file
- diff --git a/docs/README.xml b/docs/README.xml
- index f994545..fe33f0c 100644
- --- a/docs/README.xml
- +++ b/docs/README.xml
- @@ -971,7 +971,7 @@ Datei befindet. Versuchen Sie, die Datei woanders zu speichern.</programlisting>
- <itemizedlist>
- <listitem>
- <para>Start Visual Studio 2026 installer and import the installer config file
- - <filename>ms-nfs41-client/build.vc19/ms-nfs41-client_vs2022.vsconfig</filename>,
- + <filename>ms-nfs41-client/build.vc19/ms-nfs41-client_vs2026.vsconfig</filename>,
- and then install Visual Studio 2026 Community Insiders.</para>
- </listitem>
- <listitem>
- --
- 2.51.0
- From 8064bb0901e59c9fa5df98d9d5ec397a60cec1ae Mon Sep 17 00:00:00 2001
- From: Roland Mainz <roland.mainz@nrubsig.org>
- Date: Tue, 7 Oct 2025 14:37:56 +0200
- Subject: [PATCH 4/5] README.md,docs,tests: Make sed commands used to switch VS
- platform toolsets independent of original version
- Make sed commands used to switch VS platform toolsets independent of
- original version. That limits issues if forks/branches use a different
- default platform toolset version.
- Reported-by: Lionel Cons <lionelcons1972@gmail.com>
- Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
- ---
- README.md | 7 +++++--
- docs/README.xml | 7 +++++--
- tests/nfsbuildtest/nfsbuildtest.ksh93 | 8 +++++++-
- 3 files changed, 17 insertions(+), 5 deletions(-)
- diff --git a/README.md b/README.md
- index 960d480..01cbb9f 100644
- --- a/README.md
- +++ b/README.md
- @@ -896,6 +896,9 @@ Source code can be obtained from
- export PATH="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/:$PATH"
- git clone https://github.com/kofemann/ms-nfs41-client.git
- cd ms-nfs41-client
- + # "retarget" VS platform toolset to "v142"
- + # ("v142" should remain the default when comitting)
- + sed -i -E 's/<PlatformToolset>v...<\/PlatformToolset>/<PlatformToolset>v142<\/PlatformToolset>/g' $(find 'build.vc19' -name \*.vcxproj)
- cd cygwin
- # get default WDK Test Certificate SHA1 ThumbPrint value for code signing
- export CERTIFICATE_THUMBPRINT="$(powershell -c 'Get-ChildItem -Path Cert:\CurrentUser\My | Where-Object {$_.Subject -like "*WDKTestCert*"} | Select-Object -ExpandProperty Thumbprint')"
- @@ -912,7 +915,7 @@ Source code can be obtained from
- cd ms-nfs41-client
- # "retarget" VS platform toolset to "v143"
- # ("v142" should remain the default when comitting)
- - sed -i -E 's/<PlatformToolset>v142<\/PlatformToolset>/<PlatformToolset>v143<\/PlatformToolset>/g' $(find 'build.vc19' -name \*.vcxproj)
- + sed -i -E 's/<PlatformToolset>v...<\/PlatformToolset>/<PlatformToolset>v143<\/PlatformToolset>/g' $(find 'build.vc19' -name \*.vcxproj)
- cd cygwin
- # get default WDK Test Certificate SHA1 ThumbPrint value for code signing
- export CERTIFICATE_THUMBPRINT="$(powershell -c 'Get-ChildItem -Path Cert:\CurrentUser\My | Where-Object {$_.Subject -like "*WDKTestCert*"} | Select-Object -ExpandProperty Thumbprint')"
- @@ -929,7 +932,7 @@ Source code can be obtained from
- cd ms-nfs41-client
- # "retarget" VS platform toolset to "v145"
- # ("v142" should remain the default when comitting)
- - sed -i -E 's/<PlatformToolset>v142<\/PlatformToolset>/<PlatformToolset>v145<\/PlatformToolset>/g' $(find 'build.vc19' -name \*.vcxproj)
- + sed -i -E 's/<PlatformToolset>v...<\/PlatformToolset>/<PlatformToolset>v145<\/PlatformToolset>/g' $(find 'build.vc19' -name \*.vcxproj)
- cd cygwin
- # get default WDK Test Certificate SHA1 ThumbPrint value for code signing
- export CERTIFICATE_THUMBPRINT="$(powershell -c 'Get-ChildItem -Path Cert:\CurrentUser\My | Where-Object {$_.Subject -like "*WDKTestCert*"} | Select-Object -ExpandProperty Thumbprint')"
- diff --git a/docs/README.xml b/docs/README.xml
- index fe33f0c..5830f66 100644
- --- a/docs/README.xml
- +++ b/docs/README.xml
- @@ -1000,6 +1000,9 @@ Datei befindet. Versuchen Sie, die Datei woanders zu speichern.</programlisting>
- export PATH="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/:$PATH"
- git clone https://github.com/kofemann/ms-nfs41-client.git
- cd ms-nfs41-client
- +# "retarget" VS platform toolset to "v142"
- +# ("v142" should remain the default when comitting)
- +sed -i -E 's/<PlatformToolset>v...<\/PlatformToolset>/<PlatformToolset>v142<\/PlatformToolset>/g' $(find 'build.vc19' -name \*.vcxproj)
- cd cygwin
- # get default WDK Test Certificate SHA1 ThumbPrint value for code signing
- export CERTIFICATE_THUMBPRINT="$(powershell -c 'Get-ChildItem -Path Cert:\CurrentUser\My | Where-Object {$_.Subject -like "*WDKTestCert*"} | Select-Object -ExpandProperty Thumbprint')"
- @@ -1015,7 +1018,7 @@ git clone https://github.com/kofemann/ms-nfs41-client.git
- cd ms-nfs41-client
- # "retarget" VS platform toolset to "v143"
- # ("v142" should remain the default when comitting)
- -sed -i -E 's/<PlatformToolset>v142<\/PlatformToolset>/<PlatformToolset>v143<\/PlatformToolset>/g' $(find 'build.vc19' -name \*.vcxproj)
- +sed -i -E 's/<PlatformToolset>v...<\/PlatformToolset>/<PlatformToolset>v143<\/PlatformToolset>/g' $(find 'build.vc19' -name \*.vcxproj)
- cd cygwin
- # get default WDK Test Certificate SHA1 ThumbPrint value for code signing
- export CERTIFICATE_THUMBPRINT="$(powershell -c 'Get-ChildItem -Path Cert:\CurrentUser\My | Where-Object {$_.Subject -like "*WDKTestCert*"} | Select-Object -ExpandProperty Thumbprint')"
- @@ -1031,7 +1034,7 @@ git clone https://github.com/kofemann/ms-nfs41-client.git
- cd ms-nfs41-client
- # "retarget" VS platform toolset to "v145"
- # ("v142" should remain the default when comitting)
- -sed -i -E 's/<PlatformToolset>v142<\/PlatformToolset>/<PlatformToolset>v145<\/PlatformToolset>/g' $(find 'build.vc19' -name \*.vcxproj)
- +sed -i -E 's/<PlatformToolset>v...<\/PlatformToolset>/<PlatformToolset>v145<\/PlatformToolset>/g' $(find 'build.vc19' -name \*.vcxproj)
- cd cygwin
- # get default WDK Test Certificate SHA1 ThumbPrint value for code signing
- export CERTIFICATE_THUMBPRINT="$(powershell -c 'Get-ChildItem -Path Cert:\CurrentUser\My | Where-Object {$_.Subject -like "*WDKTestCert*"} | Select-Object -ExpandProperty Thumbprint')"
- diff --git a/tests/nfsbuildtest/nfsbuildtest.ksh93 b/tests/nfsbuildtest/nfsbuildtest.ksh93
- index 37024cb..322c685 100644
- --- a/tests/nfsbuildtest/nfsbuildtest.ksh93
- +++ b/tests/nfsbuildtest/nfsbuildtest.ksh93
- @@ -546,7 +546,7 @@ function msnfs41client_build
- # "retarget" VS platform toolset to "v143"
- # ("v142" should remain the default when comitting)
- - sed -i -E 's/<PlatformToolset>v142<\/PlatformToolset>/<PlatformToolset>v143<\/PlatformToolset>/g' $(find 'build.vc19' -name \*.vcxproj)
- + sed -i -E 's/<PlatformToolset>v...<\/PlatformToolset>/<PlatformToolset>v143<\/PlatformToolset>/g' $(find 'build.vc19' -name \*.vcxproj)
- # build
- time make -j1 -f cygwin/Makefile build64
- @@ -561,6 +561,12 @@ function msnfs41client_build
- export PATH="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/:$PATH"
- fi
- set -o errexit
- +
- + # "retarget" VS platform toolset to "v142"
- + # ("v142" should remain the default when comitting)
- + sed -i -E 's/<PlatformToolset>v...<\/PlatformToolset>/<PlatformToolset>v142<\/PlatformToolset>/g' $(find 'build.vc19' -name \*.vcxproj)
- +
- + # build
- time make -j1 -f cygwin/Makefile build
- time make -j1 -f cygwin/Makefile installdest
- time make -j1 -f cygwin/Makefile bintarball
- --
- 2.51.0
- From 7a7231afb68f76b4b2a6639c82fd034a266b419f Mon Sep 17 00:00:00 2001
- From: Roland Mainz <roland.mainz@nrubsig.org>
- Date: Tue, 7 Oct 2025 15:13:28 +0200
- Subject: [PATCH 5/5] daemon,mount: nfs_mount.exe --version, nfsd.exe --version
- should include compiler+SDK+WDK versions
- nfs_mount.exe --version, nfsd.exe --version should include
- compiler+SDK+WDK versions.
- Reported-by: Lionel Cons <lionelcons1972@gmail.com>
- Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
- ---
- daemon/nfs41_daemon.c | 22 ++++++++++++++++++----
- mount/mount.c | 17 +++++++++++++++--
- 2 files changed, 33 insertions(+), 6 deletions(-)
- diff --git a/daemon/nfs41_daemon.c b/daemon/nfs41_daemon.c
- index 9f47d43..ff528c4 100644
- --- a/daemon/nfs41_daemon.c
- +++ b/daemon/nfs41_daemon.c
- @@ -31,6 +31,10 @@
- #include <devioctl.h>
- #include <iphlpapi.h> /* for GetNetworkParam() */
- +
- +/* SDK, WDK versions */
- +#include <sdkddkver.h>
- +
- #include "nfs41_build_features.h"
- #include "nfs41_driver.h" /* for NFS41_USER_DEVICE_NAME_A */
- #include "nfs41_np.h" /* for NFS41NP_SHARED_MEMORY */
- @@ -329,14 +333,24 @@ static void PrintUsage(const wchar_t *argv0)
- static
- void PrintVersion(void)
- {
- - (void)fprintf(stderr,
- - "nfsd.exe version 0.1 (%s) from ms-nfs41-client, commitid=%s\n",
- + (void)fwprintf(stderr,
- + L"nfsd.exe "
- + L"version 0.1 (%s) from ms-nfs41-client, commitid=\"%s\", "
- +#ifdef _MSC_VER
- + L"_MSC_VER=%ld, "
- +#endif /* _MSC_VER */
- + L"NTDDI_VERSION=0x%lx, WDK_NTDDI_VERSION=0x%lx\n",
- #ifdef _DEBUG
- "DEBUG build",
- #else
- - "RELEASE",
- + "RELEASE build",
- #endif /* _DEBUG */
- - GIT_COMMIT_ID);
- + GIT_COMMIT_ID,
- +#ifdef _MSC_VER
- + (long)_MSC_VER,
- +#endif /* _MSC_VER */
- + (long)NTDDI_VERSION,
- + (long)WDK_NTDDI_VERSION);
- }
- static
- diff --git a/mount/mount.c b/mount/mount.c
- index e5b6df5..a5355aa 100644
- --- a/mount/mount.c
- +++ b/mount/mount.c
- @@ -40,6 +40,9 @@
- #include <io.h>
- #include <fcntl.h>
- +/* SDK, WDK versions */
- +#include <sdkddkver.h>
- +
- #include "nfs41_build_features.h"
- #include "nfs41_driver.h" /* |NFS41_PROVIDER_NAME_U| */
- #include "options.h"
- @@ -92,13 +95,23 @@ static
- void PrintVersion(void)
- {
- (void)fwprintf(stderr,
- - L"nfs_mount.exe version 0.1 (%s) from ms-nfs41-client, commitid=%s\n",
- + L"nfs_mount.exe "
- + L"version 0.1 (%s) from ms-nfs41-client, commitid=\"%s\", "
- +#ifdef _MSC_VER
- + L"_MSC_VER=%ld, "
- +#endif /* _MSC_VER */
- + L"NTDDI_VERSION=0x%lx, WDK_NTDDI_VERSION=0x%lx\n",
- #ifdef _DEBUG
- "DEBUG build",
- #else
- "RELEASE build",
- #endif /* _DEBUG */
- - GIT_COMMIT_ID);
- + GIT_COMMIT_ID,
- +#ifdef _MSC_VER
- + (long)_MSC_VER,
- +#endif /* _MSC_VER */
- + (long)NTDDI_VERSION,
- + (long)WDK_NTDDI_VERSION);
- }
- static
- --
- 2.51.0
msnfs41client: Patches for Visual Studio 2026 support+misc, 2025-10-07
Posted by Anonymous on Tue 7th Oct 2025 18:45
raw | new post
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.
rovema.kpaste.net RSS