[comp.sys.isis] Compiling spread.h under SUN OS 4.1

ken@gvax.cs.cornell.edu (Ken Birman) (09/24/90)

On a Sun 4/260, SunOS 4.1, running Openwindows, you'll get the
following message when building ISIS:

Found X11 library--building spreadsheet demo for X Version 11
make -f make_grid MCHDEPCFLAGS=-DNOSUNLWP -DBYPASS OPLIBS= OPTIM=-O3 spread
yacc -d ../../demos/spreadparse.y; mv -f y.tab.c spreadparse.c

conflicts: 11 shift/reduce
cc -DNOSUNLWP -DBYPASS -DSUN4 -I../../include -I../../demos -c -O3 spreadparse.c
cc -DNOSUNLWP -DBYPASS -DSUN4 -I../../include -I../../demos -c -O3 ../../demos/s
pread.c
"../../demos/spread.h", line 224: redeclaration of sprintf
*** Error code 1
make: Fatal error: Command failed for target `spread.o'

This arises because we run SUN OS 4.0 at Cornell and it seems that
SUN OS 4.1 includes a definition of sprintf, which was previously
lacking.  Just take sprintf out of the list in spread.h around line
244 and it should build and run without problems.