Subject: Re: semi-random pmax file questions
To: Aaron J. Grier <agrier@poofy.goof.com>
From: Bill Studenmund <skippy@macro.stanford.edu>
List: port-pmax
Date: 02/04/1998 17:45:13
On Wed, 4 Feb 1998, Aaron J. Grier wrote:

> 
> $ cat hello.c
> #include <stdio.h>
> 
> main() {
>         printf("hello world!\n");
> }
> $ gcc hello.c -o hello
> $ file hello
> hello: ELF 32-bit LSB executable, MIPS R3000_BE - invalid byte order, version 1
> $
> 
> Is this normal?  invalid byte order?

I saw the same thing with a NetBSD ELF kernel. I'd love to have it
explained.

> I'm also having a heck of a time getting bash to run...  it compiles, but
> upon execution bombs out with "free: Called with unallocated block
> argument".  I know it's probably un-BSD of me, but I don't particularly
> like csh syntax.  I WANT BASH.  :)

I ran into something similar with tcsh, though the free didn't cause a
crash. I think/bet the problem's that bash is defining its own malloc. Try
either configuring it to use NetBSD's malloc, or compiling it staticly (so
everything will use its malloc).

Take care,

Bill