Hi all,

I'm getting an error in run_check.sh on Solaris.


MULTIBYTE=;export MULTIBYTE; \
/bin/sh ./run_check.sh solaris_sparc
awk: syntax error near line 1
awk: illegal statement near line 1
awk: syntax error near line 2
awk: illegal statement near line 2
=============== Create ./tmp_check directory           ================
.
.


This is due to 2 problems.

1) The awk script is broken over 2 lines.
2) Solaris's awk does not seem to understand REs in split(). (nawk's OK)

1 is easy to fix, 2 is tricky - to remain portable.

Keith.



Wed, 24 Nov 1999 23:37:43 +0000 (GMT)
Keith Parks <emkxp01@mtcc.demon.co.uk>
run_check problem
>
> Hi all,
>
> I'm getting an error in run_check.sh on Solaris.
>
>
> MULTIBYTE=;export MULTIBYTE; \
> /bin/sh ./run_check.sh solaris_sparc
> awk: syntax error near line 1
> .
> .
>
> 1) The awk script is broken over 2 lines.
> 2) Solaris's awk does not seem to understand REs in split(). (nawk's OK)

    Argh  -  now  I remember why we tried to avoid awk as much as
    possible.  Why do the sun guy's ship such a crippled  version
    for  a  good  old UNIX V7 tool? I rememver that MINIX already
    had a better one! DAMNED BLOODY MOTHERF...

    And I discovered  another  problem  with  it  too.  The  path
    replacements  in  various  scripts  (especially those loading
    shared objects at runtime) need to use the ones from the temp
    installation. But that's surely hackable.


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#========================================= wieck@debis.com (Jan Wieck) #



Thu, 25 Nov 1999 02:47:09 +0100 (MET)
wieck@debis.com (Jan Wieck)
Re: [HACKERS] run_check problem
Keith Parks <emkxp01@mtcc.demon.co.uk> writes:
> This is due to 2 problems.
> 1) The awk script is broken over 2 lines.
> 2) Solaris's awk does not seem to understand REs in split(). (nawk's OK)

I don't think so --- the exact same split() construct is there in the
old regress.sh test driver, same as it ever was.  I can believe the line
break is a problem, but if there's another problem then you need to
keep digging.

Comparing the two scripts, I wonder if Jan broke it by adding '/bin/sh'
to the invocation of config.guess.  Doesn't seem very likely, but...

			regards, tom lane

Thu, 25 Nov 1999 00:43:01 -0500
Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] run_check problem 