Hi,

I tried to "make" with "ltp-2009-12-01.tar.gz" version.
I tried it in systems as follows:
 (1) kernel 2.6.18-164.el5 - architecture x86 
 (2) kernel 2.6.18-164.el5 - architecture x86_64

But both failed with following message:

------------
[...]
make[3]: Entering directory
`/home/LTP/ltp-2009-12-01/testcases/kernel/containers'
make -C libclone -f
"/home/LTP/ltp-2009-12-01/testcases/kernel/containers/libclone/Makefil
e" all
make[4]: Entering directory
`/home/LTP/ltp-2009-12-01/testcases/kernel/containers/libclone
'
gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall
-I/home/LTP/ltp-2009-12-01/testcases/k
ernel/include -I../../../../include -I../../../../include  -c -o libclone.o
libclone.c
In file included from libclone.h:31,
                 from libclone.c:17:
/home/LTP/ltp-2009-12-01/testcases/kernel/include/linux_syscall_numbers.h:24
: error: weak
declaration of 'syscall_cleanup_stub' must be public
make[4]: *** [libclone.o] Error 1
make[4]: Leaving directory
`/home/LTP/ltp-2009-12-01/testcases/kernel/containers/libclone'
make[3]: *** [libclone/libclone.a] Error 2
make[3]: Leaving directory
`/home/LTP/ltp-2009-12-01/testcases/kernel/containers'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/LTP/ltp-2009-12-01/testcases/kernel'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/LTP/ltp-2009-12-01/testcases'
make: *** [testcases-all] Error 2
------------


I tried to avoid this failure by revising "${LTPROOT}/testcases
/kernel/include/linux_syscall_numbers.h".

============
--- linux_syscall_numbers.h.org 2009-12-01 09:52:25.000000000 +0900
+++ linux_syscall_numbers.h     2009-12-01 11:37:10.000000000 +0900
@@ -21,7 +21,7 @@
  * result in compile-time errors and folks get the granularity they desire
  * when writing testcases.
  */
-static void syscall_cleanup_stub(void) __attribute__ ((weakref
("cleanup")));
+void syscall_cleanup_stub(void) __attribute__ ((weakref ("cleanup")));

 static void cleanup(void);

============

After applying this patch, "make" and "make install" succeeded in
both (1) and (2) systems.


Can I get some advice whether my revise above is right?


Thank you--

-Tomonori Mitani



------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to