Hi,
I report a build failure and a patch for it.
If your system is not either i386 or x86_64,
making in ltp-full-20090131 fails as follows:
$ make all
:
make[3]: Entering directory
`/home/ikarashi/ltp/ltp-full-20090131/testcases/misc/tcore_patch_test_suites'
gcc -g -O2 -Wall -I../../../include -L../../../lib tcore.c -lltp -lm
-lpthread -o tcore
tcore.c:212: error: redefinition of 'TST_TOTAL'
tcore.c:30: error: previous definition of 'TST_TOTAL' was here
make[3]: *** [tcore] Error 1
make[3]: Leaving directory
`/home/ikarashi/ltp/ltp-full-20090131/testcases/misc/tcore_patch_test_suites'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ikarashi/ltp/ltp-full-20090131/testcases/misc'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/ikarashi/ltp/ltp-full-20090131/testcases'
make: *** [all] Error 2
$
It's because wrong position of TST_TOTAL definition.
Signed-off-by: Seiichi Ikarashi <[email protected]>
Regards,
--- ltp-full-20090131/testcases/misc/tcore_patch_test_suites/tcore.c 2009-01-15 16:27:42.000000000 +0900
+++ ltp-full-20090131.modified/testcases/misc/tcore_patch_test_suites/tcore.c 2009-02-04 09:49:26.000000000 +0900
@@ -27,7 +27,6 @@ extern int Tst_count; /*
extern char *TESTDIR; /* temporary dir created by tst_tmpdir() */
/* Global Variables */
char *TCID = "tcore"; /* test program identifier. */
-int TST_TOTAL = 1; /* total number of tests in this file. */
#if defined __i386__ || defined(__x86_64__)
#include <stdio.h>
@@ -38,6 +37,8 @@ int TST_TOTAL = 1; /*
#define BUFFER_SIZE 16
+int TST_TOTAL = 1; /* total number of tests in this file. */
+
/* Circular buffer of integers. */
struct prodcons
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list