🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.bugs
Article #756

problem with "craps" on SCO Xenix

#756
From: Jay Mathew Libove
Date: Wed, 27 May 1987 03:28
94 lines
4321 bytes
[ I'm back, with another exciting announcement on the troubles of SCO... ]

Hello - recently (within the last month I think) a craps game was posted to
one of the sources groups. I compiled this and ran it, no trouble, on a
Sun-3/52 running Sun 3.0 covered by BSD 4.2 on the Carnegie Mellon University
Andrew network, so I got really adventurous and tried to compile it at home
on my little SCO Xenix SysV/286 2.1.3 PCs Limited AT... no dice. The following
is the result of that ill-fated compile, followed by the Makefile I am using.
Any suggestions on getting this little monster to work will be greatly 
appreciated!

===== output of make =====
	cc -O -DXENIX -c makeb.c
makeb.c
makeb.c(92) : error 2: out of macro actual parameter space
                       dice[1]=(int)getbet(1);
                                        if(dice[1]==-1||dice[1]>6) continue;
                                        continue;
                                case FIELD:
                                        if(mbet(i,&field)==ESC) continue;
                                        pr_bets();
                                        update(0);
                                        continue;
                                case ASEVEN:
                                        if(mbet(i,&aseven)==ESC) continue;
                                        pr_bets();
                                        update(0);
                                        continue;
                                case EEYO:)(92) :                                  continue;
                                case ASEVEN:
                                        if(mbet(i,&aseven)==ESC) continue;
                                        pr_bets();
                                        update(0);
                                        continue;
                                case EEYO:                                 continue;
                                case ASEVEN:
                                        if(mbet(i,&aseven)==ESC) continue;
                                        pr_bets();
                                        update(0);
                                        continue;
                                case EEYO:
Stack Overflow
Compiler error : Segmentation violation
*** Error code 11

Stop.

===== Makefile =====

SOURCES =       main.c dont.c etc.c help.c makeb.c pass.c pay.c prints.c \
                props.c subs.c final.c random.c
OBJECTS =       main.o dont.o etc.o help.o makeb.o pass.o pay.o prints.o \
                props.o subs.o final.o random.o
#
# Use the following defines:
#
#       -DBSD42         for Berkeley Unix 4.2
#       -DBSD29         for Berkeley Unix 2.9
#       -DSYSV          for System V machines
#       -DXENIX         for Xenix Machines
#       -DSCORES        to maintain a high score list
#
CFLAGS  =       -O -DXENIX

#
# if you are using BSD29, then add the -i option to the cc line
#
craps:  ${OBJECTS}
	cc ${CFLAGS} -s -o craps ${OBJECTS} -lcurses -ltermlib -lm

main.o:         main.c types.h
dont.o:         dont.c types.h ext.h
etc.o:          etc.c types.h ext.h
help.o:         help.c types.h ext.h
makeb.o:        makeb.c types.h ext.h
pass.o:         pass.c types.h ext.h
pay.o:          pay.c types.h ext.h
prints.o:       prints.c types.h ext.h
props.o:        props.c types.h ext.h
subs.o:         subs.c types.h ext.h
final.o:        final.c types.h ext.h
random.o:       random.c types.h ext.h

clean:
	rm -f craps *.o

===== end of message =====

Jay Libove
Arpa:   jl42@andrew.cmu.edu	Bitnet: jl42@drycas.bitnet
UUCP:   ...!{pitt | bellcore} !darth!libove!libove

Hey! I know who -you- are! You're another one of those crazy people who uses
SCO Xenix!
Technical Details
Message-ID: <8UiZpJy00WAEArk05x@andrew.cmu.edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rochester!pt.cs.cmu.edu!andrew.cmu.edu!jl42+

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rochester!pt.cs.cmu.edu!andrew.cmu.edu!jl42+
From: jl42+@andrew.cmu.edu (Jay Mathew Libove)
Newsgroups: comp.sources.bugs
Subject: problem with "craps" on SCO Xenix
Message-ID: <8UiZpJy00WAEArk05x@andrew.cmu.edu>
Date: Tue, 26-May-87 23:28:21 EDT
Article-I.D.: andrew.8UiZpJy00WAEArk05x
Posted: Tue May 26 23:28:21 1987
Date-Received: Sat, 6-Jun-87 12:52:35 EDT
Organization: Carnegie Mellon University
Lines: 94