Skip to content

Bumped libntech to master (3.27.x)#6082

Merged
larsewi merged 3 commits into
cfengine:3.27.xfrom
larsewi:libntech-3.27.x
Apr 24, 2026
Merged

Bumped libntech to master (3.27.x)#6082
larsewi merged 3 commits into
cfengine:3.27.xfrom
larsewi:libntech-3.27.x

Conversation

@larsewi

@larsewi larsewi commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

larsewi and others added 2 commits April 22, 2026 11:01
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Ticket: CFE-4623
(cherry picked from commit ac328df)
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@larsewi

larsewi commented Apr 22, 2026

Copy link
Copy Markdown
Contributor Author

@cf-bottom Jenkins please :)

When cross-compiling for MinGW with GCC 13 / mingw-w64 v11:

1. AC_SEARCH_LIBS(setsockopt, socket) didn't find setsockopt because on
   MinGW it lives in ws2_32, not socket. This caused AC_REPLACE_FUNCS to
   compile replacement inet_ntop/inet_pton that conflict with the
   MinGW-w64 declarations (socklen_t vs size_t parameter types).
   Fix: search [socket ws2_32] so -lws2_32 is in LIBS.

2. HW_FUNC_VSNPRINTF/HW_FUNC_SNPRINTF use AC_RUN_IFELSE to test C99
   compliance, which can't execute when cross-compiling, defaulting to
   "no". This caused #define vfprintf rpl_vfprintf etc., which conflicts
   with mingw-w64 v11 inline stdio functions.
   Fix: default to C99-compliant for mingw* targets in cross-compile.

Ticket: ENT-13766
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
(cherry picked from commit 99934d5)
@cfengine cfengine deleted a comment from cf-bottom Apr 22, 2026
@cf-bottom

Copy link
Copy Markdown

@larsewi

larsewi commented Apr 23, 2026

Copy link
Copy Markdown
Contributor Author

@cf-bottom Jenkins please :)

@cf-bottom

Copy link
Copy Markdown

@larsewi larsewi merged commit 87d9143 into cfengine:3.27.x Apr 24, 2026
43 of 45 checks passed
@larsewi larsewi deleted the libntech-3.27.x branch April 27, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants