Cannot compile SDL_mixer-1.0.6 with mingw32 under Win98

I successfully compiled SDL_mixer-1.0.6 under Linux and now want to compile
it under Win98 as well. I am using the Xmingw32 compiler that has been
announced and recommended by Sam Lantinga.
SDL-1.1.6 compiled without any problems, but SDL_mixer doesn’t.
Running the configure script I get the following message:

*** Could not run SDL test program, checking why…
*** The test program failed to compile or link. See the file config.log for
*** exact error that occured. This usually means SDL was incorrectly
*** or that you have moved SDL since it was installed. In the latter case,
*** may want to edit the sdl-config script: /gcc-2.95.2/bin/sdl-config

I changed all lines of the configure script containing
main(int argc, char *argv[]){return(0);}

Now it works fine. Is it a bug?

But still, compiling the mixer is not possible. The compiler crashes with a
"Illegal operation performed" message. So I suppose, that there is a bug in
the compiler and not in the SDL code. Did anybody compile the mixer with
If not I will try to compile it with the cross-compiler or can anybody
provide me with the binaries??

Thanks for your help,