This one time, at band camp, Falk Hueffner wrote: > Package: openarena > Version: 0.6.0-2 > Severity: important > Justification: fails to build from source > > openarena does not build on Alpha: > > [...] > gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Icpp -o > build-linux-axp/cpp/cpp.o cpp/cpp.c In file included from cpp/cpp.c:6: > cpp/cpp.h:45: error: expected specifier-qualifier-list before 'uchar' > cpp/cpp.h:59: error: expected specifier-qualifier-list before 'uchar' > cpp/cpp.h:69: error: expected specifier-qualifier-list before 'uchar' > cpp/cpp.h:135: error: expected '=', ',', ';', 'asm' or > '__attribute__' before '*' token cpp/cpp.c:15: error: 'uchar' > undeclared here (not in a function) [...] > > The reason is this chunk in code/tools/lcc/cpp/cpp.h: > > #ifndef __alpha > typedef unsigned char uchar; > #endif > > Probably was is supposed to avoid a double definition. If I just > remove the check, it builds fine, except that it fails later: > > cp build/release-linux-alpha/ioquake3.alpha debian/tmp/openarena.bin > cp: cannot stat `build/release-linux-alpha/ioquake3.alpha': No such > file or directory > > There seems to be some "alpha" vs. "axp" confusion here, since the dir > is called build/release-linux-axp.
hi, i don't have access to an alpha machine, but as you hinted there's some axp vs. alpha confusion in the Makefile. as openarena uses the ioquauke3 game engine, i looked through their information about alpha support. they only support a limited dedicated server on the alpha architecture. though i (blindly) created a patch you may want to try on the openarens package, maybe it helps to compile the engine. good luck - fuddl -- Among elephants it's not considered cool nor in any good taste to drain other elephants
=== modified file 'Makefile'
--- Makefile 2007-02-12 22:42:23 +0000
+++ Makefile 2007-02-12 22:47:07 +0000
@@ -176,7 +176,7 @@
CC=gcc
ifeq ($(ARCH),alpha)
- ARCH=axp
+ ARCH=alpha
else
ifeq ($(ARCH),x86_64)
LIB=lib64
@@ -499,7 +499,7 @@
ifeq ($(PLATFORM),freebsd)
ifneq (,$(findstring alpha,$(shell uname -m)))
- ARCH=axp
+ ARCH=alpha
else #default to i386
ARCH=i386
endif #alpha test
@@ -526,7 +526,7 @@
BASE_CFLAGS += $(shell sdl-config --cflags) -DUSE_SDL_VIDEO=1 -DUSE_SDL_SOUND=1
endif
- ifeq ($(ARCH),axp)
+ ifeq ($(ARCH),alpha)
CC=gcc
BASE_CFLAGS += -DNO_VM_COMPILED
RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O3 -ffast-math -funroll-loops \
=== modified file 'code/tools/lcc/cpp/cpp.h'
--- code/tools/lcc/cpp/cpp.h 2007-02-12 22:42:23 +0000
+++ code/tools/lcc/cpp/cpp.h 2007-02-12 22:48:31 +0000
@@ -10,10 +10,6 @@
#define NULL 0
#endif
-#ifndef __alpha
-typedef unsigned char uchar;
-#endif
-
enum toktype { END, UNCLASS, NAME, NUMBER, STRING, CCON, NL, WS, DSHARP,
EQ, NEQ, LEQ, GEQ, LSH, RSH, LAND, LOR, PPLUS, MMINUS,
ARROW, SBRA, SKET, LP, RP, DOT, AND, STAR, PLUS, MINUS,
signature.asc
Description: PGP signature
_______________________________________________ Pkg-games-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/pkg-games-devel

