From df330a6867b5bb9c623759f911e3984e88923239 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Thu, 21 May 2026 09:14:26 -0500 Subject: [PATCH] add warning for WITH_VERIFY_PTR so that people know that it kills performance if used in production networks --- src/main/version.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/main/version.c b/src/main/version.c index 172f5d7c8b7..1bdb562349d 100644 --- a/src/main/version.c +++ b/src/main/version.c @@ -637,8 +637,24 @@ void version_print(void) #endif DEBUG2(" "); } + +#ifdef WITH_VERIFY_PTR + WARN(" "); + WARN("#######################################################################"); + WARN("# "); + WARN("# The server was built with the 'WITH_VERIFY_PTR' flag set. This is a"); + WARN("# developer-only build option that DRASTICALLY slows down the server."); + WARN("# If you are using the server in a production environment, you will see"); + WARN("# significantly improved performance (3x-4x) by re-running 'configure'"); + WARN("# with the flag '--disable-developer', and then re-building and"); + WARN("# re-installing the server."); + WARN("# "); + WARN("#######################################################################"); + WARN(" "); +#endif + INFO("FreeRADIUS Version " RADIUSD_VERSION_STRING); - INFO("Copyright (C) 1999-2025 The FreeRADIUS server project and contributors"); + INFO("Copyright (C) 1999-2026 The FreeRADIUS server project and contributors"); INFO("There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A"); INFO("PARTICULAR PURPOSE"); INFO("You may redistribute copies of FreeRADIUS under the terms of the"); -- 2.47.3