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