Organization: Swedish Institute of Space Physics, Uppsala, Sweden
Keywords: emacs a.out unexec
Lines: 45
In article <2799@nlsun1.oracle.nl> rlyle@nl.oracle.com (The Wizard of Ozje - Garf) writes:
>
>OK, it's another GNU Emacs installation thing. This might be quite interesting:
>
>I have a HP9000/827.
>I do not have gcc.
>I have v18.57 release code fresh from the oven.
>I do not have any path releases.
>
>It doesn't work using s-hpux.h and m-hp9000s800. It coughs in two places:
>
> 1) With an include of the file #include <errnet.h> within src/fileio.c
> 2) In src/unexhp9k800.c it gives me:
>cc: "unexhp9k800.c", line 88: error 1539: Cannot do arithmetic with pointers to objects of unknown size.
>
>Now, I can make it compile via judicious (unsigned int) casting, but the executable core dumps with the slightest hint of you asking it to run. I've been
>through most of the a.out.h and related files in an effort to understand exactly
>what the unexec call tries to do. Hmmm.
>
>HP linker is new to me, and I don't like what I've seen so far.
>
>Any ideas, anyone? Have YOU seen THIS bug BEFORE? (Ask your dog, all opinions valued)
>
Yes, I've seen this before. I think all this is fixed in emacs 18.58.
But if you don't wan't that you can get by with
1) Just remive the include <errnet.h> or surround it with
#ifndef __hpux
#include <errnet.h>
#endif
2) the return value of sbrk has changed to void*. You need to cast
it to a (char *).
I did this mod's once upon a time, but I think there was additional problems