On Tue, 23 Jan 2007, Bruce Korb wrote:

> Hugh Sasse wrote:
> > So, at present I believe that configure is looking for a grep with tighter
> > constraints that provided by the solaris tools:
> > bash-2.05$ which grep
> > /bin/grep
> > bash-2.05$ which egrep
> > /bin/egrep
> > bash-2.05$
> 
> For reasons I am unable to fathom, "egrep" is mapping to /usr/local/bin/egrep
> which is a wrapper that invokes:   grep -E ${1+"$@"}

So you can see which are wrappers and which not, ls followed by file:

-r-xr-xr-x   1 root     bin        26588 Apr  6  2002 /bin/egrep
-r-xr-xr-x   1 root     bin        12004 Apr  6  2002 /bin/fgrep
-r-xr-xr-x   1 root     bin        10232 Apr  6  2002 /bin/grep
-r-xr-xr-x   1 root     bin         1370 Mar  2  2002 /bin/gzgrep
-r-xr-xr-x   1 root     bin        14768 Apr  7  2002 /bin/nisgrep
-r-xr-xr-x   2 root     bin        14952 Apr  7  2002 /bin/pgrep
-rwxr-xr-x   3 root     other       4100 Jan 15 17:55 /bin/zegrep
-rwxr-xr-x   3 root     other       4100 Jan 15 17:55 /bin/zfgrep
-rwxr-xr-x   3 root     other       4100 Jan 15 17:55 /bin/zgrep

-rwxr-xr-x   1 root     other     312136 Jul 13  2005 /usr/local/bin/agrep
lrwxrwxrwx   1 root     other         21 Jan  8 14:56 /usr/local/bin/bzegrep -> 
/usr/local/bin/bzgrep
lrwxrwxrwx   1 root     other         21 Jan  8 14:56 /usr/local/bin/bzfgrep -> 
/usr/local/bin/bzgrep
-rwxr-xr-x   1 root     other       1677 Jan  8 14:56 /usr/local/bin/bzgrep
-rwxr-xr-x   1 root     other         33 Nov 29 12:17 /usr/local/bin/egrep
-rwxr-xr-x   1 root     other       3676 Mar 25  2004 /usr/local/bin/exigrep
-rwxr-xr-x   1 root     other         33 Nov 29 12:17 /usr/local/bin/fgrep
lrwxrwxrwx   1 root     other          4 Nov 29 12:20 /usr/local/bin/ggrep -> 
grep
-rwxr-xr-x   1 root     other     282411 Nov 29 12:17 /usr/local/bin/grep
-rwxr-xr-x   1 root     other     175636 Apr 12  2005 /usr/local/bin/grepjar
-rwxr-xr-x   1 root     other     219832 Nov 30 13:22 /usr/local/bin/msggrep
-rwxr-xr-x   1 root     other       1669 Jul 13  2005 /usr/local/bin/nmzgrep
-rwxr-xr-x   1 root     other       1188 Jul 25  2006 /usr/local/bin/zipgrep
/bin/egrep:     ELF 32-bit MSB executable SPARC Version 1, dynamically linked, 
stripped
/bin/fgrep:     ELF 32-bit MSB executable SPARC Version 1, dynamically linked, 
stripped
/bin/grep:      ELF 32-bit MSB executable SPARC Version 1, dynamically linked, 
stripped
/bin/gzgrep:    executable shell script
/bin/nisgrep:   ELF 32-bit MSB executable SPARC Version 1, dynamically linked, 
stripped
/bin/pgrep:     ELF 32-bit MSB executable SPARC Version 1, dynamically linked, 
stripped
/bin/zegrep:    executable /bin/bash script
/bin/zfgrep:    executable /bin/bash script
/bin/zgrep:     executable /bin/bash script

/usr/local/bin/agrep:   ELF 32-bit MSB executable SPARC Version 1, dynamically 
linked, not stripped
/usr/local/bin/bzegrep: executable shell script
/usr/local/bin/bzfgrep: executable shell script
/usr/local/bin/bzgrep:  executable shell script
/usr/local/bin/egrep:   executable shell script
/usr/local/bin/exigrep: executable /usr/bin/perl script
/usr/local/bin/fgrep:   executable shell script
/usr/local/bin/ggrep:   ELF 32-bit MSB executable SPARC Version 1, dynamically 
linked, not stripped
/usr/local/bin/grep:    ELF 32-bit MSB executable SPARC Version 1, dynamically 
linked, not stripped
/usr/local/bin/grepjar: ELF 32-bit MSB executable SPARC32PLUS Version 1, V8+ 
Required, dynamically linked, not stripped
/usr/local/bin/msggrep: ELF 32-bit MSB executable SPARC Version 1, dynamically 
linked, not stripped
/usr/local/bin/nmzgrep: executable /bin/perl script
/usr/local/bin/zipgrep: executable shell script

> If either /usr/local/bin was in the PATH before /bin or the

It was before I changed it.  I forget why I changed it now (to avoid
the symlinked grep from  the GNU install I think).

#!/bin/ksh

export SHELL=/bin/ksh
export CONFIG_SHELL=/bin/ksh
export 
PATH=/usr/local/bin:/bin:/usr/bin:/progs/SUNWspro/bin:/usr/ucb:/usr/sbin:/usr/ccs/bin:/etc
VERSION=5.8.8

cd /scratch/hgs/autogen-${VERSION}
gmake clean
./configure && gmake && gmake check;

Gives:
        [...]
PASS: usage.test
PASS: vers.test
===================
All 20 tests passed
===================
        [...]
PASS: string.test
PASS: strtable.test
===================
All 36 tests passed
===================
        [...]
cd . ; chmod +x *.test
PASS: cfg.test
PASS: index.test
PASS: option.test
PASS: subblock.test
==================
All 4 tests passed
==================
        [...]
PASS: convert.test
==================
All 1 tests passed
==================


So I think all is well now.  Thank you.

[It would be nice to have the test results aggregated at the end,
which might ease reporting problems.]
> invocation was:  /usr/local/bin/grep -E ${1+"$@"}
> then all would be fine.  So, I need to modify all usages of egrep and fgrep
> to utilize ${EGREP} and ${FGREP} and use the AC_PROG_EGREP/FGREP things
> you pointed out below.

OK. I don't know when they came into being (which version of autoconf)
but I think they have been around for a while now.
> 
> I build on Solaris without too much trouble, but I think the GNU
> tools are not installed on a search path or they use a "g" prefix
> on the standard utility names.  Something.  I'm under some time
> pressure on my day job, so it'll likely be a week or two before I
> can bump out the hacked EGREP/FGREP stuff.  Sorry. - Bruce

Thank you,
        Hugh

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Autogen-users mailing list
Autogen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/autogen-users

Reply via email to