[383] in Coldmud discussion meeting

root meeting help first first in chain previous in chain previous next next in chain last in chain last

Re: Compiling Cold on BSDI

daemon@ATHENA.MIT.EDU (Thu Jul 21 11:38:02 1994 )

To: deforest@netcom.com (Robert de Forest)
Cc: puff@netcom.com, coldstuff@MIT.EDU
In-Reply-To: Your message of Thu, 21 Jul 94 04:59:44 -0700.
Date: Thu, 21 Jul 94 11:28:05 EDT
From: Greg Hudson <ghudson@MIT.EDU>

> In file included from /usr/include/ctype.h:50, from data.c:6:
> /usr/include/runetype.h:59: syntax error before `rune_t'
> /usr/include/runetype.h:74: syntax error before `rune_t'
> /usr/include/runetype.h:77: syntax error before `char'
> /usr/include/runetype.h:81: syntax error before `rune_t'

Interesting.  Without being able to look at runetype.h, I can't say
what the problem is with any certainty, but it looks like runetype.h
is expecting some types to be defined which aren't.

Try adding "#include <sys/types.h>" at the top of data.c and any other
files which cause you trouble.

> Incidentally, while the README recomends replaceing memcopy calls, I
> recomend just using bcopy and swapping the from and too args.

This is correct.  You can simply change:

#define MEMMOVE(a, b, l)	memmove(a, b, (l) * sizeof(*(a)))


#define MEMMOVE(a, b, l)	bcopy(b, a, (l) * sizeof(*(a)))

and leave the code alone.  The README should be changed to reflect
this, since it makes compiling under SunOS 4.x much easier.