[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: Building 1.6.8 under Irix 6.5.2



On Wed, Jan 20, 1999 at 09:45:10AM +0100, Denis Barbier wrote:
> On Tue, 19 Jan 1999, Steve Sizemore wrote:
> 
> [...]
> > In order to build this release on SGI Irix 6.5.2, I had to do the
> > following -
> > 
> > 1. Edit configure, and change the shell to bsh.  (#!/sbin/bsh)
> >     Apparently, the default shell is now ksh, and /bin/sh is
> >     actually ksh. /sbin/bsh is the bourne shell.
> 
> ksh should be sh-compatible. On HP-UX there is the same problem, some
> configure scripts fail because of a buffer overflow (if i remember).

Yes, it should be, but it is not. Perhaps this is a bug in SGI's ksh,
but it only shows up in configuring wml.

> One has to type ``ksh configure'' instead of ``./configure''.

This gives exactly the same failure as executing "./configure" or "sh
configure". As I said, the workaround is to use bsh.

> Could you send me the error message via wmb?

Sure, it's on it's way...

> > 2. This allowed configure to do it's job, but make still fails
> >     because of compiler complaints in wml_backend/p2_mhc/libutils/wisper.
> No idea on this one. Do not know SGI.

I don't think this is an SGI problem, but as I said, I'm not that much
of a C programmer. The default option for cc is "-ansi". When
compiling with the default, or with "-xansi" (ansi with extensions),
the compilation fails. The way to get it to succeed is to use "-cckr"
which accepts K&R C, non-ansi. To me, this suggests that the code is not
ansi compliant. Here are the errors reported...

make[4]: Entering directory `/src/wml/wml-1.6.8/wml_backend/p2_mhc/libutils/wisper'
cc -O   -I.. -I../.. -I../libutils/regex   -c wisp.c -o wisp.o
"wisp.c", line 167: error(1133): expression must be a modifiable lvalue
    CAR (object) = car;
    ^

"wisp.c", line 168: error(1133): expression must be a modifiable lvalue
    CDR (object) = cdr;
    ^

"wisp.c", line 488: error(1133): expression must be a modifiable lvalue
  	      CAR (new_list) = val_read;
  	      ^

"wisp.c", line 489: error(1133): expression must be a modifiable lvalue
  	      CDR (new_list) = make_cons (next_val, read_list ());
  	      ^

"wisp.c", line 501: error(1133): expression must be a modifiable lvalue
        CAR (list) = val_read;
        ^

"wisp.c", line 502: error(1133): expression must be a modifiable lvalue
        CDR (list) = read_list ();
        ^

"wisp.c", line 784: error(1133): expression must be a modifiable lvalue
  	  CDR (last_cons) = object; 
  	  ^

"wisp.c", line 790: warning(1116): non-void function "wisp_append" (declared
          at line 771) should return a value
  }
  ^

"wisp.c", line 814: error(1133): expression must be a modifiable lvalue
        CAR (copy) = copy_object (CAR (object));
        ^

"wisp.c", line 815: error(1133): expression must be a modifiable lvalue
        CDR (copy) = copy_object (CDR (object));
        ^

9 errors detected in the compilation of "wisp.c".
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com