Hi, May I ask about kqueue support as library? I see in many places receipts on how to install packages on Linux. And on the official wiki page next note "libkqueue or native kqueue support (since >= v4.0.x)". Is it mean that as a library it is supported only from v4.0.x? version. Or it is a hard dependency since that version? Best regards, Vladimir
On Mon, 6 Feb 2023 at 20:12, Matthew Newton via Freeradius-Users <freeradius-users@lists.freeradius.org> wrote:
It is a hard dependency for v4 onwards.
Great. Thank you! If I understand correctly it means I can use kqueue on Linux, right? In this case, may I ask how to compile Freeradius (< 4.x) with kqueue support on Linux? First I've tried to compile it on Amazonlinux:2 including compiling libkqueue. This didn't work. https://wiki.freeradius.org/building/libkqueue-rpm Then I tried to compile it on Ubuntu 22.04 because libkqueue for ubuntu exists as a package. In both cases ./configure script reports that kqueuue is not supported. ``` checking for inet_ntop... yes checking for inet_pton... yes checking for initgroups... yes checking for kqueue... no checking for localtime_r... yes checking for mallopt... yes checking for mkdirat... yes checking for openat... yes checking for pthread_sigmask... yes checking for setlinebuf... yes ``` Best regards, Vladimir
On Feb 6, 2023, at 3:03 PM, work vlpl <thework.vlpl@gmail.com> wrote:
If I understand correctly it means I can use kqueue on Linux, right?
Yes.
In this case, may I ask how to compile Freeradius (< 4.x) with kqueue support on Linux?
You compile it as normal. configure / make / make install.
First I've tried to compile it on Amazonlinux:2 including compiling libkqueue. This didn't work.
That is not a helpful comment.
https://wiki.freeradius.org/building/libkqueue-rpm
Then I tried to compile it on Ubuntu 22.04 because libkqueue for ubuntu exists as a package.
That won't work. Their version of kqueue is too old.
In both cases ./configure script reports that kqueuue is not supported.
Read the config.log file, or see ./configure --help to see what's going wrong. In short, if v4 works, great. If not, please supply a patch to fix the issue. Alan DeKok.
On 06/02/2023 20:03, work vlpl wrote:
On Mon, 6 Feb 2023 at 20:12, Matthew Newton via Freeradius-Users <freeradius-users@lists.freeradius.org> wrote:
In this case, may I ask how to compile Freeradius (< 4.x) with kqueue support on Linux?
You don't need kqueue for FreeRADIUS < v4, so there is no need to build it. -- Matthew
On Mon, 6 Feb 2023 at 22:05, Matthew Newton via Freeradius-Users <freeradius-users@lists.freeradius.org> wrote:
You don't need kqueue for FreeRADIUS < v4, so there is no need to build it.
I am confused a bit, I know I don't need kqueue to compile versions 3.0.x and 3.2.x. But can I compile it? I want to try to use kqueue instead of select.
On Feb 7, 2023, at 8:01 AM, work vlpl <thework.vlpl@gmail.com> wrote:
I am confused a bit, I know I don't need kqueue to compile versions 3.0.x and 3.2.x. But can I compile it? I want to try to use kqueue instead of select.
You have the source code. Go look. It's how everyone else learned. If you don't have time to understand the source code, then there's no point in trying to switch FreeRADIUS to use kqueue. This list is for people using FreeRADIUS, not for people learning how kqueue works. Alan DeKok.
participants (3)
-
Alan DeKok -
Matthew Newton -
work vlpl