From: "cron2 (Code Review)" Date: Fri, 31 Oct 2025 09:49:43 +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-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="IaSkgJ8yaBM="; 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 , plaisthos , flichtenheld Cc: openvpn-devel --IaSkgJ8yaBM= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#2) to the change originally created by= selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1334?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by cron2 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(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/34/1334/2 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: newpatchset 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 --IaSkgJ8yaBM= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 upl= oaded patch set #2 to the change originally created by selvanair.<= /p>

Vi= ew Change

The following approvals got outdated and were removed: Code-Review+2 by cron2

Add -lpathcch for mingw32 builds us=
ing autotools

This was missed in commit 05a8ba8

Note: the che= ck for PATHCCH_ENSURE_TRAILING_SLASH in
configure.ac may be omitted if w= e build only using latest
mingw32-w64 toolchain. Ubuntu 24.04 is not new= enough.

Github: closes OpenVPN/openvpn#885

Change-Id: Ifea89= 6e722635a471cc01f930bc1e5d0f2c165be
Signed-off-by: Selva Nair <selva.= nair@...277...>
Acked-by: Gert Doering <gert@...1296...>
Ger= rit URL: https://gerrit.openvpn.net/c/openvpn/+/1334
Message-Id: <202= 51031092427.19824-1-gert@...1296...>
URL: https://www.mail-archive.co= m/openvpn-devel@lists.sourceforge.net/msg34095.html
Signed-off-by: Gert = Doering <gert@...1296...>
---
M configure.ac
M src/openvpnse= rv/Makefile.am
2 files changed, 12 insertions(+), 1 deletion(-)

<= /pre>
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/cha=
nges/34/1334/2
diff --git a/configure.ac b/configure.ac
<= span>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(
+ [PAT= HCCH_ENSURE_TRAILING_SLASH],
+ [AC_DEFINE([HAVE_PATHCCH_ENSURE_TRAILING_SLASH], [1], [PATHCCH_E= NSURE_TRAILING_SLASH is defined])],
+ ,
+= [[
+ #include <= ;pathcch.h>
+ ]]<= /span>
+ )
+fi
+
# When testing a compiler option, we= add -Werror to force
# an error when the option is unsupp= orted. This is not
# required for gcc, but some compilers = such as clang need it.
diff --git a/src/openvpnserv/Makefil= e.am b/src/openvpnserv/Makefile.am
index a27fbbf..f45d770 1= 00644
--- a/src/openvpnserv/Makefile.am
+++= b/src/openvpnserv/Makefile.am
@@ -27,7 +27,7 @@
= -D_WIN32_WINNT=3D_WIN32_WINNT_VISTA
openvpnserv_LD= ADD =3D \
-ladvapi32 -luserenv -liphlpapi -lfwpuclnt -lrp= crt4 \
- -lshlwapi -lne= tapi32 -lws2_32 -lntdll -lole32
+ -lshlwapi -lnetapi32 -lws2_32 -lntdll -lole32 -lpathcch=
noinst_DATA =3D \
MSG00409.bin eventmsg.h even= tmsg.rc openvpnservmsg.dll
BUILT_SOURCES =3D \
<= span>

To view, visit change 1334. To unsubscribe, or for hel= p writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
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>
= --IaSkgJ8yaBM=--