Hi,
I downloaded ltp-20041007-full, and tried to compile it in Itanium2 machine redhat enterprise linux as 2.1 update 6, got below error,any idea?
 
Thx.
 
# uname -a
Linux rx4640-2 2.4.18-e.48smp #1 SMP Wed Sep 29 18:26:03 EDT 2004 ia64 unknown
 
# make
make[1]: Entering directory `/test/ltp/lib'
cc -Wall  -Wall -I../include    -c -o dataascii.o dataascii.c
cc -Wall  -Wall -I../include    -c -o databin.o databin.c
cc -Wall  -Wall -I../include    -c -o datapid.o datapid.c
cc -Wall  -Wall -I../include    -c -o file_lock.o file_lock.c
cc -Wall  -Wall -I../include    -c -o forker.o forker.c
cc -Wall  -Wall -I../include    -c -o get_high_address.o get_high_address.c
cc -Wall  -Wall -I../include    -c -o open_flags.o open_flags.c
cc -Wall  -Wall -I../include    -c -o parse_opts.o parse_opts.c
cc -Wall  -Wall -I../include    -c -o pattern.o pattern.c
cc -Wall  -Wall -I../include    -c -o random_range.o random_range.c
cc -Wall  -Wall -I../include    -c -o rmobj.o rmobj.c
cc -Wall  -Wall -I../include    -c -o search_path.o search_path.c
cc -Wall  -Wall -I../include    -c -o string_to_tokens.o string_to_tokens.c
cc -Wall  -Wall -I../include    -c -o str_to_bytes.o str_to_bytes.c
cc -Wall  -Wall -I../include    -c -o tlibio.o tlibio.c
cc -Wall  -Wall -I../include    -c -o tst_kvercmp.o tst_kvercmp.c
cc -Wall  -Wall -I../include    -c -o tst_res.o tst_res.c
cc -Wall  -Wall -I../include    -c -o tst_sig.o tst_sig.c
cc -Wall  -Wall -I../include    -c -o tst_tmpdir.o tst_tmpdir.c
cc -Wall  -Wall -I../include    -c -o write_log.o write_log.c
ar -cr libltp.a dataascii.o databin.o datapid.o file_lock.o forker.o get_high_address.o open_flags.o parse_opts.o pattern.o random_range.o rmobj.o search_path.o string_to_tokens.o str_to_bytes.o tlibio.o tst_kvercmp.o tst_res.o tst_sig.o tst_tmpdir.o write_log.o   
make[1]: Leaving directory `/test/ltp/lib'
make[1]: Entering directory `/test/ltp/pan'
cc -Wall  -w    -c -o pan.o pan.c
cc -Wall  -w    -c -o zoolib.o zoolib.c
cc -Wall  -w    -c -o splitstr.o splitstr.c
cc   pan.o zoolib.o splitstr.o -lm  -o pan
cc -Wall  -w    -c -o bump.o bump.c
cc   bump.o zoolib.o -lm  -o bump
cc -Wall  -w    -c -o scanner.o scanner.c
lex -l -t scan.l > scan.c
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 179: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 179: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 133: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 133: warning, dangerous trailing context
"scan.l", line 160: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 160: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 111: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 111: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 171: warning, dangerous trailing context
"scan.l", line 171: warning, dangerous trailing context
"scan.l", line 236: warning, dangerous trailing context
"scan.l", line 97: warning, dangerous trailing context
"scan.l", line 97: warning, dangerous trailing context
cc -Wall  -w    -c -o scan.o scan.c
cc -Wall  -w    -c -o reporter.o reporter.c
cc -Wall  -w    -c -o tag_report.o tag_report.c
cc -Wall  -w    -c -o symbol.o symbol.c
cc -Wall  -w    -c -o debug.o debug.c
cc   scanner.o scan.o reporter.o tag_report.o symbol.o splitstr.o debug.o -lm  -o scanner
rm scan.c
make[1]: Leaving directory `/test/ltp/pan'
make[1]: Entering directory `/test/ltp/testcases'
make[2]: Entering directory `/test/ltp/testcases/commands'
make[3]: Entering directory `/test/ltp/testcases/commands/ade'
make[4]: Entering directory `/test/ltp/testcases/commands/ade/ar'
cc -o file1 file1.c -Wall  -w -O
cc -o file2 file2.c -Wall  -w -O
cc -o file3 file3.c -Wall  -w -O
cc -Wall  -w -O   -c -o file1.o file1.c
make[4]: Leaving directory `/test/ltp/testcases/commands/ade/ar'
make[4]: Entering directory `/test/ltp/testcases/commands/ade/objdump'
cc -O -Wall  -w -o  test ./test.c
cc -c -Wall  -w -o  test_arch.o ./test.c
cc -Wall  -w -o  test_D ./test.c
make[4]: Leaving directory `/test/ltp/testcases/commands/ade/objdump'
make[4]: Entering directory `/test/ltp/testcases/commands/ade/size'
cc -Wall  -w -O    test.c   -o test
make[4]: Leaving directory `/test/ltp/testcases/commands/ade/size'
make[4]: Entering directory `/test/ltp/testcases/commands/ade/ld'
cc -Wall  -O -Wall    -c -o d1.o d1.c
cc -Wall  -O -Wall    -c -o f1.o f1.c
cc -Wall  -O -Wall    -c -o ldmain.o ldmain.c
cc -Wall  -O -Wall    -c -o rd1.o rd1.c
cc -Wall  -O -Wall    -c -o rf1.o rf1.c
make[4]: Leaving directory `/test/ltp/testcases/commands/ade/ld'
make[4]: Entering directory `/test/ltp/testcases/commands/ade/ldd'
cc -Wall  -c -O -fPIC    -c -o lddfile1.o lddfile1.c
cc -Wall  -c -O -fPIC    -c -o lddfile2.o lddfile2.c
cc -Wall  -c -O -fPIC    -c -o lddfile3.o lddfile3.c
cc -Wall  -c -O -fPIC    -c -o lddfile4.o lddfile4.c
cc -Wall  -c -O -fPIC    -c -o lddfile5.o lddfile5.c
cc -Wall  -c -O -fPIC    -c -o main.o main.c
make[4]: Leaving directory `/test/ltp/testcases/commands/ade/ldd'
make[4]: Entering directory `/test/ltp/testcases/commands/ade/nm'
cc -Wall  -O -Wall   -c -o nmfile1.o nmfile1.c
cc -Wall  -O -Wall   -c -o nmfile2.o nmfile2.c
cc -Wall  -O -Wall   -c -o nmfile3.o nmfile3.c
cc -Wall  -O -Wall   -c -o nmfile.o nmfile.c
make[4]: Leaving directory `/test/ltp/testcases/commands/ade/nm'
make[4]: Entering directory `/test/ltp/testcases/commands/ade/file'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/test/ltp/testcases/commands/ade/file'
make[3]: Leaving directory `/test/ltp/testcases/commands/ade'
make[3]: Entering directory `/test/ltp/testcases/commands/cpio'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/test/ltp/testcases/commands/cpio'
make[3]: Entering directory `/test/ltp/testcases/commands/cron'
cc -o cron_dirs_check cron_dirs_check.c
chmod 755 cron_tests.sh
make[3]: Leaving directory `/test/ltp/testcases/commands/cron'
make[3]: Entering directory `/test/ltp/testcases/commands/eject'
cc -Wall  -I../../../include -Wall    check_tray.c -L../../../lib -lltp  -o check_tray
make[3]: Leaving directory `/test/ltp/testcases/commands/eject'
make[3]: Entering directory `/test/ltp/testcases/commands/fileutils'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/test/ltp/testcases/commands/fileutils'
make[3]: Entering directory `/test/ltp/testcases/commands/gzip'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/test/ltp/testcases/commands/gzip'
make[3]: Entering directory `/test/ltp/testcases/commands/mail'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/test/ltp/testcases/commands/mail'
make[3]: Entering directory `/test/ltp/testcases/commands/su'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/test/ltp/testcases/commands/su'
make[3]: Entering directory `/test/ltp/testcases/commands/tar'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/test/ltp/testcases/commands/tar'
make[2]: Leaving directory `/test/ltp/testcases/commands'
make[2]: Entering directory `/test/ltp/testcases/kernel'
make[3]: Entering directory `/test/ltp/testcases/kernel/fs'
make[4]: Entering directory `/test/ltp/testcases/kernel/fs/acls'
File sys/xattr.h does not exist, attr tests cannot be build!
make[4]: Leaving directory `/test/ltp/testcases/kernel/fs/acls'
make[4]: Entering directory `/test/ltp/testcases/kernel/fs/doio'
cc -Wall  -Wall -I../../../../include -D_LARGEFILE64_SOURCE   -c -o doio.o doio.c
cc -o doio doio.o -I. -Wall  -Wall -I../../../../include -D_LARGEFILE64_SOURCE -L../../../../lib -lltp
cc -Wall  -Wall -I../../../../include -D_LARGEFILE64_SOURCE   -c -o growfiles.o growfiles.c
growfiles.c: In function `main':
growfiles.c:1511: warning: control reaches end of non-void function
cc -o growfiles growfiles.o -Wall  -Wall -I../../../../include -D_LARGEFILE64_SOURCE -L../../../../lib -lltp
cc -Wall  -Wall -I../../../../include -D_LARGEFILE64_SOURCE   -c -o iogen.o iogen.c
cc -o iogen iogen.o -Wall  -Wall -I../../../../include -D_LARGEFILE64_SOURCE -L../../../../lib -lltp
cp rwtest.sh rwtest
chmod a+rx rwtest
make[4]: Leaving directory `/test/ltp/testcases/kernel/fs/doio'
make[4]: Entering directory `/test/ltp/testcases/kernel/fs/fs_inod'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/test/ltp/testcases/kernel/fs/fs_inod'
make[4]: Entering directory `/test/ltp/testcases/kernel/fs/fsstress'
cc -Wall  -Wall -g -DNO_XFS -I. -D_LARGEFILE64_SOURCE -D_GNU_SOURCE    fsstress.c   -o fsstress
make[4]: Leaving directory `/test/ltp/testcases/kernel/fs/fsstress'
make[4]: Entering directory `/test/ltp/testcases/kernel/fs/fs_perms'
cc -c fs_perms.c -Wall  -Wall
cc fs_perms.o -o fs_perms -Wall  -Wall
cc -c testx.c -Wall  -Wall
cc testx.o -o testx.file -Wall  -Wall
make[4]: Leaving directory `/test/ltp/testcases/kernel/fs/fs_perms'
make[4]: Entering directory `/test/ltp/testcases/kernel/fs/fsx-linux'
cc -Wall  -w -O    fsx-linux.c   -o fsx-linux
make[4]: Leaving directory `/test/ltp/testcases/kernel/fs/fsx-linux'
make[4]: Entering directory `/test/ltp/testcases/kernel/fs/ftest'
cc -Wall  -I../../../../include -Wall -g    ftest01.c -L../../../../lib -lltp  -o ftest01
cc -Wall  -I../../../../include -Wall -g    ftest02.c -L../../../../lib -lltp  -o ftest02
cc -Wall  -I../../../../include -Wall -g    ftest03.c -L../../../../lib -lltp  -o ftest03
cc -Wall  -I../../../../include -Wall -g    ftest04.c -L../../../../lib -lltp  -o ftest04
cc -Wall  -I../../../../include -Wall -g    ftest05.c -L../../../../lib -lltp  -o ftest05
cc -Wall  -I../../../../include -Wall -g    ftest06.c -L../../../../lib -lltp  -o ftest06
cc -Wall  -I../../../../include -Wall -g    ftest07.c -L../../../../lib -lltp  -o ftest07
cc -Wall  -I../../../../include -Wall -g    ftest08.c -L../../../../lib -lltp  -o ftest08
make[4]: Leaving directory `/test/ltp/testcases/kernel/fs/ftest'
make[4]: Entering directory `/test/ltp/testcases/kernel/fs/inode'
cc -Wall  -I../../../../include -g -O -Wall -DLINUX    inode01.c -L../../../../lib -lltp   -o inode01
cc -Wall  -I../../../../include -g -O -Wall -DLINUX    inode02.c -L../../../../lib -lltp   -o inode02
make[4]: Leaving directory `/test/ltp/testcases/kernel/fs/inode'
make[4]: Entering directory `/test/ltp/testcases/kernel/fs/lftest'
cc -Wall  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE    lftest.c   -o lftest
make[4]: Leaving directory `/test/ltp/testcases/kernel/fs/lftest'
make[4]: Entering directory `/test/ltp/testcases/kernel/fs/linktest'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/test/ltp/testcases/kernel/fs/linktest'
make[4]: Entering directory `/test/ltp/testcases/kernel/fs/openfile'
cc -Wall  -Wall    openfile.c -lpthread  -o openfile
make[4]: Leaving directory `/test/ltp/testcases/kernel/fs/openfile'
make[4]: Entering directory `/test/ltp/testcases/kernel/fs/proc'
cc -Wall  -I../../../../include    proc01.c -L../../../../lib -lltp  -o proc01
make[4]: Leaving directory `/test/ltp/testcases/kernel/fs/proc'
make[4]: Entering directory `/test/ltp/testcases/kernel/fs/stream'
cc -Wall  -I../../../../include -Wall -g    stream01.c -L../../../../lib -lltp  -o stream01
cc -Wall  -I../../../../include -Wall -g    stream02.c -L../../../../lib -lltp  -o stream02
cc -Wall  -I../../../../include -Wall -g    stream03.c -L../../../../lib -lltp  -o stream03
cc -Wall  -I../../../../include -Wall -g    stream04.c -L../../../../lib -lltp  -o stream04
cc -Wall  -I../../../../include -Wall -g    stream05.c -L../../../../lib -lltp  -o stream05
make[4]: Leaving directory `/test/ltp/testcases/kernel/fs/stream'
make[3]: Leaving directory `/test/ltp/testcases/kernel/fs'
make[3]: Entering directory `/test/ltp/testcases/kernel/io'
make[4]: Entering directory `/test/ltp/testcases/kernel/io/direct_io'
cc -c diotest_routines.c -Wall  -O -Wall -DSHARED_OFILE -D_GNU_SOURCE -I../../../../include -L../../../../lib 
cc -o diotest1 diotest_routines.o diotest1.c  -Wall  -O -Wall -DSHARED_OFILE -D_GNU_SOURCE -I../../../../include -L../../../../lib  -lltp
rm -f diotest1.o
cc -o diotest2 diotest_routines.o diotest2.c -Wall  -O -Wall -DSHARED_OFILE -D_GNU_SOURCE -I../../../../include -L../../../../lib  -lltp
diotest2.c: In function `main':
diotest2.c:148: `__NR_gettid' undeclared (first use in this function)
diotest2.c:148: (Each undeclared identifier is reported only once
diotest2.c:148: for each function it appears in.)
make[4]: *** [diotest2] Error 1
make[4]: Leaving directory `/test/ltp/testcases/kernel/io/direct_io'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/test/ltp/testcases/kernel/io'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/test/ltp/testcases/kernel'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/test/ltp/testcases'
make: *** [all] Error 2



Do You Yahoo!?
注册世界一流品质的雅虎免费电邮