I can't compile r5 :
[flash@stardome z64-r5]$ make
g++ -g -DGCC -DUSE_GTK `sdl-config --cflags` `pkg-config gtk+-2.0 --cflags` -D_GTK2 -I/include `freetype-config --cflags` -I/usr/include/FTGL -O2 -mtune=athlon-xp -ffast-math -funroll-loops -m3dnow -mmmx -msse -mfpmath=sse -fomit-frame-pointer rdp-mess.cpp -c -o rdp-mess.o
rdp-mess.cpp:29:1: warning: "rdram" redefined
In file included from rdp-mess.cpp:9:
Gfx #1.3.h:116:1: warning: this is the location of the previous definition
rdp-mess.cpp:31:1: warning: "rsp_imem" redefined
Gfx #1.3.h:117:1: warning: this is the location of the previous definition
rdp-mess.cpp:33:1: warning: "rsp_dmem" redefined
Gfx #1.3.h:118:1: warning: this is the location of the previous definition
rdp-mess.cpp:37:1: warning: "vi_origin" redefined
Gfx #1.3.h:119:1: warning: this is the location of the previous definition
rdp-mess.cpp:39:1: warning: "vi_width" redefined
Gfx #1.3.h:120:1: warning: this is the location of the previous definition
rdp-mess.cpp:41:1: warning: "vi_control" redefined
Gfx #1.3.h:121:1: warning: this is the location of the previous definition
rdp-mess.cpp:44:1: warning: "dp_start" redefined
Gfx #1.3.h:123:1: warning: this is the location of the previous definition
rdp-mess.cpp:46:1: warning: "dp_end" redefined
Gfx #1.3.h:124:1: warning: this is the location of the previous definition
rdp-mess.cpp:48:1: warning: "dp_current" redefined
Gfx #1.3.h:125:1: warning: this is the location of the previous definition
rdp-mess.cpp:50:1: warning: "dp_status" redefined
Gfx #1.3.h:126:1: warning: this is the location of the previous definition
rdp-mess.cpp:1083:1: warning: "TEXTURE_PIPELINE" redefined
rdp-mess.cpp:1025:1: warning: this is the location of the previous definition
g++ -g -DGCC -DUSE_GTK `sdl-config --cflags` `pkg-config gtk+-2.0 --cflags` -D_GTK2 -I/include `freetype-config --cflags` -I/usr/include/FTGL -O2 -mtune=athlon-xp -ffast-math -funroll-loops -m3dnow -mmmx -msse -mfpmath=sse -fomit-frame-pointer disasm.cpp -c -o disasm.o
g++ -g -DGCC -DUSE_GTK `sdl-config --cflags` `pkg-config gtk+-2.0 --cflags` -D_GTK2 -I/include `freetype-config --cflags` -I/usr/include/FTGL -O2 -mtune=athlon-xp -ffast-math -funroll-loops -m3dnow -mmmx -msse -mfpmath=sse -fomit-frame-pointer main.cpp -c -o main.o
g++ `pkg-config gtk+-2.0 --libs` -o z64.so rdp-mess.o disasm.o main.o -g -rdynamic -lGL -lGLU -L/usr/X11R6/lib -lglui -lglut `freetype-config --libs` -lftgl `sdl-config --libs` -lz -fomit-frame-pointer -shared -Wl,-Bsymbolic
/usr/bin/ld: warning: creating a DT_TEXTREL in a shared object.
g++ -g -DGCC -DUSE_GTK `sdl-config --cflags` `pkg-config gtk+-2.0 --cflags` -D_GTK2 -I/include `freetype-config --cflags` -I/usr/include/FTGL -O2 -mtune=athlon-xp -ffast-math -funroll-loops -m3dnow -mmmx -msse -mfpmath=sse -fomit-frame-pointer rsp.cpp -c -o rsp.o
rsp.cpp: In function `UINT32 get_cop0_reg(RSP_REGS&, int)':
rsp.cpp:167: error: `exit' was not declared in this scope
rsp.cpp: In function `void set_cop0_reg(RSP_REGS&, int, UINT32)':
rsp.cpp:183: error: `exit' was not declared in this scope
rsp.cpp: In function `void unimplemented_opcode(UINT32)':
rsp.cpp:227: error: `exit' was not declared in this scope
rsp.cpp: In function `void rsp_init(RSP_INFO)':
rsp.cpp:278: error: `memset' was not declared in this scope
rsp.cpp: In function `void handle_lwc2(RSP_REGS&, UINT32)':
rsp.cpp:535: error: `exit' was not declared in this scope
rsp.cpp:537: error: `exit' was not declared in this scope
rsp.cpp:542: error: `exit' was not declared in this scope
rsp.cpp:566: error: `exit' was not declared in this scope
rsp.cpp:596: error: `exit' was not declared in this scope
rsp.cpp: In function `void handle_swc2(RSP_REGS&, UINT32)':
rsp.cpp:896: error: `exit' was not declared in this scope
rsp.cpp:900: error: `exit' was not declared in this scope
rsp.cpp: In function `void handle_vector_ops(RSP_REGS&, UINT32)':
rsp.cpp:1700: error: `exit' was not declared in this scope
rsp.cpp: In function `void sp_dma(int)':
rsp.cpp:2931: error: `exit' was not declared in this scope
make: *** [rsp.o] Error 1