From: "cron2 (Code Review)" Date: Thu, 27 Nov 2025 11:20:16 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <73b7293a1f5a253029fbd42f9a30c1adfcd225e8-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="UTa3/DXQ4IE="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: configure/CMake: Remove unused checks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: plaisthos , openvpn-devel --UTa3/DXQ4IE= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/14= 09?usp=3Demail ) Change subject: configure/CMake: Remove unused checks ...................................................................... configure/CMake: Remove unused checks Do not run configure checks that we do not actually need. But add one missing check in CMake for strsep! Change-Id: I0da2cc8bbe9e394d1bb55cff496ea3e11584ca20 Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1409 Message-Id: <20251127105343.30723-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34= 740.html Signed-off-by: Gert Doering --- M CMakeLists.txt M config.h.cmake.in M configure.ac 3 files changed, 5 insertions(+), 31 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c4d50e4..f101a1b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -240,6 +240,7 @@ check_symbol_exists(chsize io.h HAVE_CHSIZE) check_symbol_exists(getrlimit sys/resource.h HAVE_GETRLIMIT) +check_symbol_exists(strsep string.h HAVE_STRSEP) # Some OS (e.g. FreeBSD) need some basic headers to allow # including network headers diff --git a/config.h.cmake.in b/config.h.cmake.in index bf1899c..f68ea27 100644 --- a/config.h.cmake.in +++ b/config.h.cmake.in @@ -281,9 +281,6 @@ /* Define to 1 if you have the header file. */ #cmakedefine HAVE_SYSLOG_H -/* Define to 1 if you have the `system' function. */ -#undef HAVE_SYSTEM - /* Define to 1 if you have the header file. */ #undef HAVE_SYSTEMD_SD_DAEMON_H @@ -332,12 +329,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_TAP_WINDOWS_H -/* Define to 1 if you have the `time' function. */ -#define HAVE_TIME 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_TIME_H 1 - /* Define to 1 if you have the header file. */ #undef HAVE_UAPI_H @@ -347,12 +338,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_VALGRIND_MEMCHECK_H -/* Define to 1 if you have the `vfork' function. */ -#undef HAVE_VFORK - -/* Define to 1 if you have the header file. */ -#undef HAVE_VFORK_H - /* Availability of different mbed TLS features and APIs */ #cmakedefine HAVE_PSA_CRYPTO_H #cmakedefine HAVE_MBEDTLS_SSL_SET_EXPORT_KEYS_CB diff --git a/configure.ac b/configure.ac index 030f8de..60799e0 100644 --- a/configure.ac +++ b/configure.ac @@ -475,13 +475,7 @@ ) AC_C_INLINE -AC_TYPE_OFF_T -AC_TYPE_PID_T -AC_TYPE_SIZE_T -AC_TYPE_UID_T AX_TYPE_SOCKLEN_T -AC_CHECK_SIZEOF([unsigned int]) -AC_CHECK_SIZEOF([unsigned long]) AC_CHECK_HEADERS([ \ fcntl.h io.h \ sys/types.h sys/socket.h \ @@ -492,7 +486,7 @@ AC_CHECK_HEADERS([ \ sys/time.h sys/ioctl.h sys/stat.h \ sys/mman.h sys/file.h sys/wait.h \ - unistd.h libgen.h stropts.h \ + libgen.h stropts.h \ syslog.h pwd.h grp.h termios.h \ sys/sockio.h sys/uio.h \ poll.h sys/epoll.h err.h \ @@ -546,12 +540,6 @@ [[${SOCKET_INCLUDES}]] ) AC_CHECK_TYPE( - [struct iphdr], - [AC_DEFINE([HAVE_IPHDR], [1], [struct iphdr needed for IPv6 support])], - , - [[${SOCKET_INCLUDES}]] -) -AC_CHECK_TYPE( [struct msghdr], [AC_DEFINE([HAVE_MSGHDR], [1], [struct msghdr needed for extended socket = error support])], , @@ -657,11 +645,11 @@ AC_FUNC_FORK AC_CHECK_FUNCS([ \ - daemon chroot getpwnam setuid nice system dup dup2 \ + daemon chroot getpwnam setuid nice dup dup2 \ syslog openlog mlockall getrlimit getgrnam setgid \ - setgroups flock time gettimeofday \ + setgroups flock gettimeofday \ setsid chdir \ - chsize ftruncate execve getpeereid basename dirname access \ + chsize ftruncate execve getpeereid basename dirname \ epoll_create strsep \ ]) -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1409?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: I0da2cc8bbe9e394d1bb55cff496ea3e11584ca20 Gerrit-Change-Number: 1409 Gerrit-PatchSet: 3 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --UTa3/DXQ4IE= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 sub= mitted this change.

View Change

configure/CMake: Remove unused checks

Do = not run configure checks that we do not
actually need.

But add on= e missing check in CMake for strsep!

Change-Id: I0da2cc8bbe9e394d1bb= 55cff496ea3e11584ca20
Signed-off-by: Frank Lichtenheld <frank@...2746...= ...>
Acked-by: Gert Doering <gert@...1296...>
Gerrit URL: ht= tps://gerrit.openvpn.net/c/openvpn/+/1409
Message-Id: <20251127105343= .30723-1-gert@...1296...>
URL: https://www.mail-archive.com/openvpn-d= evel@lists.sourceforge.net/msg34740.html
Signed-off-by: Gert Doering <= ;gert@...1296...>
---
M CMakeLists.txt
M config.h.cmake.in
M= configure.ac
3 files changed, 5 insertions(+), 31 deletions(-)

<= /pre>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c4d50= e4..f101a1b 100644
--- a/CMakeLists.txt
+++= b/CMakeLists.txt
@@ -240,6 +240,7 @@

check_symbol_exists(chsize io.h HAVE_CHSIZE)
= check_symbol_exists(getrlimit sys/resource.h HAVE_GETRLIMIT)
+check_symbol_exists(strsep string= .h HAVE_STRSEP)

# Some OS (e.g. FreeBSD)= need some basic headers to allow
# including network head= ers
diff --git a/config.h.cmake.in b/config.h.cmake.in
index bf1899c..f68ea27 100644
--- a/config.h.cm= ake.in
+++ b/config.h.cmake.in
@@ -281,9 +2= 81,6 @@
/* Define to 1 if you have the <syslog.h> he= ader file. */
#cmakedefine HAVE_SYSLOG_H
=
-/* Define to 1 if you= have the `system' function. */
-#undef HAVE_SYSTEM
-
/* Define to 1 if you have the <systemd/sd-= daemon.h> header file. */
#undef HAVE_SYSTEMD_SD_DAEMON= _H

@@ -332,12 +329,6 @@
= /* Define to 1 if you have the <tap-windows.h> header file. */=
#undef HAVE_TAP_WINDOWS_H

-/* Define to 1 if you have the `time' = function. */
-#define H= AVE_TIME 1
-
= -/* Define to 1 if you have the &= lt;time.h> header file. */
-#define HAVE_TIME_H 1
-
/* Define to 1 if you have the <uapi.h> hea= der file. */
#undef HAVE_UAPI_H
@@ -347,12 +338,6 @@
/* Define to 1 if you have th= e <valgrind/memcheck.h> header file. */
#undef HAVE_= VALGRIND_MEMCHECK_H

-/* Define to 1 if you have the `vfork' function. */

-#undef HAVE_VFORK<= br>-
-/* Define to 1 if you have the <vfork.h> hea= der file. */
-#undef HA= VE_VFORK_H
-
= /* Availability of different mbed TLS features and APIs */ #cmakedefine HAVE_PSA_CRYPTO_H
#cmakedefine HAVE_M= BEDTLS_SSL_SET_EXPORT_KEYS_CB
diff --git a/configure.ac b/c= onfigure.ac
index 030f8de..60799e0 100644
-= -- a/configure.ac
+++ b/configure.ac
@@ -47= 5,13 +475,7 @@
)

AC_C_I= NLINE
-AC_TYPE_OFF_T
-AC_TYPE_PID_T
= -AC_TYPE_SIZE_T
-AC_TYPE_UID_T
AX_TYPE_= SOCKLEN_T
-AC_CHECK_SIZ= EOF([unsigned int])
-AC= _CHECK_SIZEOF([unsigned long])
AC_CHECK_HEADERS([ \=
fcntl.h io.h \
sys/types.h sys/socket.h \
@@ -492,7 +486,7 @@
AC_CHECK_HEADERS([ \
sys/time.h sys/ioctl.h sys/stat.h \
sys/mma= n.h sys/file.h sys/wait.h \
- unistd.h libgen.h stropts.h \
+ libgen.h stropts.h \
syslog.h pwd.h grp= .h termios.h \
sys/sockio.h sys/uio.h \
= poll.h sys/epoll.h err.h \
@@ -546,12 +540,6 @@
= [[${SOCKET_INCLUDES}]]
)
AC_CHECK= _TYPE(
- [struct iphdr]= ,
- [AC_DEFINE([HAVE_IP= HDR], [1], [struct iphdr needed for IPv6 support])],
- ,
- [[${SOCKET_INCLUDES}]]
-)
-AC_CH= ECK_TYPE(
[struct msghdr],
[AC_DEFINE([= HAVE_MSGHDR], [1], [struct msghdr needed for extended socket error support]= )],
,
@@ -657,11 +645,11 @@
AC_FUNC_FORK


AC_CHECK_FUNCS([ \
- daemon chroot getpwnam se= tuid nice system dup dup2 \
+ daemon chroot getpwnam setuid nice dup dup2 \
sy= slog openlog mlockall getrlimit getgrnam setgid \
- setgroups flock time gettimeofday \
= + setgroups flock gettimeofday = \
setsid chdir \
- chsize ftruncate execve getpeereid basename dirname access \<= /span>
+ chsize ftruncate ex= ecve getpeereid basename dirname \
epoll_create strsep \<= /span>
])


T= o view, visit change 1409. To unsubscribe, or for help writing mail filters, vi= sit settings= .

Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I0da2cc8bbe9e394d1bb55cff496= ea3e11584ca20
Gerrit-Change-Number: 1409
Gerrit-PatchSet: 3
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --UTa3/DXQ4IE=--