[vlc-devel] commit: Explode in the face of the user if (s)he has a broken glibc ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Apr 5 21:50:06 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr  5 22:47:40 2009 +0300| [82f20ceb63d9437d5d8c2eb92312ef37dae93e44] | committer: Rémi Denis-Courmont 

Explode in the face of the user if (s)he has a broken glibc

I am fed up with all the blame we got for this for over a year.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=82f20ceb63d9437d5d8c2eb92312ef37dae93e44
---

 configure.ac |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index a4a7d50..75f60c2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -503,6 +503,24 @@ AC_LANG_PUSH(C++)
 AC_LANG_POP(C++)
 fi
 
+dnl
+dnl Buggy glibc prevention. Purposedly not cached.
+dnl Ubuntu alone has 20 bug numbers for this...
+dnl
+AC_MSG_CHECKING(for buggy GNU/libc versions)
+AC_PREPROC_IFELSE([
+#include <limits.h>
+#if defined (__GLIBC__) && (__GLIBC__ == 2) \
+  && (__GLIBC_MINOR__ >= 5) && (__GLIBC_MINOR__ <= 7)
+# error GNU/libc with dcgettext killer bug!
+#endif
+], [
+  AC_MSG_RESULT([not present])
+], [
+  AC_MSG_RESULT([found])
+  AC_MSG_ERROR([Buggy GNU/libc (version 2.5 - 2.7) present. VLC would crash; there is no viable work-around for this. Check with your distribution vendor on how to update the glibc run-time.])
+])
+
 dnl Plugin compilation stuff
 
 VLC_LIBRARY_SUFFIX




More information about the vlc-devel mailing list