Hi Daniel, On Wed, 2008-08-20 at 16:37 +0200, Daniel Gollub wrote: > Hi, > > the LTP numa testcases were initially designed for libnuma API in version 1. > Building latest LTP (intermediate 20080820) against latest version of libnuma > (2.0.2) requires -DNUMA_VERSION1_COMPATIBILITY in the CFLAGS - to switch to > to the compatibility interface of libnuma API version 1. There are no libnuma > testcases for API version 2 in ltp yet. Do you know some pointers to work in this regard. Is somebody comtemplating to write them ? > > Currently -DNUMA_VERSION1_COMPATIBILITY will not help for the LTP numa testcase, > since the compability interface is missing some interface from version 1: > > make[3]: Entering directory `/home/dgollub/packages/ltp/ltp-intermediate-20080820/testcases/kernel/numa' > cc -Wall -I../../../include -Wall -DNUMA_VERSION1_COMPATIBILITY numa_node_size.c -L../../../lib -lltp -L../../../lib -lnuma -o numa_node_size > numa_node_size.c: In function ‘main’: > numa_node_size.c:72: warning: passing argument 1 of ‘nodemask_zero’ from incompatible pointer type > numa_node_size.c:73: warning: implicit declaration of function ‘nodemask_set’ > /tmp/cc2yij9O.o: In function `main': > numa_node_size.c:(.text+0x14f): undefined reference to `nodemask_set' > collect2: ld returned 1 exit status > make[3]: *** [numa_node_size] Error 1 > > Fix for the VERSION1 compatibility interface got already send to linux-numa list. > I hope the libnuma fix got accepted and attached can be applied to LTP soon to fix > the build of the LTP numa testcases, when building against libnuma 2.0.2 or greater. > > Signed-off-by: Daniel Gollub <dgollub@xxxxxxx> Thanks for the update. I checked out with some couple of machines and to my satisfaction does not break anything till now. Patch is merged. Regards-- Subrata > > --- > diff --git a/testcases/kernel/numa/Makefile b/testcases/kernel/numa/Makefile > index a522938..a903d63 100644 > --- a/testcases/kernel/numa/Makefile > +++ b/testcases/kernel/numa/Makefile > @@ -16,7 +16,7 @@ > # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA > # > > -CFLAGS += -I../../../include -Wall > +CFLAGS += -I../../../include -Wall -DNUMA_VERSION1_COMPATIBILITY > > LDLIBS += -L../../../lib -lltp > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Ltp-list mailing list > Ltp-list@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/ltp-list -- To unsubscribe from this list: send the line "unsubscribe linux-numa" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html