I also get some errors, about the same problem, I think. :D
make
g++ -Wall -Wextra -g -D__PORT__ -O0 `sdl-config --cflags` -c -o cd_aspi.o cd_aspi.cpp
/bin/sh: sdl-config: command not found
In file included from g_main.h:4,
from cd_aspi.cpp:10:
gens.h:1:17: error: SDL.h: No such file or directory
gens.h:3:31: error: readline/readline.h: No such file or directory
g_main.h:58: error: 'SDL_keysym' does not name a type
g_main.h:59: error: 'SDL_keysym' does not name a type
g_main.h:60: error: 'SDL_keysym' does not name a type
g_main.h:61: error: 'SDL_keysym' does not name a type
g_main.h:62: error: 'SDL_keysym' does not name a type
g_main.h:63: error: 'SDL_keysym' does not name a type
g_main.h:64: error: 'SDL_keysym' does not name a type
g_main.h:65: error: 'SDL_keysym' does not name a type
g_main.h:66: error: 'SDL_keysym' does not name a type
g_main.h:67: error: 'SDL_keysym' does not name a type
g_main.h:68: error: 'SDL_keysym' does not name a type
g_main.h:69: error: 'SDL_keysym' does not name a type
g_main.h:70: error: 'SDL_keysym' does not name a type
g_main.h:71: error: 'SDL_keysym' does not name a type
g_main.h:72: error: 'SDL_keysym' does not name a type
g_main.h:73: error: 'SDL_keysym' does not name a type
g_main.h:74: error: 'SDL_keysym' does not name a type
g_main.h:75: error: 'SDL_keysym' does not name a type
g_main.h:76: error: 'SDL_keysym' does not name a type
g_main.h:77: error: 'SDL_keysym' does not name a type
g_main.h:78: error: 'SDL_keysym' does not name a type
g_main.h:79: error: 'SDL_keysym' does not name a type
g_main.h:80: error: 'SDL_keysym' does not name a type
g_main.h:81: error: 'SDL_keysym' does not name a type
g_main.h:82: error: 'SDL_keysym' does not name a type
g_main.h:83: error: 'SDL_keysym' does not name a type
g_main.h:84: error: 'SDL_keysym' does not name a type
g_main.h:85: error: 'SDL_keysym' does not name a type
g_main.h:86: error: 'SDL_keysym' does not name a type
g_main.h:87: error: 'SDL_keysym' does not name a type
g_main.h:88: error: 'SDL_keysym' does not name a type
g_main.h:89: error: 'SDL_keysym' does not name a type
g_main.h:90: error: 'SDL_keysym' does not name a type
g_main.h:91: error: 'SDL_keysym' does not name a type
g_main.h:92: error: 'SDL_keysym' does not name a type
g_main.h:93: error: 'SDL_keysym' does not name a type
g_main.h:94: error: 'SDL_keysym' does not name a type
g_main.h:95: error: 'SDL_keysym' does not name a type
g_main.h:96: error: 'SDL_keysym' does not name a type
g_main.h:97: error: 'SDL_keysym' does not name a type
g_main.h:98: error: 'SDL_keysym' does not name a type
g_main.h:99: error: 'SDL_keysym' does not name a type
g_main.h:100: error: 'SDL_keysym' does not name a type
g_main.h:101: error: 'SDL_keysym' does not name a type
g_main.h:102: error: 'SDL_keysym' does not name a type
g_main.h:103: error: 'SDL_keysym' does not name a type
g_main.h:104: error: 'SDL_keysym' does not name a type
g_main.h:105: error: 'SDL_keysym' does not name a type
g_main.h:106: error: 'SDL_keysym' does not name a type
g_main.h:107: error: 'SDL_keysym' does not name a type
g_main.h:108: error: 'SDL_keysym' does not name a type
g_main.h:109: error: 'SDL_keysym' does not name a type
g_main.h:110: error: 'SDL_keysym' does not name a type
g_main.h:111: error: 'SDL_keysym' does not name a type
g_main.h:112: error: 'SDL_keysym' does not name a type
g_main.h:113: error: 'SDL_keysym' does not name a type
g_main.h:114: error: 'SDL_keysym' does not name a type
g_main.h:115: error: 'SDL_keysym' does not name a type
g_main.h:116: error: 'SDL_keysym' does not name a type
g_main.h:117: error: 'SDL_keysym' does not name a type
g_main.h:118: error: 'SDL_keysym' does not name a type
g_main.h:119: error: 'SDL_keysym' does not name a type
g_main.h:120: error: 'SDL_keysym' does not name a type
g_main.h:121: error: 'SDL_keysym' does not name a type
g_main.h:122: error: 'SDL_keysym' does not name a type
g_main.h:123: error: 'SDL_keysym' does not name a type
g_main.h:124: error: 'SDL_keysym' does not name a type
g_main.h:125: error: 'SDL_keysym' does not name a type
g_main.h:126: error: 'SDL_keysym' does not name a type
g_main.h:127: error: 'SDL_keysym' does not name a type
g_main.h:128: error: 'SDL_keysym' does not name a type
g_main.h:129: error: 'SDL_keysym' does not name a type
g_main.h:130: error: 'SDL_keysym' does not name a type
g_main.h:131: error: 'SDL_keysym' does not name a type
g_main.h:132: error: 'SDL_keysym' does not name a type
g_main.h:133: error: 'SDL_keysym' does not name a type
g_main.h:134: error: 'SDL_keysym' does not name a type
g_main.h:135: error: 'SDL_keysym' does not name a type
g_main.h:136: error: 'SDL_keysym' does not name a type
g_main.h:137: error: 'SDL_keysym' does not name a type
g_main.h:138: error: 'SDL_keysym' does not name a type
g_main.h:139: error: 'SDL_keysym' does not name a type
g_main.h:140: error: 'SDL_keysym' does not name a type
g_main.h:141: error: 'SDL_keysym' does not name a type
g_main.h:142: error: 'SDL_keysym' does not name a type
g_main.h:143: error: 'SDL_keysym' does not name a type
g_main.h:163: error: 'SDL_keysym' was not declared in this scope
g_main.h:163: error: 'ks' was not declared in this scope
cd_aspi.cpp:496: warning: unused parameter 'format'
cd_aspi.cpp:872: warning: unused parameter 'flag'
cd_aspi.cpp:947: warning: unused parameter 'flag'
cd_aspi.cpp:1016: warning: unused parameter 'flag'
cd_aspi.cpp:1108: warning: unused parameter 'flag'
cd_aspi.cpp: In function 'int ASPI_Mechanism_State_COMP(SRB_ExecSCSICmd*)':
cd_aspi.cpp:1399: warning: passing NULL to non-pointer argument 1 of 'void MessageBox(int, const char*, const char*, int)'
cd_aspi.cpp:1408: warning: passing NULL to non-pointer argument 1 of 'void MessageBox(int, const char*, const char*, int)'
cd_aspi.cpp: At global scope:
cd_aspi.cpp:1510: warning: unused parameter 's'
cd_aspi.cpp:1649: warning: unused parameter 's'
cd_aspi.cpp:1925: warning: unused parameter 's'
cd_aspi.cpp:1938: warning: unused parameter 's'
make: *** [cd_aspi.o] Error 1
g++ --version
g++ (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)