Probs compiling Xbattle

Probs compiling Xbattle

Post by Marc Peter Altho » Sat, 28 Aug 1993 07:33:42



Subject: CompilingProblems with Xbattle 5.0 (4.0 also) under Linux

I found, that Xbattle is a fantastic game to play and I enjoy to play it on
a HP at university. I tried to compile it on my LINUX-PC (486-DX33 with
X11/olwm, gcc 2.4.5 and 99pl12 Kernel (slackware 1.01).

After configuring the Makefile doing a xmkmf, I tried to compile the game with
the make-command.
This is, what I get, after the command starts:

#make
gcc -O2 -m486 -DNO_ASM -fwritable-strings  -I/usr/X386/include
-D_POSIX_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -Dlinux -DFUNCPROTO=11
-DNARROWPROTO -c main.c -o main.o
main.c: In function 'run_unix_loop':
main.c:185: parse error before '__asm__'
main.c:204: break statement not within loop or switch
main.c: At top level:
main.c:207: Parse error before 'if'
main.c:211: warning: data definition has no type or storage class
main.c:212: 'new_time' undeclared here (not in a function)
main.c:212: initializer element for 'target_time' is not constant
main.c:212:
(stuff deleted)
main.c: In function 'process_event' :
main.c:572: warning: passing arg of 'XLookupString' from incompatible
pointer type

make: *** main.o ERROR=1

(I retyped this text, so there may be some misstypings up there).

SO, do you have any idea, what I am doing wrong ?
 I have no idea what do do with all these errors and as I am not very
familiar with c I guess I will not be able to track this problem down.

Also, if anybody was able to compile this programm, I woud like to get the
compiled binaries.
The Makefile imake generates seems to fit my maschine, also I am not so
sure, if I really understand all the things in there...
Please answer me also via EMail, as I am not always able to keep up with all
the nn...

Bye


 
 
 

1. Xbattle compile probs

Well, after successfully setting up my Slackware (99pl12 & gcc 2.4.5) I
wanted to compile Xbattle under Linux, but after a xmkmf and make install
the compiler finds some parse errors in main.c-file.
On a HP, the compilation works fine, so I gues, it is a configuration-error.
Did anybody compile this programm under Linux (btw: I am running the olwm).

Thanx in advance

Jolly

2. Adaptec AIC-7870 Integrated PCI SCSI H/D Controller slakware 3.0

3. Xbattle-Compile-Probs

4. Installation enquiry

5. Xbattle-Probs

6. Chinon CDS-535 HELP

7. xbattle and xmkmf

8. Xconfig and X11 Drivers for Cirrus Logic??????

9. Netinet compile probs

10. Prob compiling FTape 2.2.0e on 1.3.89

11. DOSEMU - Compile Probs

12. PROBS COMPILING TERM ON IRIX 5.4

13. Kernel Compile Probs