Hi, i trying to install the Freeradius Server v3.0.11 on the Solaris 5.10 sparc i have installed latest gnu release of the grep and awk tools, i've also listed their paths on the first position of the PATH to set these as default tools Starting from a fresh installation, these are the steps: # ./configure --prefix=<install-dir> (this seems completed with minor warnings) # gmake CC jlibtool.c HEADER src/include/attributes.h /bin/sh: ATTRIBUTE: not found Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. /bin/sh: VALUE: not found Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. 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 [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. it seems related to the processing of the file src/include/all.mk i can't go ahead.... I have a very similar problem with the v3.0.10, while no problems with v2.2.0 & v2.2.9 in the same machine (All works fine on Linux) any advice? Thanks Marco
On Jan 27, 2016, at 9:45 AM, Marco <marco.xp@tiscali.it> wrote:
i trying to install the Freeradius Server v3.0.11 on the Solaris 5.10 spare
It worked when I tried it.
i have installed latest gnu release of the grep and awk tools, i've also listed their paths on the first position of the PATH to set these as default tools
Are you sure? What does it say when you do: $ which grep
Starting from a fresh installation, these are the steps:
# ./configure --prefix=<install-dir> (this seems completed with minor warnings)
# gmake CC jlibtool.c HEADER src/include/attributes.h /bin/sh: ATTRIBUTE: not found Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information.
That looks like it's using the Solaris grep.
/bin/sh: VALUE: not found Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. 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
And the Solaris sed.
any advice?
Be sure you're using the correct grep / sed. I tried the Solaris fixes before committing them. So it *does* work. Perhaps the next step is to look for a Solaris "grep", and refuse to run if so. Alan DeKok.
Hi Alan,
Are you sure? What does it say when you do: yes i'm sure...
#which grep /home/imsuser/bin/grep [imsuser@raddev freeradius-server-3.0.10]# /home/imsuser/bin/grep -V /home/imsuser/bin/grep (GNU grep) 2.22 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Mike Haertel and others, see <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>. where /home/imsuser/bin is the custom path of the gnu grep Regards, Marco On 27/01/2016 15:52, Alan DeKok wrote:
On Jan 27, 2016, at 9:45 AM, Marco <marco.xp@tiscali.it> wrote:
i trying to install the Freeradius Server v3.0.11 on the Solaris 5.10 spare It worked when I tried it.
i have installed latest gnu release of the grep and awk tools, i've also listed their paths on the first position of the PATH to set these as default tools Are you sure? What does it say when you do:
$ which grep
Starting from a fresh installation, these are the steps:
# ./configure --prefix=<install-dir> (this seems completed with minor warnings)
# gmake CC jlibtool.c HEADER src/include/attributes.h /bin/sh: ATTRIBUTE: not found Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. That looks like it's using the Solaris grep.
/bin/sh: VALUE: not found Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. 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 And the Solaris sed.
any advice? Be sure you're using the correct grep / sed.
I tried the Solaris fixes before committing them. So it *does* work.
Perhaps the next step is to look for a Solaris "grep", and refuse to run if so.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Are you sure? What does it say when you do: yes i'm sure...
#which grep /home/imsuser/bin/grep
[imsuser@raddev freeradius-server-3.0.10]# /home/imsuser/bin/grep -V /home/imsuser/bin/grep (GNU grep) 2.22
where /home/imsuser/bin is the custom path of the gnu grep
For me, it works with the standard grep and sed from solaris in /usr/bin. This is on Solaris 11 on SPARC. My path looks like this: PATH=".:/usr/bin:/usr/sbin:/usr/local/bin_x86:/usr/local/bin:/usr/sfw/bin:/opt/solarisstudio12.4/bin:/usr/local/bin" Does that work? Otherwise, I can try on a Solaris 10 SPARC. Kind regards, Sander
to be sure, i renamed the standard grep (just to avoid any possible use) and copied the new one in the /usr/bin ... but i've the same error Best Regards, Marco On 27/01/2016 16:35, Sander Eerdekens wrote:
Are you sure? What does it say when you do: yes i'm sure...
#which grep /home/imsuser/bin/grep
[imsuser@raddev freeradius-server-3.0.10]# /home/imsuser/bin/grep -V /home/imsuser/bin/grep (GNU grep) 2.22
where /home/imsuser/bin is the custom path of the gnu grep For me, it works with the standard grep and sed from solaris in /usr/bin. This is on Solaris 11 on SPARC. My path looks like this: PATH=".:/usr/bin:/usr/sbin:/usr/local/bin_x86:/usr/local/bin:/usr/sfw/bin:/opt/solarisstudio12.4/bin:/usr/local/bin"
Does that work? Otherwise, I can try on a Solaris 10 SPARC.
Kind regards, Sander
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hi Sander, i tried again with the standard (Solaris 5.10) grep the error is more or less the same, it change only in the grep usage message # gmake CC jlibtool.c 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/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 . . . Regards Marco On 27/01/2016 16:35, Sander Eerdekens wrote:
Are you sure? What does it say when you do: yes i'm sure...
#which grep /home/imsuser/bin/grep
[imsuser@raddev freeradius-server-3.0.10]# /home/imsuser/bin/grep -V /home/imsuser/bin/grep (GNU grep) 2.22
where /home/imsuser/bin is the custom path of the gnu grep For me, it works with the standard grep and sed from solaris in /usr/bin. This is on Solaris 11 on SPARC. My path looks like this: PATH=".:/usr/bin:/usr/sbin:/usr/local/bin_x86:/usr/local/bin:/usr/sfw/bin:/opt/solarisstudio12.4/bin:/usr/local/bin"
Does that work? Otherwise, I can try on a Solaris 10 SPARC.
Kind regards, Sander
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hi Sander, i tried again with the standard (Solaris 5.10) grep
the error is more or less the same, it change only in the grep usage message
# gmake CC jlibtool.c 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/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 . . .
I haven't got it working on a Solaris 10 yet, But during compile, it is trying to find the right grep for me: checking for grep that handles long lines and -e... /usr/xpg4/bin/grep checking for egrep... /usr/xpg4/bin/grep -E Can you chek what that says for you? Perhaps you can use the above grep?
Hi Sander, thanks for you reply! i've modified the PATH in order to use the "grep" you suggested... to be sure what's the "grep" now used... #cat config.log | grep "grep" configure:3796: checking for grep that handles long lines and -e configure:3854: result: /usr/xpg4/bin/grep configure:3859: checking for egrep configure:3921: result: /usr/xpg4/bin/grep -E configure:5763: checking for grep configure:5793: result: /usr/xpg4/bin/grep ac_cv_path_EGREP='/usr/xpg4/bin/grep -E' ac_cv_path_GREP=/usr/xpg4/bin/grep EGREP='/usr/xpg4/bin/grep -E' GREP='/usr/xpg4/bin/grep' but i still having errors on the gmake # gmake CC jlibtool.c HEADER src/include/attributes.h /bin/sh: ATTRIBUTE: not found Usage: grep [-c|-l|-q] [-bhinsvwx] pattern_list [file ...] grep [-c|-l|-q] [-bhinsvwx] [-e pattern_list]... [-f pattern_file]... [file...] grep -E [-c|-l|-q] [-bhinsvx] pattern_list [file ...] grep -E [-c|-l|-q] [-bhinsvx] [-e pattern_list]... [-f pattern_file]... [file...] grep -F [-c|-l|-q] [-bhinsvx] pattern_list [file ...] grep -F [-c|-l|-q] [-bhinsvx] [-e pattern_list]... [-f pattern_file]... [file...] /bin/sh: VALUE: not found Usage: grep [-c|-l|-q] [-bhinsvwx] pattern_list [file ...] grep [-c|-l|-q] [-bhinsvwx] [-e pattern_list]... [-f pattern_file]... [file...] grep -E [-c|-l|-q] [-bhinsvx] pattern_list [file ...] grep -E [-c|-l|-q] [-bhinsvx] [-e pattern_list]... [-f pattern_file]... [file...] grep -F [-c|-l|-q] [-bhinsvx] pattern_list [file ...] grep -F [-c|-l|-q] [-bhinsvx] [-e pattern_list]... [-f pattern_file]... [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 [-c|-l|-q] [-bhinsvwx] pattern_list [file ...] grep [-c|-l|-q] [-bhinsvwx] [-e pattern_list]... [-f pattern_file]... [file...] grep -E [-c|-l|-q] [-bhinsvx] pattern_list [file ...] grep -E [-c|-l|-q] [-bhinsvx] [-e pattern_list]... [-f pattern_file]... [file...] grep -F [-c|-l|-q] [-bhinsvx] pattern_list [file ...] grep -F [-c|-l|-q] [-bhinsvx] [-e pattern_list]... [-f pattern_file]... [file...] Can you see the output of the gmake is that same that i had when i've used other grep [/usr/bin/grep and the GNU grep v2.22 in the custom path ] of course for each grep i've used the output shows a different Usage message... That lead me to suppose that the problem do not regards the grep but the arguments passed. I'm not expert on make file, but looking at error messages: /bin/sh: ATTRIBUTE: not found /bin/sh: VALUE: not found /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 they are in some way linked to the ./src/include/all.mk #cat src/include/all.mk | grep VALUE @grep -- 'Auth-Type' $< | grep ^VALUE | awk '{print "PW_"$$2 "_" $$3 " " $$4 }' | tr '[:lower:]' '[:upper:]' | tr -- - _ | sed 's/^/#define /' >> $@ # cat src/include/all.mk | grep ATTRIBUTE @grep ^ATTRIBUTE $< | awk '{print "PW_"$$2 " " $$3 }' | tr '[:lower:]' '[:upper:]' | tr -- - _ | sed 's/^/#define /' >> $@ @grep ^ATTRIBUTE $< | awk '{print "PW_"$$2 " " $$3 } ' | tr '[:lower:]' '[:upper:]' | tr -- - _ | sed 's/^/#define /' >> $@ # cat src/include/all.mk @grep ^#define $< | sed 's,/\*\*/,1,;' | awk '{print "'\ 's,#[\\t ]*ifdef[\\t ]*" $$2 "$$,#if "$$3 ",g;'\ 's,#[\\t ]*ifndef[\\t ]*" $$2 "$$,#if !"$$3 ",g;'\ 's,defined(" $$2 ")," $$3 ",g;"}' > $@ always we have some command with pipe with sed & awk ( and tr ) may be some thing is wrong into one or both, unfortunately i can't understand which files are involved in order to replicate the issue and identify exactly which part fails the config.log does not show which sed and awk are using, but i suppose they are # which sed /usr/xpg4/bin/sed # which awk /usr/xpg4/bin/awk the next week i will try the installation into a new 5.11 Solaris Virtual box Best Regards Marco On 29/01/2016 15:42, Sander Eerdekens wrote:
Hi Sander, i tried again with the standard (Solaris 5.10) grep
the error is more or less the same, it change only in the grep usage message
# gmake CC jlibtool.c 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/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 . . .
I haven't got it working on a Solaris 10 yet, But during compile, it is trying to find the right grep for me:
checking for grep that handles long lines and -e... /usr/xpg4/bin/grep checking for egrep... /usr/xpg4/bin/grep -E
Can you chek what that says for you? Perhaps you can use the above grep?
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hi Sander, thanks for you reply!
i've modified the PATH in order to use the "grep" you suggested...
but i still having errors on the gmake That lead me to suppose that the problem do not regards the grep but the arguments passed. I'm not expert on make file, but looking at error messages:
always we have some command with pipe with sed & awk ( and tr ) may be some thing is wrong into one or both, unfortunately i can't understand which files are involved in order to replicate the issue and identify exactly which part fails
the config.log does not show which sed and awk are using, but i suppose they are # which sed /usr/xpg4/bin/sed # which awk /usr/xpg4/bin/awk
Try This: mv /usr/bin/awk /usr/bin/awk_old ln -s /usr/bin/nawk /usr/bin/awk Had to do this to get things working on the solaris 11 box. The default awk is awful :) I added this to the solaris wiki recently: http://wiki.freeradius.org/building/Solaris#building-installing_method-3 See http://www.shelldorado.com/articles/awkcompat.html#os68 And http://awk.freeshell.org/oawk for more references
participants (3)
-
Alan DeKok -
Marco -
Sander Eerdekens