From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1SO2XA-0002tn-OS for ltp-list@lists.sourceforge.net; Sat, 28 Apr 2012 07:57:36 +0000 Received: from mail-pb0-f47.google.com ([209.85.160.47]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1SO2XA-0002Th-2q for ltp-list@lists.sourceforge.net; Sat, 28 Apr 2012 07:57:36 +0000 Received: by mail-pb0-f47.google.com with SMTP id rq2so1866550pbb.34 for ; Sat, 28 Apr 2012 00:57:35 -0700 (PDT) Message-ID: <4F9BA2D3.9040705@casparzhang.com> Date: Sat, 28 Apr 2012 15:57:07 +0800 From: Caspar Zhang MIME-Version: 1.0 References: <9f6a3874d522c848218b164f61ff207760ed2b22.1335599279.git.zliu@redhat.com> In-Reply-To: <9f6a3874d522c848218b164f61ff207760ed2b22.1335599279.git.zliu@redhat.com> Subject: Re: [LTP] [PATCH 1/3] m4/ltp-numa.m4: fixed numa config List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: Zhouping Liu Cc: LTP List On 04/28/2012 03:48 PM, Zhouping Liu wrote: > numa_alloc_onnode() and numa_move_pages() all need numa lib '-lnuma', > but in ltp-numa.m4, we just checked the two functions using > AC_CHECK_FUNCS, without the patch, it always report such error > log in numa system: "undefined reference to `numa_alloc_onnode`", > which blocked syscalls/move_pages/* cases, the patch fixed it. > > Signed-off-by: Zhouping Liu Reviewed-by: Caspar Zhang > --- > m4/ltp-numa.m4 | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/m4/ltp-numa.m4 b/m4/ltp-numa.m4 > index bcc5e6b..d03bc80 100644 > --- a/m4/ltp-numa.m4 > +++ b/m4/ltp-numa.m4 > @@ -26,7 +26,14 @@ AC_DEFUN([LTP_CHECK_SYSCALL_NUMA], > [dnl > AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[ > LTP_SYSCALL_NUMA_HEADERS=yes > - AC_CHECK_FUNCS(numa_alloc_onnode,numa_move_pages) > + AC_CHECK_LIB(numa,numa_alloc_onnode,[have_numa_alloc_onnode="yes"]) > + if test "x$have_numa_alloc_onnode" = "xyes"; then > + AC_DEFINE(HAVE_NUMA_ALLOC_ONNODE,1,[define to 1 if you have 'numa_alloc_onnode' function]) > + fi > + AC_CHECK_LIB(numa,numa_move_pages,[have_numa_move_pages="yes"]) > + if test "x$have_numa_move_pages" = "xyes"; then > + AC_DEFINE(HAVE_NUMA_MOVE_PAGES,1,[define to 1 if you have 'numa_move_pages' function]) > + fi > ] > AC_CHECK_LIB(numa,numa_available,[ > NUMA_CPPFLAGS="-DNUMA_VERSION1_COMPATIBILITY" ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list