On Thu, 2008-11-20 at 18:46 +0530, Sudhir Kumar wrote: > On Thu, Nov 20, 2008 at 01:44:47PM +0530, Subrata Modak wrote: > To check if unshare is supported or not, we can add code to the Makefile > itself. Even adding code to check Kernel Version in Makefile will be > better in my opinion. > Veerendra ?
Look into how autoconf is being used in some of the LTP test cases. See the ltp/m4 directories. That will be a better option. Regards-- Subrata > > > > Hi Veerendra/Serge, > > > > I found the following compilation error for NETNS library on the > > following machine: > > Linux 2.6.23.13 #1 SMP Wed Jan 9 18:14:28 PST 2008 ia64 GNU/Linux > > > > I probably reported this earlier in some mail thread. Please have a look > > at this. May be you would like to solve this through autoconf, usage of > > which is recently introduce in LTP: > > > > make[4]: Entering directory > > `/root/subrata/ltp/ltp-intermediate-20081120/testcases/kernel/containers/netns' > > cc -Wall -Wall -I../../../../include -I../libclone > > check_netns_enabled.c -L../../../../lib > > -L../libclone ../libclone/libnetns.a -lltp -o check_netns_enabled > > check_netns_enabled.c: In function 'main': > > check_netns_enabled.c:40: warning: implicit declaration of function > > 'unshare' > > /tmp/ccWWnRn2.o: In function `main': > > check_netns_enabled.c:(.text+0xe2): undefined reference to `unshare' > > collect2: ld returned 1 exit status > > make[4]: *** [check_netns_enabled] Error 1 > > > > Regards-- > > Subrata > > > > > > > > ------------------------------------------------------------------------- > > 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 > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/ltp-list > ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
