From: Bob Glossman Date: Wed, 29 Jan 2014 20:00:42 +0000 (-0800) Subject: LU-4470 build: wrong linux symbol file search X-Git-Tag: 2.5.56~64 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=2412a8b68573909237bf8d8a0f8ede04e918db0c LU-4470 build: wrong linux symbol file search Long standing build flaw just discovered. The autoconf function LB_CHECK_SYMBOL_EXPORT looks for the linux symbol table in the wrong place. In most builds this doesn't matter as the wrong path being used exactly matches the correct path. In SLES builds it does matter a lot. Failing to find the linux symbol table can lead to incorrect autoconf results. Signed-off-by: Bob Glossman Change-Id: Iab43a2c118c9b8be54a9596b4682b68a11946a94 Reviewed-on: http://review.whamcloud.com/9056 Tested-by: Jenkins Reviewed-by: Dmitry Eremin Tested-by: Maloo Reviewed-by: Minh Diep Reviewed-by: Brian J. Murrell Reviewed-by: Oleg Drokin --- diff --git a/config/lustre-build-linux.m4 b/config/lustre-build-linux.m4 index b1ec10e..894101c 100644 --- a/config/lustre-build-linux.m4 +++ b/config/lustre-build-linux.m4 @@ -537,7 +537,7 @@ LC_MODULE_LOADING # or check AC_DEFUN([LB_CHECK_SYMBOL_EXPORT], [AC_MSG_CHECKING([if Linux was built with symbol $1 exported]) -grep -q -E '[[[:space:]]]$1[[[:space:]]]' $LINUX/$SYMVERFILE 2>/dev/null +grep -q -E '[[[:space:]]]$1[[[:space:]]]' $LINUX_OBJ/$SYMVERFILE 2>/dev/null rc=$? if test $rc -ne 0; then export=0