Package: torcs
Version: 1.3.3-3
Severity: wishlist
1.3.3-3 fails to build on Ubuntu with errors like this:
/build/buildd/torcs-1.3.3/export/lib/libmusicplayer.so: undefined reference to
`alDeleteBuffers'
This is due to missing -lopenal to LDFLAGS. The attached patch fixes it.
Thanks
--- a/configure.in 2012-02-16 15:03:55.000000000 +0100
+++ b/configure.in 2012-04-12 12:56:42.357291773 +0200
@@ -123,7 +123,7 @@ AC_CHECK_LIB(Xmu, XmuSimpleErrorHandler,
AC_CHECK_LIB(Xxf86vm, XF86VidModeSetViewPort,,AC_MSG_ERROR([Can't find libXxf86vm. Please check config.log and if you can't solve the problem send the file to torcs-us...@lists.sourceforge.net with the subject \"torcs compilation problem\"]))
AC_CHECK_LIB(Xrender, XRenderSetSubpixelOrder,,AC_MSG_ERROR([Can't find libXrender. Please check config.log and if you can't solve the problem send the file to torcs-us...@lists.sourceforge.net with the subject \"torcs compilation problem\"]))
AC_CHECK_LIB(Xrandr, XRRQueryVersion,,AC_MSG_ERROR([Can't find libXrandr. Please check config.log and if you can't solve the problem send the file to torcs-us...@lists.sourceforge.net with the subject \"torcs compilation problem\"]))
-AC_CHECK_LIB(openal, alEnable,, AC_MSG_ERROR([Can't find AL/al.h. OpenAL can be found on http://www.openal.org/]))
+AC_CHECK_LIB(openal, alEnable, LDFLAGS="$LDFLAGS -lopenal", AC_MSG_ERROR([Can't find AL/al.h. OpenAL can be found on http://www.openal.org/]))
AC_CHECK_LIB(alut, alutLoadWAVFile,
LDFLAGS="$LDFLAGS -lalut",
LDFLAGS="$LDFLAGS")