Skip to content

[windows][mingw] fix build after lubcurl update#6445

Merged
AenBleidd merged 1 commit intomasterfrom
vko_fix_win_build
Jul 17, 2025
Merged

[windows][mingw] fix build after lubcurl update#6445
AenBleidd merged 1 commit intomasterfrom
vko_fix_win_build

Conversation

@AenBleidd
Copy link
Copy Markdown
Member

No description provided.

@AenBleidd AenBleidd added this to the Client/Manager 8.4.0 milestone Jul 17, 2025
Copilot AI review requested due to automatic review settings July 17, 2025 14:23
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates Windows and MinGW build configurations to include new dependencies introduced by the libcurl update.

  • Adds Iphlpapi.lib and Secur32.lib to the Visual Studio project’s linker settings.
  • Appends the IP helper library flag to the sample Condor Makefile.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
win_build/sim.vcxproj Include Iphlpapi.lib and Secur32.lib in AdditionalDependencies
samples/condor/Makefile Add -lIphlpapi to CURL_EXTRA_LDFLAGS

</ClCompile>
<Link>
<AdditionalDependencies>wsock32.lib;wininet.lib;winmm.lib;oldnames.lib;libcrypto.lib;libssl.lib;Ws2_32.Lib;Crypt32.Lib;Wldap32.Lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>wsock32.lib;wininet.lib;winmm.lib;oldnames.lib;libcrypto.lib;libssl.lib;Ws2_32.Lib;Crypt32.Lib;Wldap32.Lib;Iphlpapi.lib;Secur32.lib;%(AdditionalDependencies)</AdditionalDependencies>
Copy link

Copilot AI Jul 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The file extension casing for several libraries (e.g., Ws2_32.Lib, Crypt32.Lib, Wldap32.Lib) is inconsistent. Consider using lowercase .lib throughout (e.g., Ws2_32.lib) for consistency.

Suggested change
<AdditionalDependencies>wsock32.lib;wininet.lib;winmm.lib;oldnames.lib;libcrypto.lib;libssl.lib;Ws2_32.Lib;Crypt32.Lib;Wldap32.Lib;Iphlpapi.lib;Secur32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>wsock32.lib;wininet.lib;winmm.lib;oldnames.lib;libcrypto.lib;libssl.lib;Ws2_32.lib;Crypt32.lib;Wldap32.lib;Iphlpapi.lib;Secur32.lib;%(AdditionalDependencies)</AdditionalDependencies>

Copilot uses AI. Check for mistakes.
</ClCompile>
<Link>
<AdditionalDependencies>wsock32.lib;wininet.lib;winmm.lib;oldnames.lib;libcrypto.lib;libssl.lib;Ws2_32.Lib;Crypt32.Lib;Wldap32.Lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>wsock32.lib;wininet.lib;winmm.lib;oldnames.lib;libcrypto.lib;libssl.lib;Ws2_32.Lib;Crypt32.Lib;Wldap32.Lib;Iphlpapi.lib;Secur32.lib;%(AdditionalDependencies)</AdditionalDependencies>
Copy link

Copilot AI Jul 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The list of linker dependencies would be easier to read and maintain if it were alphabetized. Consider sorting these entries alphabetically.

Suggested change
<AdditionalDependencies>wsock32.lib;wininet.lib;winmm.lib;oldnames.lib;libcrypto.lib;libssl.lib;Ws2_32.Lib;Crypt32.Lib;Wldap32.Lib;Iphlpapi.lib;Secur32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>Crypt32.Lib;Iphlpapi.lib;libcrypto.lib;libssl.lib;oldnames.lib;Secur32.lib;wininet.lib;winmm.lib;Ws2_32.Lib;wsock32.lib;Wldap32.Lib;%(AdditionalDependencies)</AdditionalDependencies>

Copilot uses AI. Check for mistakes.
-L$(VCPKG_DIR)/lib

CURL_EXTRA_LDFLAGS ?= -lz -ldl
CURL_EXTRA_LDFLAGS ?= -lz -ldl -lIphlpapi
Copy link

Copilot AI Jul 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The -lIphlpapi flag is missing its counterpart -lsecur32, which was added in the Visual Studio project. Add -lsecur32 here to ensure builds don’t fail due to a missing security library.

Suggested change
CURL_EXTRA_LDFLAGS ?= -lz -ldl -lIphlpapi
CURL_EXTRA_LDFLAGS ?= -lz -ldl -lIphlpapi -lsecur32

Copilot uses AI. Check for mistakes.
-L$(VCPKG_DIR)/lib

CURL_EXTRA_LDFLAGS ?= -lz -ldl
CURL_EXTRA_LDFLAGS ?= -lz -ldl -lIphlpapi
Copy link

Copilot AI Jul 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] For consistency with common Unix linker conventions, consider using lowercase for the library flag (-liphlpapi instead of -lIphlpapi).

Suggested change
CURL_EXTRA_LDFLAGS ?= -lz -ldl -lIphlpapi
CURL_EXTRA_LDFLAGS ?= -lz -ldl -liphlpapi

Copilot uses AI. Check for mistakes.
@AenBleidd AenBleidd force-pushed the vko_fix_win_build branch from a9761e9 to 329b903 Compare July 17, 2025 14:57
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
@AenBleidd AenBleidd force-pushed the vko_fix_win_build branch from 329b903 to dc89991 Compare July 17, 2025 15:11
@AenBleidd AenBleidd merged commit a83fb2d into master Jul 17, 2025
281 of 282 checks passed
@AenBleidd AenBleidd deleted the vko_fix_win_build branch July 17, 2025 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants