[comp.sources.bugs] problem with "craps" on SCO Xenix

jl42+@andrew.cmu.edu (Jay Mathew Libove) (05/27/87)

[ 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!