Hi, I tried to make with 2010-01-14's cvs in RHEL4.8 (2.6.9-89.ELsmp). But It failed in "mbind01.c" by following message.
------------ gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -I/home/LTP/ltp-2010-01-12/testcases/kernel/include -I/home/LTP/ltp-2010-01-12/testcases/kernel/syscalls/mbind/../utils/ -I../../../../include -I../../../../include -L../../../../lib mbind01.c -lltp -lnuma -o mbind01 mbind01.c:184: error: `MPOL_DEFAULT' undeclared here (not in a function) mbind01.c:184: error: initializer element is not constant mbind01.c:184: error: (near initialization for `tcase[0].policy') mbind01.c:188: error: initializer element is not constant mbind01.c:188: error: (near initialization for `tcase[0]') mbind01.c:190: error: initializer element is not constant mbind01.c:190: error: (near initialization for `tcase[1].policy') mbind01.c:194: error: initializer element is not constant mbind01.c:194: error: (near initialization for `tcase[1]') mbind01.c:196: error: `MPOL_BIND' undeclared here (not in a function) mbind01.c:196: error: initializer element is not constant mbind01.c:196: error: (near initialization for `tcase[2].policy') mbind01.c:200: error: initializer element is not constant mbind01.c:200: error: (near initialization for `tcase[2]') mbind01.c:202: error: initializer element is not constant mbind01.c:202: error: (near initialization for `tcase[3].policy') mbind01.c:206: error: initializer element is not constant mbind01.c:206: error: (near initialization for `tcase[3]') mbind01.c:208: error: `MPOL_INTERLEAVE' undeclared here (not in a function) mbind01.c:208: error: initializer element is not constant mbind01.c:208: error: (near initialization for `tcase[4].policy') mbind01.c:212: error: initializer element is not constant mbind01.c:212: error: (near initialization for `tcase[4]') mbind01.c:214: error: initializer element is not constant mbind01.c:214: error: (near initialization for `tcase[5].policy') mbind01.c:218: error: initializer element is not constant mbind01.c:218: error: (near initialization for `tcase[5]') mbind01.c:220: error: `MPOL_PREFERRED' undeclared here (not in a function) mbind01.c:220: error: initializer element is not constant mbind01.c:220: error: (near initialization for `tcase[6].policy') mbind01.c:224: error: initializer element is not constant mbind01.c:224: error: (near initialization for `tcase[6]') mbind01.c:226: error: initializer element is not constant mbind01.c:226: error: (near initialization for `tcase[7].policy') mbind01.c:230: error: initializer element is not constant mbind01.c:230: error: (near initialization for `tcase[7]') mbind01.c:236: error: initializer element is not constant mbind01.c:236: error: (near initialization for `tcase[8]') mbind01.c:238: error: initializer element is not constant mbind01.c:238: error: (near initialization for `tcase[9].policy') mbind01.c:243: error: initializer element is not constant mbind01.c:243: error: (near initialization for `tcase[9]') mbind01.c:246: error: initializer element is not constant mbind01.c:246: error: (near initialization for `tcase[10].policy') mbind01.c:250: error: initializer element is not constant mbind01.c:250: error: (near initialization for `tcase[10]') mbind01.c: In function `do_test': mbind01.c:309: error: `MPOL_F_ADDR' undeclared (first use in this function) mbind01.c:309: error: (Each undeclared identifier is reported only once mbind01.c:309: error: for each function it appears in.) make[4]: *** [mbind01] Error 1 ------------ Following version's cvs's bring same results. - 2010-01-08 - 2010-01-12 - 2010-01-13 With 2009-12-21's cvs, I succeeded to make. I took a difference of "mbind01.c" between "2009-12-21's cvs and 2010-01-12's cvs. In "mbind01.c", "#include "numaif.h" changed to #include "numa_helpers.h" But the definition of "MPOL_DEFAULT" which was in "numaif.h" wasn't described in "numa_helpers.h". There isn't this definition anywhere. I think that it may be necessary to copy the definitions of "MPOL_DEFAULT", "MPOL_BIND", etc... from "numaif.h". I tried to apply following patch and succeeded to make: ============ --- numa_helpers.h.org 2010-01-13 14:15:35.000000000 +0900 +++ numa_helpers.h 2010-01-13 16:04:04.000000000 +0900 @@ -104,5 +104,18 @@ } #endif - +#ifndef MPOL_DEFAULT + // Policies +# define MPOL_DEFAULT 0 +# define MPOL_PREFERRED 1 +# define MPOL_BIND 2 +# define MPOL_INTERLEAVE 3 + // Flags for get_mem_policy +# define MPOL_F_NODE (1<<0) +# define MPOL_F_ADDR (1<<1) + // Flags for mbind +# define MPOL_MF_STRICT (1<<0) +# define MPOL_MF_MOVE (1<<1) +# define MPOL_MF_MOVE_ALL (1<<2) +#endif #endif ============ Regards-- -Tomonori Mitani ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
