From: "cron2 (Code Review)" Date: Fri, 31 Oct 2025 09:49:45 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., selva.nair@...277..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <04652492efd75557faafe11f71115909cd079bea-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="KB5Urm2Wqbc="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Add -lpathcch for mingw32 builds using autotools List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: selvanair Cc: plaisthos , flichtenheld , openvpn-devel --KB5Urm2Wqbc= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/13= 34?usp=3Demail ) Change subject: Add -lpathcch for mingw32 builds using autotools ...................................................................... Add -lpathcch for mingw32 builds using autotools This was missed in commit 05a8ba8 Note: the check for PATHCCH_ENSURE_TRAILING_SLASH in configure.ac may be omitted if we build only using latest mingw32-w64 toolchain. Ubuntu 24.04 is not new enough. Github: closes OpenVPN/openvpn#885 Change-Id: Ifea896e722635a471cc01f930bc1e5d0f2c165be Signed-off-by: Selva Nair Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1334 Message-Id: <20251031092427.19824-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34= 095.html Signed-off-by: Gert Doering --- M configure.ac M src/openvpnserv/Makefile.am 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8f3c01d..3117e13 100644 --- a/configure.ac +++ b/configure.ac @@ -1383,6 +1383,17 @@ fi fi +if test "${WIN32}" =3D=3D "yes"; then + AC_CHECK_DECLS( + [PATHCCH_ENSURE_TRAILING_SLASH], + [AC_DEFINE([HAVE_PATHCCH_ENSURE_TRAILING_SLASH], [1], [PATHCCH_ENSURE_TR= AILING_SLASH is defined])], + , + [[ + #include + ]] + ) +fi + # When testing a compiler option, we add -Werror to force # an error when the option is unsupported. This is not # required for gcc, but some compilers such as clang need it. diff --git a/src/openvpnserv/Makefile.am b/src/openvpnserv/Makefile.am index a27fbbf..f45d770 100644 --- a/src/openvpnserv/Makefile.am +++ b/src/openvpnserv/Makefile.am @@ -27,7 +27,7 @@ -D_WIN32_WINNT=3D_WIN32_WINNT_VISTA openvpnserv_LDADD =3D \ -ladvapi32 -luserenv -liphlpapi -lfwpuclnt -lrpcrt4 \ - -lshlwapi -lnetapi32 -lws2_32 -lntdll -lole32 + -lshlwapi -lnetapi32 -lws2_32 -lntdll -lole32 -lpathcch noinst_DATA =3D \ MSG00409.bin eventmsg.h eventmsg.rc openvpnservmsg.dll BUILT_SOURCES =3D \ -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1334?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: merged Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ifea896e722635a471cc01f930bc1e5d0f2c165be Gerrit-Change-Number: 1334 Gerrit-PatchSet: 2 Gerrit-Owner: selvanair Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --KB5Urm2Wqbc= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 sub= mitted this change.

View Change

Add -lpathcch for mingw32 builds using autotools=


This was missed in commit 05a8ba8

Note: the check for PATHCC= H_ENSURE_TRAILING_SLASH in
configure.ac may be omitted if we build only = using latest
mingw32-w64 toolchain. Ubuntu 24.04 is not new enough.
<= br>Github: closes OpenVPN/openvpn#885

Change-Id: Ifea896e722635a471c= c01f930bc1e5d0f2c165be
Signed-off-by: Selva Nair <selva.nair@...1663...= .>
Acked-by: Gert Doering <gert@...1296...>
Gerrit URL: http= s://gerrit.openvpn.net/c/openvpn/+/1334
Message-Id: <20251031092427.1= 9824-1-gert@...1296...>
URL: https://www.mail-archive.com/openvpn-dev= el@lists.sourceforge.net/msg34095.html
Signed-off-by: Gert Doering <g= ert@...1296...>
---
M configure.ac
M src/openvpnserv/Makefile.a= m
2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 8f3c01d..= 3117e13 100644
--- a/configure.ac
+++ b/con= figure.ac
@@ -1383,6 +1383,17 @@
fi
fi

+if test "${WIN32}" =3D=3D "yes"; then
+ AC_CHECK_DECLS(<= br>+ [PATHCCH_ENSURE_TRAILING_= SLASH],
+ [AC_DEFINE= ([HAVE_PATHCCH_ENSURE_TRAILING_SLASH], [1], [PATHCCH_ENSURE_TRAILING_SLASH = is defined])],
+ ,
+ [[
+ #include <pathcch.h>=
+ ]]
+ )
+fi
+=
# When testing a compiler option, we add -Werror to force=
# an error when the option is unsupported. This is not
# required for gcc, but some compilers such as clang need it= .
diff --git a/src/openvpnserv/Makefile.am b/src/openvpnser= v/Makefile.am
index a27fbbf..f45d770 100644
--- a/src/openvpnserv/Makefile.am

+++ b/src/openvpnserv/Ma= kefile.am
@@ -27,7 +27,7 @@
-D_WIN32_WINN= T=3D_WIN32_WINNT_VISTA
openvpnserv_LDADD =3D \
<= span> -ladvapi32 -luserenv -liphlpapi -lfwpuclnt -lrpcrt4 \

- -lshlwapi -lnetapi32 -lws2_32 -lntd= ll -lole32

+ -lshlwap= i -lnetapi32 -lws2_32 -lntdll -lole32 -lpathcch
noinst_DAT= A =3D \
MSG00409.bin eventmsg.h eventmsg.rc openvpnservms= g.dll
BUILT_SOURCES =3D \

To view, visit change 1334. To unsubscribe, or for help writing mail filter= s, visit setting= s.

Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ifea896e722635a471cc01f930bc= 1e5d0f2c165be
Gerrit-Change-Number: 1334
Gerrit-PatchSet: 2
Gerrit-Owner: selvanair <selva.nair@...1354...= ..>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --KB5Urm2Wqbc=--