From nobody Mon Nov 06 15:31:04 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SPFgG4lYDz501T3; Mon, 6 Nov 2023 15:31:06 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SPFgG33Lgz3XxY; Mon, 6 Nov 2023 15:31:06 +0000 (UTC) (envelope-from bapt@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699284666; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=f2ms3vFo8VAm83zMqKX4t4o8vd/n1g1rUSI+F+a3iEE=; b=bAmnUS7B5Uk9msTQolBgjVD1Rr/kLQHSm76lQgZUDZMQ+LIrijxzDTPjVlj8kIMrUGUGXW AvLBioq3Es6sr+26aVFxRBZzwhpAbhZycVE3Y9HTyzmH+wSVh/GR5m3TmdNZ+CUF2rY+OJ XF6ia16iYM3gmdPLTxrYtA0VR+zogd9lJlUJXSBOEieI6LPnxdLC1GCKJ8i+Myuqk9s9LL Vq5nHArbWF3Pg8JLQZesvyv40O7JjIkfY4aUk58a8YMI+awxd8FHYbVb+PKO90nrGFFvxF vzSZierkNuj125w1aVJMtBuKYOIr31iJgQt0vrxQWK2jp7N9e8upKGTwVjawdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699284666; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=f2ms3vFo8VAm83zMqKX4t4o8vd/n1g1rUSI+F+a3iEE=; b=t3Mkmf5vBNykIbZXwUi0FPPjLL0+fVj8XAPn9y1P2ecRYRCEwdZEmb0pQN47qO+7CZtkBm AK6wUjYbmmNjUWBuX+FpUX/ZqwmNcNd4cV8nxesbqvXMzMFuS8QhuXWX8yFgokwdbFrsDu zsizf/fWZv5dbWsfgs38kEb++tomaRd9plZ9L1jG18lSU4qY4nYjEpQOSximxzWi3TxUnL V0CeMCMEak0OsWyn8XcM3d/xQ1NjyuGnfksncd5F4BZcOV1bizVlpPh8amZq/Wfezs4slL sh+NmuVTch/MC3dXY66RWEhyTQ0yJvUIlloRbEKk+QPRjILJjyGu24Au/SAmIg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699284666; a=rsa-sha256; cv=none; b=XHoQiKHEpsnxpSSwB/YjGvFyHqcrVdteGfrw+4+HrbgNl/odMYzm0PI2pyI6mgZxScc75I CH+gsf5IYcSkyJ1prpfnmgGv1wUGv2lkgqiGBnxQ1vyIVzoi9pZvfjHJ/JavGuC8wCK4/P ZQYnSUAZtKpgaNIM3uvLh21I154MFn9/9q40oaQqF80Iqsj9a4AJfpYEUjztC62Sje807x lJcSWNtTYUYg3xtn861BdlP4osYUhUZ852yfuEyB8GvGblnF5GcsWT3v80hhoSCZiW/IuK Yl7hXh39Cxp3Pt+3pAdXfJGJKAolAuY89fg4GFgYrYCnIhBfGytZDXLiLDXtuA== Received: from aniel.nours.eu (nours.eu [IPv6:2001:41d0:8:3a4d::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id 4SPFgG0mJbz1Gf1; Mon, 6 Nov 2023 15:31:06 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: by aniel.nours.eu (Postfix, from userid 1001) id CAFDB19EFD3; Mon, 6 Nov 2023 16:31:04 +0100 (CET) Date: Mon, 6 Nov 2023 16:31:04 +0100 From: Baptiste Daroussin To: The Doctor Cc: Glen Barber , freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-snapshots@freebsd.org, FreeBSD Release Engineering Team Subject: Re: Radius challenges in FreeBSD 14.0 Re: FreeBSD 14.0-RC4 Now Available Message-ID: <4k7sqgsiolglrfq35lesmb4qr7l7lcbnmebcdaxs4n7so2vubn@56xwzstht5dy> References: <20231103234232.GK1289@FreeBSD.org> <5p6sszthbhskientm4tki4pq4hyzws4fnmzgq4cagh7yvkrwyo@hhmf5cy4gmsu> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Nov 06, 2023 at 08:27:34AM -0700, The Doctor wrote: > On Mon, Nov 06, 2023 at 09:50:18AM +0100, Baptiste Daroussin wrote: > > On Mon, Nov 06, 2023 at 09:04:15AM +0100, Baptiste Daroussin wrote: > > > On Mon, Nov 06, 2023 at 12:50:43AM -0700, The Doctor wrote: > > > > On Mon, Nov 06, 2023 at 08:43:05AM +0100, Baptiste Daroussin wrote: > > > > > On Sun, Nov 05, 2023 at 12:11:06PM -0700, The Doctor wrote: > > > > > > On Sun, Nov 05, 2023 at 10:32:44AM -0700, The Doctor wrote: > > > > > > > On Fri, Nov 03, 2023 at 11:42:32PM +0000, Glen Barber wrote: > > > > > > > > The fourth RC build of the 14.0-RELEASE release cycle is now available. > > > > > > > > > > > > > > > > Installation images are available for: > > > > > > > > > > > > > > > > o 14.0-RC4 amd64 GENERIC > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I am having a problem witb Freeradius and GNU radius. > > > > > > > > > > > > > > Anyone else? > > > > > > > > > > > > > > > > > > > > > > > > > > I found the problem. Replace /usr/lib/libncursesw.so as a symbolic > > > > > > link to /lib/libncursesw.so.9 > > > > > > > > > > can you provide more inputs here, please where do you get your freeradious or > > > > > gnu radius implementation from, what is failing an so on? > > > > > > > > > > Best regards, > > > > > Bapt > > > > > > > > freeradius looks like a TLS issue with openssl 3 > > > > > > > > . > > > > > > > > gnu Radius was biuld by me and not a port. > > > > > > > > Trying to recode is a challenge. > > > > > > > > What is happening is that > > > > > > > > the so file is not being recognised so > > > > I have to symlink in order to get GNU radius 1.6.X to work . > > > > > > > > It will work with /lib/libncursesw.so.9 if the so file is found in > > > > /usr/lib . > > > > > > OK I will dig into gnu-radius, and fix the port if needed! thank you > > > > > > Best regards, > > > Bapt > > > > I just checked here, and I built gnu-radius on a vanilla freebsd 14.0 rc4 and a > > vanilla 15 current, and in both case it perfectly links to libncursesw.so.9 and > > does not require any change of the .so, at least from all the binary analysis > > that I have done, do you have a specific command that will expose the issue? > > > > Can you provide me you gnu-radius package as created by pkg create gnu-radius ? > > > > Best regards, > > Bapt > > Try to build from ports, here is what I get > > cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../include -I../include/radius -I../include/radius -I../lib -I../gnu -I../gnu -I/usr/local/include/guile/1.8 -I/usr/local/include -isystem /usr/local/include -D_THREAD_SAFE -DSYSCONFDIR=\"/usr/local/etc\" -DRADPID_DIR=\"/var/run\" -DRADLOG_DIR=\"/var/log\" -DRADIUS_DATADIR=\"/usr/local/share/radius/1.6.1\" -DRADIUS_LIBDIR=\"/usr/local/lib/radius/1.6.1\" -I/usr/local/include/ -I/usr/local/include -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -MT builddbm.o -MD -MP -MF .deps/builddbm.Tpo -c -o builddbm.o builddbm.c > builddbm.c:101:13: warning: call to undeclared function 'grad_dbm_insert'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] > if (grad_dbm_insert(closure->dbmfile, named, contentd)) { > ^ > builddbm.c:141:13: warning: call to undeclared function 'grad_dbm_create'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] > if (grad_dbm_create(db_file, &closure.dbmfile)) { > ^ > builddbm.c:147:39: error: incompatible function pointer types passing 'int (DBM_closure *, User_symbol *)' (aka 'int (DBM_closure *, struct user_symbol *)') to parameter of type 'int (*)(void *, grad_symbol_t *)' (aka 'int (*)(void *, struct symbol *)') [-Wincompatible-function-pointer-types] > grad_symtab_iterate(user_tab, append_symbol, &closure); > ^~~~~~~~~~~~~ > ../include/radius/symtab.h:48:11: note: passing argument to parameter 'fn' here > int (*fn)(void *, grad_symbol_t *), > ^ > builddbm.c:243:13: warning: call to undeclared function 'paircmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] > if (paircmp(req, check_tmp) == 0) { > ^ > builddbm.c:252:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] > if (p = grad_avl_find(check_tmp, DA_MATCH_PROFILE)) { > ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > builddbm.c:252:23: note: place parentheses around the assignment to silence this warning > if (p = grad_avl_find(check_tmp, DA_MATCH_PROFILE)) { > ^ > ( ) > builddbm.c:252:23: note: use '==' to turn this assignment into an equality comparison > if (p = grad_avl_find(check_tmp, DA_MATCH_PROFILE)) { > ^ > == > builddbm.c:308:35: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] > (*fn)(buffer, sizeof(buffer), name, i), > ^ > builddbm.c:323:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] > if (p = grad_avl_find(*reply_pairs, DA_MATCH_PROFILE)) { > ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > builddbm.c:323:23: note: place parentheses around the assignment to silence this warning > if (p = grad_avl_find(*reply_pairs, DA_MATCH_PROFILE)) { > ^ > ( ) > builddbm.c:323:23: note: use '==' to turn this assignment into an equality comparison > if (p = grad_avl_find(*reply_pairs, DA_MATCH_PROFILE)) { > ^ > == > builddbm.c:336:22: warning: call to undeclared function 'fallthrough'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] > if (!fallthrough(*reply_pairs)) > ^ > 7 warnings and 1 error generated. > gmake[6]: *** [Makefile:743: builddbm.o] Error 1 > gmake[6]: Leaving directory '/usr/ports/net/gnu-radius/work/radius-1.6.1/radiusd' > gmake[5]: *** [Makefile:641: all] Error 2 > gmake[5]: Leaving directory '/usr/ports/net/gnu-radius/work/radius-1.6.1/radiusd' > gmake[4]: *** [Makefile:745: all-recursive] Error 1 > gmake[4]: Leaving directory '/usr/ports/net/gnu-radius/work/radius-1.6.1' > gmake[3]: *** [Makefile:621: all] Error 2 > gmake[3]: Leaving directory '/usr/ports/net/gnu-radius/work/radius-1.6.1' > ===> Compilation failed unexpectedly. > Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to > the maintainer. > *** Error code 1 > > Stop. > make[2]: stopped in /usr/ports/net/gnu-radius > *** Error code 1 > > Stop. > make[1]: stopped in /usr/ports/net/gnu-radius > *** Error code 1 > > Stop. > make: stopped in /usr/ports/net/gnu-radius > This is not a ncurses issue. Bapt