I cannot build Vorbis (newest versions of aoTuV or Xiph) shared libraries with MinGW (using configure). Ogg compiles perfectly. I type "./configure" in MSYS; everything seems to work fine. I type "make," and it works perfectly for a while until I get to this:
gcc -shared .libs/vorbisfile.o -L/mingw/lib ./.libs/libvorbis.dll.a -o .libs/libvorbisfile-3.dll -W1,--image-base=0x10000000 -W1,--out-implib,.libs/libvorbisfile.dll.a
Creating library file: .libs/libvorbisfile.dll.a
.libs/vorbisfile.o:vorbisfile.c:(.text+0x73): undefined reference to `ogg_sync_pageseek'
.libs/vorbisfile.o:vorbisfile.c:(.text+0xb8): undefined reference to `ogg_sync_buffer'
.libs/vorbisfile.o:vorbisfile.c:(.text+0xec): undefined reference to `ogg_sync_wrote'
.libs/vorbisfile.o:vorbisfile.c:(.text+0237): undefined reference to `a_lot_of_other_stuff'
Here's the line it should have used:
gcc -shared .libs/vorbisfile.o -L/mingw/lib /mingw/lib/libogg.dll.a ./.libs/libvorbisfile.dll.a ./.libs/libvorbis.dll.a -o .libs/libvorbisfile-3.dll -W1,--image-base=0x10000000 -W1,--out-implib,.libs/libvorbisfile.dll.a
Does anybody know why it's doing this, or how to fix it?