From nobody Mon Nov 6 16:53:56 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 4SPHW452z1z50GWl; Mon, 6 Nov 2023 16:54:08 +0000 (UTC) (envelope-from doctor@doctor.nl2k.ab.ca) Received: from doctor.nl2k.ab.ca (doctor.nl2k.ab.ca [204.209.81.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) by mx1.freebsd.org (Postfix) with ESMTPS id 4SPHW4302lz4KdZ; Mon, 6 Nov 2023 16:54:08 +0000 (UTC) (envelope-from doctor@doctor.nl2k.ab.ca) Authentication-Results: mx1.freebsd.org; none Received: from doctor by doctor.nl2k.ab.ca with local (Exim 4.96.2 (FreeBSD)) (envelope-from ) id 1r02rM-0007nE-0t; Mon, 06 Nov 2023 09:53:56 -0700 Date: Mon, 6 Nov 2023 09:53:56 -0700 From: The Doctor To: Baptiste Daroussin 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: References: <20231103234232.GK1289@FreeBSD.org> <5p6sszthbhskientm4tki4pq4hyzws4fnmzgq4cagh7yvkrwyo@hhmf5cy4gmsu> <4k7sqgsiolglrfq35lesmb4qr7l7lcbnmebcdaxs4n7so2vubn@56xwzstht5dy> 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: <4k7sqgsiolglrfq35lesmb4qr7l7lcbnmebcdaxs4n7so2vubn@56xwzstht5dy> X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:6171, ipnet:204.209.81.0/24, country:CA] X-Rspamd-Queue-Id: 4SPHW4302lz4KdZ On Mon, Nov 06, 2023 at 04:31:04PM +0100, Baptiste Daroussin wrote: > 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 > Care to see the pure code non-ported? -- Member - Liberal International This is doctor@nk.ca Ici doctor@nk.ca Yahweh, King & country!Never Satan President Republic!Beware AntiChrist rising! Look at Psalms 14 and 53 on Atheism ; unsubscribe from Google Groups to be seen Suffering will continue until we stop believing lies. -unknown Beware https://mindspring.com