From f5dc6d74236ef57bedebabdee664f108f05fa036 Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Wed, 28 Dec 2011 17:41:35 +0000 Subject: [PATCH] Fix Glibc version detection on 64-bit Debian hosts. Thanks to Pierre Labastie for the report and fix. --- common/libs/func_check_version.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/common/libs/func_check_version.sh b/common/libs/func_check_version.sh index 81de3e1..98ccf2a 100644 --- a/common/libs/func_check_version.sh +++ b/common/libs/func_check_version.sh @@ -85,12 +85,8 @@ check_prerequisites() { # check_version "2.6.2" "`uname -r`" "KERNEL" check_version "3.0" "$BASH_VERSION" "BASH" check_version "3.0.1" "`gcc -dumpversion`" "GCC" - if [ -f /lib/libc.so.6 ]; then - libcLoc=/lib; - elif [ -f /lib64/libc.so.6 ]; then - libcLoc=/lib64; - fi; - libcVer="`/${libcLoc}/libc.so.6 | head -n1`" + libcLib="`find /lib /lib64 -name libc.so.6 -print`" + libcVer="`/${libcLib} | head -n1`" libcVer="${libcVer##*version }" check_version "2.2.5" ${libcVer%%,*} "GLIBC" check_version "2.12" "$(ld --version | head -n1 | awk '{print $NF}')" "BINUTILS"