Dear Friends, We have customized module (lib) written for freeRadius version freeradius-server-2.2.0. The same code can be reused for latest version of free Radius (say 3.0.9). Provided all basic message structures are remain same (in both versions of free Radius). One basic questions, We were having child hung issue at free Radius due to slow response from external module. once free Radius server (version 2.2.0) goes to child hung state then we have to restart the server (though the external module resumed after 1-2 minutes). Is there any throttling done at Free Radius server (latest version 3.0.9)? so that when external module response is slow, Radius server would not fill the queue with incoming messages (from NAS). i.e. taking messages into queue and run into child hung issue. It uses throttling to have control over pending request queue when there is a slowness in the external system and queue size increases (since NAS is flooding the radius server). Thanks a lot for your response in advance. -- Regards, Srithar Durairaj Alternate Mail I.D: srijeevadurai1@yahoo.co.in Mobile: +919886251852
Hi Nick, You mean child hung issue is not happening with version 2.2.9? since it has been fixed in version 2.2.0. On Thu, Oct 1, 2015 at 11:00 AM, Nick Lowe <nick.lowe@gmail.com> wrote:
Can you reproduce this with 2.2.9? - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Regards, Srithar Durairaj Alternate Mail I.D: srijeevadurai1@yahoo.co.in Mobile: +919886251852
Hi Nick, You mean child hung issue is not happening with version 2.2.9? since it has been fixed in version 2.2.9. On Thu, Oct 1, 2015 at 11:02 AM, srithar jeevadurai < srijeevadurai1@gmail.com> wrote:
Hi Nick,
You mean child hung issue is not happening with version 2.2.9? since it has been fixed in version 2.2.0.
On Thu, Oct 1, 2015 at 11:00 AM, Nick Lowe <nick.lowe@gmail.com> wrote:
Can you reproduce this with 2.2.9? - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Regards, Srithar Durairaj Alternate Mail I.D: srijeevadurai1@yahoo.co.in Mobile: +919886251852
-- Regards, Srithar Durairaj Alternate Mail I.D: srijeevadurai1@yahoo.co.in Mobile: +919886251852
I mean that as lot has been fixed between 2.2.0 and 2.2.9, I casually remember reading about fixes for hung children. This could, of course, be for unrelated causes. As a general rule of thumb, try and reproduce your problem with the latest stable version of the software before asking something like this. Nick
Hi Nick, Thanks for your reply. I will use latest version (3.0.9). I believe that there is no need of changing the code of our custom module due to version change? Hope there is no data structure change happened between version 2.2.0 to 3.0.9. I am sorry if the question seems to be basic and I have to try and find it out. On Thu, Oct 1, 2015 at 11:07 AM, Nick Lowe <nick.lowe@gmail.com> wrote:
I mean that as lot has been fixed between 2.2.0 and 2.2.9, I casually remember reading about fixes for hung children. This could, of course, be for unrelated causes.
As a general rule of thumb, try and reproduce your problem with the latest stable version of the software before asking something like this.
Nick - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Regards, Srithar Durairaj Alternate Mail I.D: srijeevadurai1@yahoo.co.in Mobile: +919886251852
On Thu, Oct 01, 2015 at 11:23:32AM +0530, srithar jeevadurai wrote:
Thanks for your reply. I will use latest version (3.0.9). I believe that there is no need of changing the code of our custom module due to version change?
Unlikely. But we can't see your code, so it makes it quite difficult to help...
Hope there is no data structure change happened between version 2.2.0 to 3.0.9.
Lots has changed between those versions. Why would you think nothing would be different between major releases?
I am sorry if the question seems to be basic and I have to try and find it out.
If you can write your own module then surely you could at least *try* to compile it against the new version and see what happens? Then you can ask better questions. Matthew -- Matthew Newton, Ph.D. <mcn4@le.ac.uk> Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
Hi Matthew, Thanks you very much for your reply. I will integrate the code and check whether it's working fine or not or any compilation error. On Thu, Oct 1, 2015 at 2:01 PM, Matthew Newton <mcn4@leicester.ac.uk> wrote:
On Thu, Oct 01, 2015 at 11:23:32AM +0530, srithar jeevadurai wrote:
Thanks for your reply. I will use latest version (3.0.9). I believe that there is no need of changing the code of our custom module due to version change?
Unlikely. But we can't see your code, so it makes it quite difficult to help...
Hope there is no data structure change happened between version 2.2.0 to 3.0.9.
Lots has changed between those versions. Why would you think nothing would be different between major releases?
I am sorry if the question seems to be basic and I have to try and find it out.
If you can write your own module then surely you could at least *try* to compile it against the new version and see what happens? Then you can ask better questions.
Matthew
-- Matthew Newton, Ph.D. <mcn4@le.ac.uk>
Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom
For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk> - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Regards, Srithar Durairaj Alternate Mail I.D: srijeevadurai1@yahoo.co.in Mobile: +919886251852
Hi,
Thanks for your reply. I will use latest version (3.0.9). I believe that
why? you've got 2.0.0 module and code.... you've been told to try your stuff with 2.2.9
change? Hope there is no data structure change happened between version 2.2.0 to 3.0.9.
LOADS of things have been changed between 2.x and 3.x - thats why its a major version release - in the first instance look at the developers docs and read the API and data structure changes - its not a 'compile it as is' process unless your module is very very simple bump your local box to 2.2.9 codebase and start there - there have been thousands of code lines change between those versions and hundreds of bugs/fixes some of which might solve your problem. i can say this though in the first instance, unless you are using 2.2.9 your issue wont get looked at as its likely tohave already been fixed since 2.2.0 alan
On Thu, Oct 1, 2015 at 12:26 PM, srithar jeevadurai <srijeevadurai1@gmail.com> wrote:
Is there any throttling done at Free Radius server (latest version 3.0.9)? so that when external module response is slow, Radius server would not fill the queue with incoming messages (from NAS). i.e. taking messages into queue and run into child hung issue. It uses throttling to have control over pending request queue when there is a slowness in the external system and queue size increases (since NAS is flooding the radius server).
I suggest you read radiusd.conf that comes with whatever version of FR you installed first, and see if the tunables there are enough for your purposes. Do you want to automatically increase max_requests? Until how big, unlimited? And what do you want to do with requests already handled, keep waiting forever? If you have "slow response from external module", then you should fix that module. For example, http://lists.freeradius.org/pipermail/freeradius-users/2013-June/066900.html There's also https://github.com/FreeRADIUS/freeradius-server/issues/880 , so if you get that similar error message, latest 2.x should already fix that. -- Fajar
Dear Friends, I am trying to compile freeRadius 3.0.9. on Solaris 10 environment. Initially I have faced the error "configure: error: FreeRADIUS requires libtalloc". I have installed the libtalloc.so.2 on my server. *amsterdam-lbr@/opt/csw/lib>ls -ltr *talloc** *-rwxr-xr-x 1 root bin 69184 Mar 6 2015 libtalloc.so.2.1.1* *lrwxrwxrwx 1 root root 18 Nov 3 13:23 libtalloc.so.2 -> libtalloc.so.2.1.1* *amsterdam-lbr@/opt/csw/lib>* After installing the same, I tried to compile v3.0.9 however still I am facing the error. Command used: user@/export/home/rad/freeradius-server-3.0.9>./configure --with-talloc-lib-dir=/opt/csw/lib/ --prefix=$INSTALL_DIR/RADIUS_STACK Error: checking for grep... (cached) /usr/sfw/bin//ggrep checking for _talloc in -ltalloc in */opt/csw/lib/*... no checking for _talloc in -ltalloc... no checking for _talloc in -ltalloc in /usr/local/lib... no checking for _talloc in -ltalloc in /opt/lib... no *configure: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>.* *configure: error: FreeRADIUS requires libtalloc* amsterdam-lbr@ /secaaa/ACCESS_GATEWAY_4.1/FSS_AAG/RADIUS_STACK/freeradius-server-3.0.9> Can you please help me to fix the same? Regards, Srithar On Thu, Oct 1, 2015 at 4:16 PM, Fajar A. Nugraha <list@fajar.net> wrote:
On Thu, Oct 1, 2015 at 12:26 PM, srithar jeevadurai <srijeevadurai1@gmail.com> wrote:
Is there any throttling done at Free Radius server (latest version 3.0.9)? so that when external module response is slow, Radius server would not fill the queue with incoming messages (from NAS). i.e. taking messages into queue and run into child hung issue. It uses throttling to have control over pending request queue when there is a slowness in the external system and queue size increases (since NAS is flooding the radius server).
I suggest you read radiusd.conf that comes with whatever version of FR you installed first, and see if the tunables there are enough for your purposes.
Do you want to automatically increase max_requests? Until how big, unlimited? And what do you want to do with requests already handled, keep waiting forever?
If you have "slow response from external module", then you should fix that module. For example,
http://lists.freeradius.org/pipermail/freeradius-users/2013-June/066900.html
There's also https://github.com/FreeRADIUS/freeradius-server/issues/880 , so if you get that similar error message, latest 2.x should already fix that.
-- Fajar - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Regards, Srithar Durairaj Alternate Mail I.D: srijeevadurai1@yahoo.co.in Mobile: +919886251852
checking for grep... (cached) /usr/sfw/bin//ggrep checking for _talloc in -ltalloc in */opt/csw/lib/*... no checking for _talloc in -ltalloc... no checking for _talloc in -ltalloc in /usr/local/lib... no checking for _talloc in -ltalloc in /opt/lib... no *configure: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>.* *configure: error: FreeRADIUS requires libtalloc* amsterdam-lbr@ /secaaa/ACCESS_GATEWAY_4.1/FSS_AAG/RADIUS_STACK/freeradius-server-3.0.9>
Can you please help me to fix the same?
Check config.log, configure doesn't always report linking errors in a sane way. -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
On Wed, Nov 4, 2015 at 1:35 PM, srithar jeevadurai <srijeevadurai1@gmail.com
wrote:
Dear Friends,
I am trying to compile freeRadius 3.0.9. on Solaris 10 environment. Initially I have faced the error "configure: error: FreeRADIUS requires libtalloc".
I have installed the libtalloc.so.2 on my server.
did you install libtalloc_dev? -- Faja
Hi Fajar, I have taken the url to download talloc from http://wiki.freeradius.org/building/build#building-from-source_building-on-s... that is "http://www.samba.org/ftp/talloc/talloc-2.1.0.tar.gz". It has been given in the Mac-OS installation section. Can you please guide me to get right package downloaded for Solaris 10 please? Regards, Srithar On Thu, Nov 5, 2015 at 6:45 AM, Fajar A. Nugraha <list@fajar.net> wrote:
On Wed, Nov 4, 2015 at 1:35 PM, srithar jeevadurai < srijeevadurai1@gmail.com
wrote:
Dear Friends,
I am trying to compile freeRadius 3.0.9. on Solaris 10 environment. Initially I have faced the error "configure: error: FreeRADIUS requires libtalloc".
I have installed the libtalloc.so.2 on my server.
did you install libtalloc_dev?
-- Faja - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Regards, Srithar Durairaj Alternate Mail I.D: srijeevadurai1@yahoo.co.in Mobile: +919886251852
Your earlier mail shows /opt/csw. Have you checked https://www.opencsw.org/get-it/packages/ ? I haven't used solaris for some time, but I'm pretty sure you also need a ".so" file (which is usually provided by -dev/devel packages) when linking against a library. Your earlier ls output does not have that. -- Fajar On Thu, Nov 5, 2015 at 4:07 PM, srithar jeevadurai <srijeevadurai1@gmail.com
wrote:
Hi Fajar,
I have taken the url to download talloc from
http://wiki.freeradius.org/building/build#building-from-source_building-on-s... that is "http://www.samba.org/ftp/talloc/talloc-2.1.0.tar.gz".
It has been given in the Mac-OS installation section. Can you please guide me to get right package downloaded for Solaris 10 please?
Regards, Srithar
On Thu, Nov 5, 2015 at 6:45 AM, Fajar A. Nugraha <list@fajar.net> wrote:
On Wed, Nov 4, 2015 at 1:35 PM, srithar jeevadurai < srijeevadurai1@gmail.com
wrote:
Dear Friends,
I am trying to compile freeRadius 3.0.9. on Solaris 10 environment. Initially I have faced the error "configure: error: FreeRADIUS requires libtalloc".
I have installed the libtalloc.so.2 on my server.
did you install libtalloc_dev?
-- Faja - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Regards, Srithar Durairaj Alternate Mail I.D: srijeevadurai1@yahoo.co.in Mobile: +919886251852 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
I'm working on getting Freeradius 3.0.10 to compile on solaris 11 . Soalris 10 should be similar. I'm using these commands: pkgadd -d http://get.opencsw.org/now/opt/csw/bin/pkgutil vim /etc/opt/csw/pkgutil.conf --> mirror=http://mirror.opencsw.org/opencsw/unstable /opt/csw/bin/pkgutil -U /opt/csw/bin/pkgutil -i CSWlibtalloc2 /opt/csw/bin/pkgutil -i CSWlibtalloc-dev I will update the wiki when I have everything building correctly, ATM I'm still having trouble later on. (see bug https://github.com/FreeRADIUS/freeradius-server/issues/1366 ) Kind regards Sander
-----Oorspronkelijk bericht----- Van: Freeradius-Users [mailto:freeradius-users- bounces+sander.eerdekens=uzleuven.be@lists.freeradius.org] Namens Fajar A. Nugraha Verzonden: donderdag 5 november 2015 10:28 Aan: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Onderwerp: Re: FreeRadius - Version porting
Your earlier mail shows /opt/csw. Have you checked https://www.opencsw.org/get-it/packages/ ?
I haven't used solaris for some time, but I'm pretty sure you also need a ".so" file (which is usually provided by -dev/devel packages) when linking against a library. Your earlier ls output does not have that.
-- Fajar
On Thu, Nov 5, 2015 at 4:07 PM, srithar jeevadurai <srijeevadurai1@gmail.com
wrote:
Hi Fajar,
I have taken the url to download talloc from
http://wiki.freeradius.org/building/build#building-from-source_building- on-solaris that is "http://www.samba.org/ftp/talloc/talloc-2.1.0.tar.gz".
It has been given in the Mac-OS installation section. Can you please guide me to get right package downloaded for Solaris 10 please?
Regards, Srithar
On Thu, Nov 5, 2015 at 6:45 AM, Fajar A. Nugraha <list@fajar.net> wrote:
On Wed, Nov 4, 2015 at 1:35 PM, srithar jeevadurai < srijeevadurai1@gmail.com
wrote:
Dear Friends,
I am trying to compile freeRadius 3.0.9. on Solaris 10 environment. Initially I have faced the error "configure: error: FreeRADIUS requires libtalloc".
I have installed the libtalloc.so.2 on my server.
did you install libtalloc_dev?
-- Faja - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Regards, Srithar Durairaj Alternate Mail I.D: srijeevadurai1@yahoo.co.in Mobile: +919886251852 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Dear Friends, Thanks a lot for your reply to fix the issue with the talloc llib during config step. I run below command to complete the config step and it went successfully. $>./configure --with-talloc-lib-dir=/opt/csw/lib --with-talloc-include-dir=/opt/csw/include/ --prefix=$INSTALL_DIR/RADIUS_STACK I checked the exit status of above command it is 0. After that I run gmake however I am getting below error message. As per the message, I checked the file /src/include/autoconf.sed - the file is not exist in the location. I kindly request you to help me to clear/fix below error message please. Thanks in advance for your help. $>gmake /bin/sh: test: argument expected /bin/sh: s,#[\\t ]*ifdef[\\t ]*" $2 "$,#if "$3 ",g;s,#[\\t ]*ifndef[\\t ]*" $2 "$,#if !"$3 ",g;s,defined(" $2 ")," $3 ",g;"}: not found gmake: *** [src/include/autoconf.sed] Error 1 Usage: grep -hblcnsviw pattern file . . . On Thu, Nov 5, 2015 at 6:45 AM, Fajar A. Nugraha <list@fajar.net> wrote:
On Wed, Nov 4, 2015 at 1:35 PM, srithar jeevadurai < srijeevadurai1@gmail.com
wrote:
Dear Friends,
I am trying to compile freeRadius 3.0.9. on Solaris 10 environment. Initially I have faced the error "configure: error: FreeRADIUS requires libtalloc".
I have installed the libtalloc.so.2 on my server.
did you install libtalloc_dev?
-- Faja - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Regards, Srithar Durairaj Alternate Mail I.D: srijeevadurai1@yahoo.co.in Mobile: +919886251852
Hi,
$>gmake /bin/sh: test: argument expected /bin/sh: s,#[\\t ]*ifdef[\\t ]*" $2 "$,#if "$3 ",g;s,#[\\t ]*ifndef[\\t ]*" $2 "$,#if !"$3 ",g;s,defined(" $2 ")," $3 ",g;"}: not found gmake: *** [src/include/autoconf.sed] Error 1 Usage: grep -hblcnsviw pattern file . . .
you need proper GNU grep and not the stupid grep that comes with Solaris alan
On Mon, Nov 09, 2015 at 09:17:04AM +0000, A.L.M.Buxey@lboro.ac.uk wrote:
$>gmake /bin/sh: test: argument expected /bin/sh: s,#[\\t ]*ifdef[\\t ]*" $2 "$,#if "$3 ",g;s,#[\\t ]*ifndef[\\t ]*" $2 "$,#if !"$3 ",g;s,defined(" $2 ")," $3 ",g;"}: not found gmake: *** [src/include/autoconf.sed] Error 1 Usage: grep -hblcnsviw pattern file . . .
you need proper GNU grep and not the stupid grep that comes with Solaris
Ah yes, the joys of Solaris. That brings back memories I'd rather forget. In less than a quarter of the time you'd wasted making the system usable by installing all the GNU tools in /opt/csw or /usr/gnu and adjusted everything so they were used by default, you may as well have just installed Linux.
From what I understand the only reason people still use it these days is for ZFS. And even then you might as well just install FreeBSD.
I guess some people just like pain :) Matthew -- Matthew Newton, Ph.D. <mcn4@le.ac.uk> Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
Dear Friends, Thanks for the reply. I have /usr/bin/grep and /usr/sfw/bin/ggrep. As per your reply, it suppose to use /usr/sfw/bin/ggrep instead of /usr/bin/grep. To do the same, export PATH=/usr/sfw/bin:/usr/bin:$PATH ---> so that ggrep path comes first in the path variable. After doing the same, we have to run the ./config once again then gmake (gmake install after that). Is my understanding correct ? On Mon, Nov 9, 2015 at 2:47 PM, <A.L.M.Buxey@lboro.ac.uk> wrote:
Hi,
$>gmake /bin/sh: test: argument expected /bin/sh: s,#[\\t ]*ifdef[\\t ]*" $2 "$,#if "$3 ",g;s,#[\\t ]*ifndef[\\t ]*" $2 "$,#if !"$3 ",g;s,defined(" $2 ")," $3 ",g;"}: not found gmake: *** [src/include/autoconf.sed] Error 1 Usage: grep -hblcnsviw pattern file . . .
you need proper GNU grep and not the stupid grep that comes with Solaris
alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Regards, Srithar Durairaj Alternate Mail I.D: srijeevadurai1@yahoo.co.in Mobile: +919886251852
Dear Friends, Can you pls help me how can I fix the error? If I have to use GNU grep (which is available at /usr/sfw/bin/) please let me know what step I have to follow in the intallation step. 1) config 2) gmake 3) gmake install
$>gmake /bin/sh: test: argument expected /bin/sh: s,#[\\t ]*ifdef[\\t ]*" $2 "$,#if "$3 ",g;s,#[\\t ]*ifndef[\\t ]*" $2 "$,#if !"$3 ",g;s,defined(" $2 ")," $3 ",g;"}: not found gmake: *** [src/include/autoconf.sed] Error 1 Usage: grep -hblcnsviw pattern file . . .
On Mon, Nov 9, 2015 at 5:08 PM, srithar jeevadurai <srijeevadurai1@gmail.com
wrote:
Dear Friends,
Thanks for the reply. I have /usr/bin/grep and /usr/sfw/bin/ggrep.
As per your reply, it suppose to use /usr/sfw/bin/ggrep instead of /usr/bin/grep.
To do the same, export PATH=/usr/sfw/bin:/usr/bin:$PATH ---> so that ggrep path comes first in the path variable.
After doing the same, we have to run the ./config once again then gmake (gmake install after that).
Is my understanding correct ?
On Mon, Nov 9, 2015 at 2:47 PM, <A.L.M.Buxey@lboro.ac.uk> wrote:
Hi,
$>gmake /bin/sh: test: argument expected /bin/sh: s,#[\\t ]*ifdef[\\t ]*" $2 "$,#if "$3 ",g;s,#[\\t ]*ifndef[\\t ]*" $2 "$,#if !"$3 ",g;s,defined(" $2 ")," $3 ",g;"}: not found gmake: *** [src/include/autoconf.sed] Error 1 Usage: grep -hblcnsviw pattern file . . .
you need proper GNU grep and not the stupid grep that comes with Solaris
alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Regards, Srithar Durairaj Alternate Mail I.D: srijeevadurai1@yahoo.co.in Mobile: +919886251852
-- Regards, Srithar Durairaj Alternate Mail I.D: srijeevadurai1@yahoo.co.in Mobile: +919886251852
On Nov 16, 2015, at 2:51 AM, srithar jeevadurai <srijeevadurai1@gmail.com> wrote:
Dear Friends,
Can you pls help me how can I fix the error? If I have to use GNU grep (which is available at /usr/sfw/bin/) please let me know what step I have to follow in the intallation step.
You need to list /usr/sfw/bin in your PATH, before the path of the Solaris grep command. Alan DeKok.
Hi Alan, Thanks a lot for your reply. I have tried the same. 1) export PATH=/usr/sfw/bin/:/usr/bin:/usr/ccs/bin/:/usr/sbin/:/usr/local/bin/ 2) ./configure --with-talloc-lib-dir=/opt/csw/lib --with-talloc-include-dir=/opt/csw/include/ --prefix=$INSTALL_DIR/RADIUS_STACK 3) $>alias grep='/usr/sfw/bin/ggrep ' $>gmake */bin/sh: test: argument expected* gmake: Warning: File `build/tests/keywords/autoconf.h.mk' has modification time 8.2 s in the future /*bin/sh: s,#[\\t ]*ifdef[\\t ]*" $2 "$,#if "$3 ",g;s,#[\\t ]*ifndef[\\t ]*" $2 "$,#if !"$3 ",g;s,defined(" $2 ")," $3 ",g;"}: not found* *gmake: *** [src/include/autoconf.sed] Error 1* Usage: grep -hblcnsviw pattern file . . . It is still giving same error message (even I have set the alias grep as '/usr/sfw/bin/ggrep '. On Mon, Nov 16, 2015 at 6:23 PM, Alan DeKok <aland@deployingradius.com> wrote:
On Nov 16, 2015, at 2:51 AM, srithar jeevadurai <srijeevadurai1@gmail.com> wrote:
Dear Friends,
Can you pls help me how can I fix the error? If I have to use GNU grep (which is available at /usr/sfw/bin/) please let me know what step I have to follow in the intallation step.
You need to list /usr/sfw/bin in your PATH, before the path of the Solaris grep command.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Regards, Srithar Durairaj Alternate Mail I.D: srijeevadurai1@yahoo.co.in Mobile: +919886251852
On Mon, Nov 16, 2015 at 08:55:16PM +0530, srithar jeevadurai wrote:
3) $>alias grep='/usr/sfw/bin/ggrep ' $>gmake */bin/sh: test: argument expected* gmake: Warning: File `build/tests/keywords/autoconf.h.mk' has modification time 8.2 s in the future /*bin/sh: s,#[\\t ]*ifdef[\\t ]*" $2 "$,#if "$3 ",g;s,#[\\t ]*ifndef[\\t ]*" $2 "$,#if !"$3 ",g;s,defined(" $2 ")," $3 ",g;"}: not found* *gmake: *** [src/include/autoconf.sed] Error 1* Usage: grep -hblcnsviw pattern file . . .
It is still giving same error message (even I have set the alias grep as '/usr/sfw/bin/ggrep '.
An alias won't help scripts; you need a correctly named binary or a symlink. Then hope the build scripts don't call another binary that's been updated in the last 15 years. Rinse and repeat. Matthew -- Matthew Newton, Ph.D. <mcn4@le.ac.uk> Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
Dear Friends, It tried by adding ggrep path in PATH variable as first path even though I am getting same error message. My doubt is that gmake command calls a script which uses grep however gun grep in solaris is ggrep. I am able to successfully compile 2.2.9. (after trying and failed with 3.0.9) in the same environment. I have faced only error while compiling rlm_unix module, as per Alan's reply for one of old thread, I removed rlm_unix and successfully installed 2.2.9 in the environment. I am facing difficulty only with 3.0.9 on Solaris 11. 1) While configure step, I faced below WARNINGS. hope I can ignore those. checking for redisConnect in -lhiredis... no checking for redisConnect in -lhiredis in /usr/local/lib... no checking for redisConnect in -lhiredis in /opt/lib... no configure: WARNING: hiredis libraries not found. Use --with-redis-lib-dir=<path>. configure: WARNING: silently not building rlm_rediswho. configure: WARNING: FAILURE: rlm_rediswho requires: hiredis.h libhiredis. 2) while doing gmake I faced following errors. GNU grep on solaris is ggrep, since script is using "grep" though I added GNU utilities path (/usr/sfw/bin) as first in the PATH variable, it is not able to make use since name is ggrep. I believe that if I create symbolic link as grep to ggrep in the path /usr/sfw/bin then It may resolve. Please correct me on the same.
gmake /bin/sh: test: argument expected /bin/sh: test: argument expected gmake: Warning: File `build/tests/keywords/autoconf.h.mk' has modification time 40 s in the future HEADER src/include/attributes.h /bin/sh: ATTRIBUTE: not found Usage: grep -hblcnsviw pattern file . . . /bin/sh: VALUE: not found Usage: grep -hblcnsviw pattern file . . . HEADER src/include/rfc2867.h /bin/sh: ATTRIBUTE: not found Usage: grep -hblcnsviw pattern file . . . HEADER src/include/rfc6911.h /bin/sh: ATTRIBUTE: not found Usage: grep -hblcnsviw pattern file . . . HEADER src/include/rfc3162.h /bin/sh: ATTRIBUTE: not found Usage: grep -hblcnsviw pattern file . . . .. .. .. /bin/sh: ATTRIBUTE: not found Usage: grep -hblcnsviw pattern file . . . HEADER src/include/rfc3576.h /bin/sh: ATTRIBUTE: not found Usage: grep -hblcnsviw pattern file . . . HEADER src/include/vqp.h /bin/sh: ATTRIBUTE: not found Usage: grep -hblcnsviw pattern file . . . HEADER src/include/features.h */bin/sh: s,#[\\t ]*ifdef[\\t ]*" $2 "$,#if "$3 ",g;s,#[\\t ]*ifndef[\\t ]*" $2 "$,#if !"$3 ",g;s,defined(" $2 ")," $3 ",g;"}: not found* gmake: *** [src/include/autoconf.sed] Error 1 Usage: grep -hblcnsviw pattern file . . .
On Mon, Nov 16, 2015 at 9:04 PM, Matthew Newton <mcn4@leicester.ac.uk> wrote:
On Mon, Nov 16, 2015 at 08:55:16PM +0530, srithar jeevadurai wrote:
3) $>alias grep='/usr/sfw/bin/ggrep ' $>gmake */bin/sh: test: argument expected* gmake: Warning: File `build/tests/keywords/autoconf.h.mk' has modification time 8.2 s in the future /*bin/sh: s,#[\\t ]*ifdef[\\t ]*" $2 "$,#if "$3 ",g;s,#[\\t ]*ifndef[\\t ]*" $2 "$,#if !"$3 ",g;s,defined(" $2 ")," $3 ",g;"}: not found* *gmake: *** [src/include/autoconf.sed] Error 1* Usage: grep -hblcnsviw pattern file . . .
It is still giving same error message (even I have set the alias grep as '/usr/sfw/bin/ggrep '.
An alias won't help scripts; you need a correctly named binary or a symlink.
Then hope the build scripts don't call another binary that's been updated in the last 15 years. Rinse and repeat.
Matthew
-- Matthew Newton, Ph.D. <mcn4@le.ac.uk>
Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom
For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk> - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Regards, Srithar Durairaj Alternate Mail I.D: srijeevadurai1@yahoo.co.in Mobile: +919886251852
On Nov 21, 2015, at 2:11 PM, srithar jeevadurai <srijeevadurai1@gmail.com> wrote:
It tried by adding ggrep path in PATH variable as first path even though I am getting same error message.
My doubt is that gmake command calls a script which uses grep however gun grep in solaris is grep.
This is Unix 101. $ cd $HOME $ mkdir bin $ cd bin $ ln -s /usr/swf/bin/ggrep grep $ export PATH=$HOME/bin:$PATH $ cd .. And then build FreeRADIUS as normal. Alan DeKok.
Hi Alan, thanks a lot for your reply. I am sorry if the qs was very basic (& stupid). once again thanks a lot. I will try those steps. On Nov 22, 2015 7:11 AM, "Alan DeKok" <aland@deployingradius.com> wrote:
On Nov 21, 2015, at 2:11 PM, srithar jeevadurai <srijeevadurai1@gmail.com> wrote:
It tried by adding ggrep path in PATH variable as first path even though I am getting same error message.
My doubt is that gmake command calls a script which uses grep however gun grep in solaris is grep.
This is Unix 101.
$ cd $HOME $ mkdir bin $ cd bin $ ln -s /usr/swf/bin/ggrep grep $ export PATH=$HOME/bin:$PATH $ cd ..
And then build FreeRADIUS as normal.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hi Alan, I am facing same error however this time grep command error message (usage statement) is different since it is GNU grep. Error while using solaris grep: /bin/sh: test: argument expected /bin/sh: s,#[\\t ]*ifdef[\\t ]*" $2 "$,#if "$3 ",g;s,#[\\t ]*ifndef[\\t ]*" $2 "$,#if !"$3 ",g;s,defined(" $2 ")," $3 ",g;"}: not found gmake: *** [src/include/autoconf.sed] Error 1 Usage: *grep -hblcnsviw pattern file* . . . Error while using GNU grep (on Solaris): gmake /bin/sh: test: argument expected /bin/sh: s,#[\\t ]*ifdef[\\t ]*" $2 "$,#if "$3 ",g;s,#[\\t ]*ifndef[\\t ]*" $2 "$,#if !"$3 ",g;s,defined(" $2 ")," $3 ",g;"}: not found gmake: *** [src/include/autoconf.sed] Error 1 *Usage: grep [OPTION]... PATTERN [FILE]...* Try 'grep --help' for more information. I could see following error message in the config.log file
grep error config.log conftest.c:32: error: `not' undeclared (first use in this function) conftest.c:32: error: (Each undeclared identifier is reported only once conftest.c:32: error: for each function it appears in.) conftest.c:32: error: syntax error before "clang" configure:4354: gcc -c -g -O2 -Wall -std=c99 -D_GNU_SOURCE -Werror -Qunused-arguments -foobar conftest.c >&5 cc1: error: unrecognized command line option "-foobar" conftest.c:34: error: size of array `off_t_is_large' is negative conftest.c:28: error: syntax error before "a" conftest.c:30: error: syntax error before "typedef" conftest.c:34: error: `bogus' undeclared (first use in this function) conftest.c:34: error: (Each undeclared identifier is reported only once conftest.c:34: error: for each function it appears in.) conftest.c:34: error: syntax error before "endian" configure:6122: gcc -c -g -O2 -Wall -std=c99 -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Werror -pthread conftest.c >&5 ld: fatal: symbol referencing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: symbol referencing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: file processing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: file processing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: file processing errors. No output written to conftest ld: fatal: file processing errors. No output written to conftest ld: fatal: file processing errors. No output written to conftest ld: fatal: file processing errors. No output written to conftest ld: fatal: file processing errors. No output written to conftest ld: fatal: file processing errors. No output written to conftest ld: fatal: file processing errors. No output written to conftest ld: fatal: file processing errors. No output written to conftest ld: fatal: file processing errors. No output written to conftest ld: fatal: file processing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: file processing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: file processing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: file processing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: file processing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: file processing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: file processing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: file processing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: file processing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: file processing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: file processing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: file processing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. /usr/include/stdbool.h:42:2: #error "Use of <stdbool.h> is valid only in a c99 compilation environment." conftest.c:127: error: syntax error before ')' token conftest.c:127: error: syntax error before ')' token conftest.c:127: error: syntax error before ')' token conftest.c:127: error: syntax error before ')' token conftest.c:106: error: `uint128_t' undeclared (first use in this function) conftest.c:106: error: (Each undeclared identifier is reported only once conftest.c:106: error: for each function it appears in.) conftest.c:102: error: syntax error before ')' token conftest.c:106: error: syntax error before ')' token conftest.c:103: error: syntax error before ')' token conftest.c:113: error: syntax error before ')' token conftest.c:105: error: `sig_t' undeclared (first use in this function) conftest.c:105: error: (Each undeclared identifier is reported only once conftest.c:105: error: for each function it appears in.) conftest.c:105: error: syntax error before "func" ld: fatal: symbol referencing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: symbol referencing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: symbol referencing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: symbol referencing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: symbol referencing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: symbol referencing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: symbol referencing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: symbol referencing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. conftest.c:133: error: void value not ignored as it ought to be ld: fatal: symbol referencing errors. No output written to conftest ld: fatal: symbol referencing errors. No output written to conftest /usr/ccs/bin/as: "/var/tmp//ccc8jvhw.s", line 164: error: statement syntax /usr/ccs/bin/as: "/var/tmp//ccc8jvhw.s", line 164: error: statement syntax /usr/ccs/bin/as: "/var/tmp//ccc8jvhw.s", line 164: error: statement syntax conftest.c:132: error: syntax error before "int" conftest.c:132: error: syntax error before "int" ld: fatal: symbol referencing errors. No output written to conftest | if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */ configure:10742: gcc -o conftest -g -O2 -Wall -std=c99 -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -DNDEBUG -Werror -isystem /opt/csw/include// conftest.c -lnsl -lresolv -lsocket -ldl -lposix4 -lpthread >&5 | if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */ ld: fatal: file processing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: file processing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: file processing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: symbol referencing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. ld: fatal: symbol referencing errors. No output written to conftest | /* Override any GCC internal prototype to avoid an error. conftest.c:146: error: too many arguments to function `gethostbyaddr_r' conftest.c:147: error: too many arguments to function `gethostbyname_r' conftest.c:151: error: too many arguments to function `ctime_r'
On Sun, Nov 22, 2015 at 11:33 AM, srithar jeevadurai < srijeevadurai1@gmail.com> wrote:
Hi Alan, thanks a lot for your reply. I am sorry if the qs was very basic (& stupid). once again thanks a lot. I will try those steps. On Nov 22, 2015 7:11 AM, "Alan DeKok" <aland@deployingradius.com> wrote:
On Nov 21, 2015, at 2:11 PM, srithar jeevadurai <srijeevadurai1@gmail.com> wrote:
It tried by adding ggrep path in PATH variable as first path even though I am getting same error message.
My doubt is that gmake command calls a script which uses grep however gun grep in solaris is grep.
This is Unix 101.
$ cd $HOME $ mkdir bin $ cd bin $ ln -s /usr/swf/bin/ggrep grep $ export PATH=$HOME/bin:$PATH $ cd ..
And then build FreeRADIUS as normal.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Regards, Srithar Durairaj Alternate Mail I.D: srijeevadurai1@yahoo.co.in Mobile: +919886251852
On Nov 23, 2015, at 2:35 AM, srithar jeevadurai <srijeevadurai1@gmail.com> wrote:
I am facing same error however this time grep command error message (usage statement) is different since it is GNU grep.
Error while using solaris grep:
Which you've posted about five times already. Posting it another time doesn't help.
Error while using GNU grep (on Solaris):
gmake /bin/sh: test: argument expected /bin/sh: s,#[\\t ]*ifdef[\\t ]*" $2 "$,#if "$3 ",g;s,#[\\t ]*ifndef[\\t ]*" $2 "$,#if !"$3 ",g;s,defined(" $2 ")," $3 ",g;"}: not found gmake: *** [src/include/autoconf.sed] Error 1 *Usage: grep [OPTION]... PATTERN [FILE]...* Try 'grep --help' for more information.
Install a recent version of GNU Grep. i.e. One that isn't 10 years old. We don't run Solaris, and we have no intention of running Solaris. The server expects a modern operating system, with modern tools. Alan DeKok.
On Oct 1, 2015, at 1:26 AM, srithar jeevadurai <srijeevadurai1@gmail.com> wrote:
We have customized module (lib) written for freeRadius version freeradius-server-2.2.0.
If it's useful to the larger community, please submit it back to the project. We can integrate it into the standard distribution.
The same code can be reused for latest version of free Radius (say 3.0.9).
No. We've changed a LOT of internal APIs and data structures.
Provided all basic message structures are remain same (in both versions of free Radius).
They're not.
We were having child hung issue at free Radius due to slow response from external module.
Fix your module so it doesn't break the server. There is NO OTHER SOLUTION.
once free Radius server (version 2.2.0) goes to child hung state then we have to restart the server (though the external module resumed after 1-2 minutes).
The module should return in milliseconds. If it doesn't, it will take the entire server down.
Is there any throttling done at Free Radius server (latest version 3.0.9)? so that when external module response is slow, Radius server would not fill the queue with incoming messages (from NAS).
That's not how RADIUS works. That's now how computers work. If the offered load is higher than the accepted load, there's really nothing you can do, but fix the systems so: a) the offered load is lower b) upgrade the system so it can accept more load.
i.e. taking messages into queue and run into child hung issue. It uses throttling to have control over pending request queue when there is a slowness in the external system and queue size increases (since NAS is flooding the radius server).
No amount of fixing FreeRADIUS will make your NAS send less traffic. No amount of fixing FreeRADIUS will make your module respond quickly. You MUST FIX YOUR MODULE. There is no other solution. Alan DeKok.
Hi Alan, Fajar Thanks a lot for your reply. I fix the external module however there is nothing wrong in the freeRadius. My intention is to find out any way to make FR server resume automatically instead of restarting it when such scenario happen (child hung) due to external module's slowness. On Thu, Oct 1, 2015 at 7:08 PM, Alan DeKok <aland@deployingradius.com> wrote:
On Oct 1, 2015, at 1:26 AM, srithar jeevadurai <srijeevadurai1@gmail.com> wrote:
We have customized module (lib) written for freeRadius version freeradius-server-2.2.0.
If it's useful to the larger community, please submit it back to the project. We can integrate it into the standard distribution.
The same code can be reused for latest version of free Radius (say 3.0.9).
No. We've changed a LOT of internal APIs and data structures.
Provided all basic message structures are remain same (in both versions of free Radius).
They're not.
We were having child hung issue at free Radius due to slow response from external module.
Fix your module so it doesn't break the server. There is NO OTHER SOLUTION.
once free Radius server (version 2.2.0) goes to child hung state then we have to restart the server (though the external module resumed after 1-2 minutes).
The module should return in milliseconds. If it doesn't, it will take the entire server down.
Is there any throttling done at Free Radius server (latest version 3.0.9)? so that when external module response is slow, Radius server would not fill the queue with incoming messages (from NAS).
That's not how RADIUS works. That's now how computers work.
If the offered load is higher than the accepted load, there's really nothing you can do, but fix the systems so:
a) the offered load is lower
b) upgrade the system so it can accept more load.
i.e. taking messages into queue and run into child hung issue. It uses throttling to have control over pending request queue when there is a slowness in the external system and queue size increases (since NAS is flooding the radius server).
No amount of fixing FreeRADIUS will make your NAS send less traffic.
No amount of fixing FreeRADIUS will make your module respond quickly.
You MUST FIX YOUR MODULE. There is no other solution.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Regards, Srithar Durairaj Alternate Mail I.D: srijeevadurai1@yahoo.co.in Mobile: +919886251852
Hi,
My intention is to find out any way to make FR server resume automatically instead of restarting it when such scenario happen (child hung) due to external module's slowness.
the server should recover on its own when the external source can finally keep up. if theres a bug thats causes a hang instead then that needs looking at... BUT it may have already been fixed since 2.2.0 which is *very * old ( seen its release date? :/ ) so try with 2.2.9 the next step is to find out why your external system is slow to respond. sort that out as when NAS devices send a request, they want an answer. alan
Why do people persist with old software when it takes seconds to see there's something newer to try!? :/
participants (8)
-
A.L.M.Buxey@lboro.ac.uk -
Alan DeKok -
Arran Cudbard-Bell -
Fajar A. Nugraha -
Matthew Newton -
Nick Lowe -
Sander Eerdekens -
srithar jeevadurai