#8 compiling on linux is broken

open
nobody
None
5
2007-09-18
2007-09-18
No

$ make bin
cd WL1 && make clean && make && zip ../wolfglx-wl1-0.93.zip wolfgl
make[1]: Entering directory `/usr/local/src/wolfgl/wolfgl/linux/WL1'
rm -f obj/*.o wolfgl
make[1]: Leaving directory `/usr/local/src/wolfgl/wolfgl/linux/WL1'
make[1]: Entering directory `/usr/local/src/wolfgl/wolfgl/linux/WL1'
test -d obj \ || mkdir obj
cd .. \ && make wolfgl OBJDIR=WL1/obj OUTDIR=WL1 GAMEVER=_WOLF_SHAREWARE_
make[2]: Entering directory `/usr/local/src/wolfgl/wolfgl/linux'
gcc -I. -I../common -I/usr/local/include -D_LINUX -Wimplicit -D_WOLF_SHAREWARE_ -ggdb -c system.c -o WL1/obj/system.o
In file included from ../common/wl_def.h:12,
from system.c:6:
../common/wl_menu.h:235:3: warning: no newline at end of file
system.c: In function ‘make_rgb_db_window’:
system.c:120: warning: implicit declaration of function ‘exit’
system.c:120: warning: incompatible implicit declaration of built-in function ‘exit’
system.c: In function ‘S_Startup’:
system.c:161: warning: implicit declaration of function ‘strcmp’
system.c:179: warning: implicit declaration of function ‘S_InitSound’
system.c: In function ‘S_Shutdown’:
system.c:184: warning: implicit declaration of function ‘S_ShutdownSound’
system.c: In function ‘S_ProcessEvents’:
system.c:227: warning: implicit declaration of function ‘IN_KeyEvent’
gcc -I. -I../common -I/usr/local/include -D_LINUX -Wimplicit -D_WOLF_SHAREWARE_ -ggdb -c sound.c -o WL1/obj/sound.o
In file included from ../common/wl_def.h:12,
from sound.c:23:
../common/wl_menu.h:235:3: warning: no newline at end of file
sound.c: In function ‘S_LoadSound’:
sound.c:440: warning: implicit declaration of function ‘memcpy’
sound.c:440: warning: incompatible implicit declaration of built-in function ‘memcpy’
gcc -I. -I../common -I/usr/local/include -D_LINUX -Wimplicit -D_WOLF_SHAREWARE_ -ggdb -c input.c -o WL1/obj/input.o
gcc -I. -I../common -I/usr/local/include -D_LINUX -Wimplicit -D_WOLF_SHAREWARE_ -ggdb -c ../common/wl_main.c -o WL1/obj/wl_main.o
In file included from ../common/wl_def.h:12,
from ../common/wl_main.c:7:
../common/wl_menu.h:235:3: warning: no newline at end of file
gcc -I. -I../common -I/usr/local/include -D_LINUX -Wimplicit -D_WOLF_SHAREWARE_ -ggdb -c ../common/id_ca.c -o WL1/obj/id_ca.o
../common/id_ca.c: In function ‘CAL_CarmackExpand’:
../common/id_ca.c:271: error: invalid lvalue in increment
../common/id_ca.c:277: error: invalid lvalue in increment
../common/id_ca.c:290: error: invalid lvalue in increment
../common/id_ca.c: In function ‘CA_UpLevel’:
../common/id_ca.c:809: error: invalid lvalue in unary ‘&’
../common/id_ca.c: In function ‘CA_SetAllPurge’:
../common/id_ca.c:865: error: invalid lvalue in unary ‘&’
make[2]: *** [WL1/obj/id_ca.o] Error 1
make[2]: Leaving directory `/usr/local/src/wolfgl/wolfgl/linux'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/usr/local/src/wolfgl/wolfgl/linux/WL1'
make: *** [bin] Error 2

Discussion