Error when building SDL 1.3 from source under Win32

Using MinGW and MSYS on Windows XP, I’m experiencing the following error during make:

Code:

Creating library file: build/.libs/libSDL.dll.a
build/.libs/SDL_syshaptic.o: In function SDL_SYS_HapticUpdateEffect': C:\MinGW\msys\1.0\temp\SDL/src/haptic/windows/SDL_syshaptic.c:1188: undefined reference toIDirectInputEffect_SetParameters’
build/.libs/SDL_syshaptic.o: In function SDL_SYS_HapticRunEffect': C:\MinGW\msys\1.0\temp\SDL/src/haptic/windows/SDL_syshaptic.c:1224: undefined reference toIDirectInputEffect_Start’
build/.libs/SDL_syshaptic.o: In function SDL_SYS_HapticStopEffect': C:\MinGW\msys\1.0\temp\SDL/src/haptic/windows/SDL_syshaptic.c:1242: undefined reference toIDirectInputEffect_Stop’
build/.libs/SDL_syshaptic.o: In function SDL_SYS_HapticDestroyEffect': C:\MinGW\msys\1.0\temp\SDL/src/haptic/windows/SDL_syshaptic.c:1260: undefined reference toIDirectInputEffect_Unload’
build/.libs/SDL_syshaptic.o: In function SDL_SYS_HapticGetEffectStatus': C:\MinGW\msys\1.0\temp\SDL/src/haptic/windows/SDL_syshaptic.c:1281: undefined reference toIDirectInputEffect_GetEffectStatus’
collect2: ld returned 1 exit status
make: *** [build/libSDL.la] Error 1

I installed the DirectX header files, located here (http://www.libsdl.org/extras/win32/common/directx-devel.tar.gz), however, I think they might be out of date. Anyone have any ideas on how to fix this?