From: Zhouping Liu <zliu@re...> - 2012-04-28 09:05:46
----- Original Message -----
> From: "Zhouping Liu" <zliu@...>
> To: "Garrett Cooper" <yanegomi@...>
> Sent: Saturday, April 28, 2012 4:58:52 PM
> Subject: Re: [LTP] [PATCH 1/3] m4/ltp-numa.m4: fixed numa config
> > On Apr 28, 2012, at 12:48 AM, 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 <zliu@...>
> > I believe the real bug was that AC_CHECK_FUNCS accepts a list like:
> I don't think so.
> as AC_CHECK_FUNCS checks for the existence of functions in the C
> standard library,
> but numa_alloc_onnode and numa_move_pages are not in C standard
> library, they
> need '-lnuma', so AC_CHECK_FUNCS can't detect the two functions even
> though they
> are available.
> I'm not practised to m4, please correct me if I'm wrong :(
> > AC_CHECK_FUNCS([printf scanf])
> > The other format implemented in the code was for:
> > funcs,if-found,if-not-found
> > Thanks!
> > -Garrett
Forgot to CC ltp-list :(
Get latest updates about Open Source Projects, Conferences and News.