Rainer Orth <r...@cebitec.uni-bielefeld.de> writes: > There's one problem left: with Solaris nawk, building libcalls.go fails > (from Solaris 8 to 11 inclusive): > > nawk -f /vol/gcc/src/hg/trunk/local/libgo/go/syscall/mksyscall.awk ${files} > > li > bcalls.go.tmp > nawk: syntax error at source line 47 > context is > if (match($0, "//sys(nb)?[ ]*([a-zA-Z0-9_]+)\\(([^()]*)\\) >>> > *(\ > \(([^()]+)\\))?", <<< gosig) == 0) { > nawk: illegal statement at source line 47 > nawk: syntax error at source line 58 > missing } > make[4]: *** [s-libcalls] Error 2 > > I don't yet see what's wrong with the pattern, and gawk does accept it.
Hmmm, I don't have a copy of nawk. Is it possible that it doesn't like " *" == <space>*? You could try "[ ]*". Ian