[382] 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 08:04:15 1994 )

From: deforest@netcom.com (Robert de Forest)
To: puff@netcom.com (Steven J. Owens)
Date: Thu, 21 Jul 1994 04:59:44 -0700 (PDT)
Cc: coldstuff@MIT.EDU
In-Reply-To: <199407210612.XAA13147@netcom3.netcom.com> from "Steven J. Owens" at Jul 20, 94 11:12:03 pm

> Hokay, I tried the macho route and quickly caved in to reveal the
> whimpering code-craven that I truly am.  Has anybody gone this route
> and figured out The Answers to installing Cold on BSDI?  

I've only ever tried SunOS and Linux. I was gonna try Irix but the machine
 I was gonna try it on didn't have bison.

> I made all of the recommended edits for BSD 4.3 and SunOS, but I get
> the following results when I run the make.  Is this a flaw in the BSDI
> include files, or is Cold neglecting to include a proper file for
> (Yes, yes, I know, it's not Cold's fault, BSDI is breaking some sort
> of rule and it's not posix-complaint or whatever, but that still
> leaves me between a rock and a hard place).
> Anxiously awaiting your insight...
>                                    Puff
> ------------------------------------------------------------
> gcc -Wall -O -fomit-frame-pointer -c data.c
> 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'
> /usr/include/ctype.h: In function toupper:
> In file included from data.c:6:
> /usr/include/ctype.h:167: structure has no member named `mapupper'
> /usr/include/ctype.h:167: subscripted value is neither array nor pointer
> /usr/include/ctype.h: In function tolower:
> /usr/include/ctype.h:174: structure has no member named `maplower'
> /usr/include/ctype.h:174: subscripted value is neither array nor pointer
> data.c: In function data_cmp:
> data.c:83: warning: implicit declaration of function `bcmp'
> *** Error code 1
> Stop.
> ------------------------------------------------------------

Syntax errors suggest something more fundamental to me. I usualy get warnings
 about pointers and things when I make under SunOS, but this looks way

The only error I know anything about is the implicit declaration of bcmp. This
 (as you will no doubt recall) is the function used in place of memcmp for
 SunOS. I don't know much about BSD or SunOS, much less BSDI, but if you know
 of a system routine which behaves the way memcmp is supposed to, use it
 instead. If you know where it's declared, include that.

I doubt that I'm telling you anythign you hadn't thought of, but I'm often
 surprised at what people don't know. :)

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


Meditate with no thought of gain.
Expect no ambitions to be fulfulled;
Only then will the inner force manifest.