System: SuSE Linux version 6.4, QT 2.2.2, KDE 2.01
I alsa noticed an artsc problem with the CVS version of SDL. It appears
as though an include path is missing:
gcc -DPACKAGE=“SDL” -DVERSION=“1.1.7” -DHAVE_ALLOCA_H=1
-DHAVE_ALLOCA=1 -I. -I. -pipe -O2 -m486 -fno-strength-reduce
-fexpensive-optimizations -march=pentium -mcpu=pentiumpro -Wall
-DUSE_ASMBLIT -I./hermes -I…/…/…/src/hermes -DOSS_SUPPORT
-DESD_SUPPORT -DARTSC_SUPPORT -I/opt/kde2/include/artsc
-I/usr/X11R6/include -DENABLE_X11 -DXFREE86_VM -DXFREE86_DGAMOUSE
-DDEFAULT_DGAMOUSE -DENABLE_FBCON -DHAVE_OPENGL -DUSE_INPUT_EVENTS
-D_REENTRANT -DSDL_USE_PTHREADS -I…/…/…/include
-I…/…/…/include/SDL -I…/…/…/src -I…/…/…/src/linux
-I…/…/…/src/main -I…/…/…/src/audio -I…/…/…/src/video
-I…/…/…/src/events -I…/…/…/src/joystick -I…/…/…/src/cdrom
-I…/…/…/src/thread -I…/…/…/src/timer -I…/…/…/src/endian
-I…/…/…/src/file -c SDL_artsaudio.c -fPIC -DPIC -o
.libs/SDL_artsaudio.lo
SDL_artsaudio.c:44: SDL_dspaudio.h: No such file or directory
SDL_artsaudio.c:50: parse error before SDL_AudioSpec' SDL_artsaudio.c:51: warning: parameter names (without types) in function declaration SDL_artsaudio.c:52: warning: parameter names (without types) in function declaration SDL_artsaudio.c:53: warning: parameter names (without types) in function declaration SDL_artsaudio.c:54: warning: parameter names (without types) in function declaration SDL_artsaudio.c:66: parse error before
*‘
SDL_artsaudio.c: In function Audio_DeleteDevice': SDL_artsaudio.c:68:
device’ undeclared (first use in this function)
SDL_artsaudio.c:68: (Each undeclared identifier is reported only once
SDL_artsaudio.c:68: for each function it appears in.)
SDL_artsaudio.c: At top level:
SDL_artsaudio.c:72: parse error before *' SDL_artsaudio.c:73: warning: return-type defaults to
int’
SDL_artsaudio.c: In function Audio_CreateDevice': SDL_artsaudio.c:74:
SDL_AudioDevice’ undeclared (first use in this
function)
SDL_artsaudio.c:74: this' undeclared (first use in this function) SDL_artsaudio.c:74: warning: statement with no effect SDL_artsaudio.c:77: parse error before
)‘
SDL_artsaudio.c:91: audio_fd' undeclared (first use in this function) SDL_artsaudio.c: At top level: SDL_artsaudio.c:105: parse error before
ARTSC_bootstrap’
SDL_artsaudio.c:105: warning: type defaults to int' in declaration of
ARTSC_bootstrap’
SDL_artsaudio.c:106: warning: initialization makes integer from pointer
without a cast
SDL_artsaudio.c:106: warning: excess elements in scalar initializer
SDL_artsaudio.c:106: warning: (near initialization for ARTSC_bootstrap') SDL_artsaudio.c:107: warning: excess elements in scalar initializer SDL_artsaudio.c:107: warning: (near initialization for
ARTSC_bootstrap’)
SDL_artsaudio.c:108: warning: excess elements in scalar initializer
SDL_artsaudio.c:108: warning: (near initialization for ARTSC_bootstrap') SDL_artsaudio.c:108: warning: data definition has no type or storage class SDL_artsaudio.c: In function
ARTSC_WaitAudio’:
SDL_artsaudio.c:120: parent' undeclared (first use in this function) SDL_artsaudio.c:122:
this’ undeclared (first use in this function)
SDL_artsaudio.c:128: next_frame' undeclared (first use in this function) SDL_artsaudio.c:128:
FUDGE_TICKS’ undeclared (first use in this function)
SDL_artsaudio.c:113: warning: ticks' might be used uninitialized in this function SDL_artsaudio.c: In function
ARTSC_PlayAudio’:
SDL_artsaudio.c:139: audio_fd' undeclared (first use in this function) SDL_artsaudio.c:139:
mixbuf’ undeclared (first use in this function)
SDL_artsaudio.c:139: mixlen' undeclared (first use in this function) SDL_artsaudio.c:142:
frame_ticks’ undeclared (first use in this function)
SDL_artsaudio.c:143: next_frame' undeclared (first use in this function) SDL_artsaudio.c:148:
this’ undeclared (first use in this function)
SDL_artsaudio.c: In function ARTSC_GetAudioBuf': SDL_artsaudio.c:157:
mixbuf’ undeclared (first use in this function)
SDL_artsaudio.c:158: warning: control reaches end of non-void function
SDL_artsaudio.c: In function ARTSC_CloseAudio': SDL_artsaudio.c:162:
mixbuf’ undeclared (first use in this function)
SDL_artsaudio.c:166: audio_fd' undeclared (first use in this function) SDL_artsaudio.c: At top level: SDL_artsaudio.c:172: parse error before
SDL_AudioSpec’
SDL_artsaudio.c: In function ARTSC_OpenAudio': SDL_artsaudio.c:178:
frame_ticks’ undeclared (first use in this function)
SDL_artsaudio.c:180: mixbuf' undeclared (first use in this function) SDL_artsaudio.c:185:
spec’ undeclared (first use in this function)
SDL_artsaudio.c:213: audio_fd' undeclared (first use in this function) SDL_artsaudio.c:226:
ARTS_P_PACKET_SETTINGS’ undeclared (first use in
this function)
SDL_artsaudio.c:230: mixlen' undeclared (first use in this function) SDL_artsaudio.c:235: warning: unreachable code at beginning of switch statement SDL_artsaudio.c:238:
parent’ undeclared (first use in this function)
make[3]: *** [SDL_artsaudio.lo] Error 1
make[3]: Leaving directory
/usr/src/packages/BUILD/SDL-1.1.7/src/audio/arts' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory
/usr/src/packages/BUILD/SDL-1.1.7/src/audio’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/SDL-1.1.7/src’
make: *** [all-recursive] Error 1
find -name SDL_dspaudio.h
./src/audio/dsp/SDL_dspaudio.h
I believe an ‘-I…/…/…/src/audio/dsp’ needs to go there.
-jrh