From: dmm@cfa.harvard.edu (David Meleedy)
Newsgroups: comp.windows.x
Subject: xboard
Date: 12 Apr 92 01:10:39 GMT
Reply-To: meleedy@cfa.harvard.edu
Organization: Smithsonian Astrophysical Observatory, Cambridge, MA,  USA



Hello,

	I am trying to compile xboard for a Sun IPC running, sunos4_1_1, using
X11R5, and gcc2.1.  I get a slew of warning messages, and finally an error
message at the end...  Hopefully someone from DEC will know what's going on...

Thanx!

worf-348: make
rm -f parser.c
lex  -t parser.l > parser.c
gcc -fpcc-struct-return -c -O2 -funroll-loops    -I/afs/cfa.harvard.edu/system/@sys/usr/head/include      parser.c
gcc -fpcc-struct-return -c -O2 -funroll-loops    -I/afs/cfa.harvard.edu/system/@sys/usr/head/include      xboard.c
xboard.c:176: warning: initialization of `firstProgramXID' makes integer from pointer without a cast
xboard.c:176: warning: initialization of `secondProgramXID' makes integer from pointer without a cast
xboard.c:177: warning: initialization of `readGameXID' makes integer from pointer without a cast
xboard.c:177: warning: initialization of `timerXID' makes integer from pointer without a cast
xboard.c:527: warning: initialization of `boardActions[0].proc' from incompatible pointer type
xboard.c:527: warning: initialization of `boardActions[1].proc' from incompatible pointer type
xboard.c:527: warning: initialization of `boardActions[2].proc' from incompatible pointer type
xboard.c:527: warning: initialization of `boardActions[3].proc' from incompatible pointer type
xboard.c:527: warning: initialization of `boardActions[4].proc' from incompatible pointer type
xboard.c:527: warning: initialization of `boardActions[5].proc' from incompatible pointer type
xboard.c:527: warning: initialization of `boardActions[6].proc' from incompatible pointer type
xboard.c:527: warning: initialization of `boardActions[7].proc' from incompatible pointer type
xboard.c:527: warning: initialization of `boardActions[8].proc' from incompatible pointer type
xboard.c:527: warning: initialization of `boardActions[9].proc' from incompatible pointer type
xboard.c:527: warning: initialization of `boardActions[10].proc' from incompatible pointer type
xboard.c: In function `main':
xboard.c:719: warning: passing arg 4 of `XtAddEventHandler' from incompatible pointer type
xboard.c: In function `ReadGameFile':
xboard.c:1337: warning: passing arg 3 of `XtAppAddTimeOut' from incompatible pointer type
xboard.c: In function `ReadGameFileProc':
xboard.c:1452: warning: comparison between pointer and integer
xboard.c:1454: warning: assignment makes integer from pointer without a cast
xboard.c: In function `InitChessProgram':
xboard.c:1699: warning: passing arg 3 of `XtAppAddInput' makes pointer from integer without a cast
xboard.c:1699: warning: passing arg 4 of `XtAppAddInput' from incompatible pointer type
xboard.c: In function `ShutdownChessPrograms':
xboard.c:1726: warning: comparison between pointer and integer
xboard.c:1728: warning: comparison between pointer and integer
xboard.c:1730: warning: comparison between pointer and integer
xboard.c:1733: warning: assignment makes integer from pointer without a cast
xboard.c: In function `FileNameAction':
xboard.c:1864: warning: passing arg 1 from incompatible pointer type
xboard.c:1864: too few arguments to function
xboard.c: In function `PlayFromGameFileProc':
xboard.c:2000: warning: comparison between pointer and integer
xboard.c: In function `ForwardProc':
xboard.c:2052: warning: assignment makes integer from pointer without a cast
xboard.c:2067: warning: comparison between pointer and integer
xboard.c:2069: warning: assignment makes integer from pointer without a cast
xboard.c: In function `SetupPositionFromFileProc':
xboard.c:2176: warning: comparison between pointer and integer
xboard.c: In function `BackwardProc':
xboard.c:2248: warning: comparison between pointer and integer
xboard.c:2250: warning: assignment makes integer from pointer without a cast
xboard.c: In function `SaveGameProc':
xboard.c:2316: warning: assignment makes integer from pointer without a cast
xboard.c:2330: warning: assignment makes integer from pointer without a cast
xboard.c: In function `TwoMachinesPlayProc':
xboard.c:2493: warning: comparison between pointer and integer
xboard.c:2518: warning: comparison between pointer and integer
xboard.c:2539: warning: comparison between pointer and integer
xboard.c: In function `PauseProc':
xboard.c:2569: warning: comparison between pointer and integer
xboard.c:2571: warning: passing arg 3 of `XtAppAddTimeOut' from incompatible pointer type
xboard.c:2574: warning: assignment makes integer from pointer without a cast
xboard.c: In function `DisplayClocks':
xboard.c:2674: warning: comparison between pointer and integer
xboard.c:2676: warning: assignment makes integer from pointer without a cast
xboard.c:2718: warning: comparison between pointer and integer
xboard.c:2720: warning: assignment makes integer from pointer without a cast
xboard.c:2724: warning: passing arg 3 of `XtAppAddTimeOut' from incompatible pointer type
xboard.c:2724: warning: passing arg 4 of `XtAppAddTimeOut' makes pointer from integer without a cast
xboard.c:2727: warning: comparison between pointer and integer
xboard.c:2730: warning: assignment makes integer from pointer without a cast
xboard.c:2733: warning: comparison between pointer and integer
xboard.c:2741: warning: passing arg 3 of `XtAppAddTimeOut' from incompatible pointer type
xboard.c:2741: warning: passing arg 4 of `XtAppAddTimeOut' makes pointer from integer without a cast
*** Error code 1
make: Fatal error: Command failed for target `xboard.o'
-- 
=======
David Meleedy				Smithonian Astrophysical Observatory
meleedy@cfa.harvard.edu			60 Garden Street, MS 70
Phone: 617 495 7252			Cambridge, MA  02138  USA
Newsgroups: comp.windows.x