LibVorbis library build fails on Vista using MinGW 3.4.5 and MSYS (undefined references to ogg functions)
LibVorbis v1.2 won't build normally using MSYS and MinGW 3.4.5 on Vista using these steps :
./configure --prefix=/mingw
mingw32-make
mingw32-make install
It fails during mingw32-make because when the libvorbisfile library is being linked, it doesn't link against the libogg library.
I used a temporary hack to build all 3 vorbis libraries by setting the LIBS environment variable to -logg using "export LIBS=-logg". I don't know if the static version of ogg was the correct version to link against, but everything seems to be working properly. Using the LIBS variable however is incorrect, and in one place it linked against libogg twice using that method. (No harm done, but incorrect anyway).
I've attached a text build log of the failed process in it's entirety (scroll down to the undefined references to ogg functions near the end).
( BuildLog_LibVORBIS_failure.txt )
You can also see a thread I made about this on the Allegro forums at : [http://www.allegro.cc/forums/thread/598976]
I believe I managed to track down the source of the offending compilation line in the generated libtool file in the main libvorbis directory, where the symbol archive_cmds is being assigned its value. The $deplibs symbol in that line should probably have the value -logg or -logg.dll at this point, but I don't believe it has that value during the assignment.
I attached a second text file that shows this, as well as showing that the failed command from the build process works when -logg is added to it.
(LibVORBIS_Compile_Bug_Notes.txt)
Thanks for taking a look, and here's looking forward to a working MinGW build of libvorbis!
Edgar