HELP!!! Can't Compile Netnews Code
Guy Harris
guy at rlgvax.UUCP
Mon Jan 21 07:39:27 AEST 1985
> I am having problems getting the Netnews software up and running
> on my system. I am using a Zilog System 8000. The problem
> code appears to be located in 'readr.c', 'visual.c' and 'expire.c'
> this prevents me from being able to compile the critical
> program 'readnews'. Apparently, there aren't very many
> people out their running System III, and my newsfeed group,
> 'philabs' hasn't been able to help me. They've never seen
> the problems I'm having before.
>
> There is an include file 'setjmp.h' which my system doesn't
> have. Following is a typical error.
This problem has nothing whatsoever to do with System III. It has to
do with the fact that the calling sequence used by Zilog makes "setjmp/longjmp"
have problems with register variables when used in the routine that calls
"setjmp". They renamed "setjmp" to "setret" and "longjmp" to "longret";
you have to include "setret.h" (this is as of a couple of years ago; the
names may have changed).
If I remember the problem correctly, though, the same problem exists in all
other machines where the calling sequence 1) saves a variable number of
registers on the stack and 2) doesn't save anything on the stack indicating
which registers were saved. The calling sequence used by most 68000 machines
has the same problem (why waste cycles pushing a mask onto the stack when
it wouldn't be used 99.44% of the time?). As such, I don't know whether
Zilog really should have bothered fiddling "setjmp".
(By the way, this probably should have been posted to net.news.b, not
net.unix-wizards, as it's a problem with "news" not UNIX.)
Guy Harris
{seismo,ihnp4,allegra}!rlgvax!guy
More information about the Comp.unix.wizards
mailing list