Re: [LTP] [PATCH 00/13]Fix a few syntax error

Cyril Hrubis
2011-01-07T14:20:02Z

Hi!
>
> Ok -- good to note for next time I guess. I fixed all of the compilation errors so now people can report runtime issues. There are a handful of them.
>

I still could not compile the latest git. I've got a bunch of:

pipe declared with warn_unused_result
write declared with warn_unused_result
read declared with warn_unused_result

little less of:

getcwd declared with warn_unused_result
chdir declared with warn_unused_result
ftruncate declared with warn_unused_result
system declared with warn_unused_result

plus some printf() formatting issues

And after disabling -Werror it stops on getdelays.c with

getdelays.c: In function 'main':
getdelays.c:525: warning: implicit declaration of function 'tst_exit'
getdelays.c:526: warning: control reaches end of non-void function
getdelays.c:266: warning: 'cmd_type' may be used uninitialized in this
function
../../../../lib/libltp.a(tst_res.o): In function `cat_file':
/home/metan/Work/git/ltp-dev/lib/tst_res.c:710: undefined reference to `TCID'
/home/metan/Work/git/ltp-dev/lib/tst_res.c:728: undefined reference to `TCID'
/home/metan/Work/git/ltp-dev/lib/tst_res.c:720: undefined reference to `TCID'
../../../../lib/libltp.a(tst_res.o): In function `tst_res':
/home/metan/Work/git/ltp-dev/lib/tst_res.c:321: undefined reference to `TCID'
../../../../lib/libltp.a(tst_res.o): In function `tst_condense':
/home/metan/Work/git/ltp-dev/lib/tst_res.c:377: undefined reference to `TCID'
../../../../lib/libltp.a(tst_res.o):/home/metan/Work/git/ltp-dev/lib/tst_res.c:3
05: more undefined references to `TCID' follow
../../../../lib/libltp.a(tst_res.o): In function `tst_brk':
/home/metan/Work/git/ltp-dev/lib/tst_res.c:613: undefined reference to `TST_TOTAL'

The same goes for testcases/kernel/io/ltp-aiodio/dirty.c and
testcases/kernel/security/cap_bound/dummy.c

Then it hangs on securebits but is suppose that this is bug somewhere in
configure not detecting securebits headers right. I'll look into this
later.

The realtime tests hangs on:

async_handler_jk.c: In function 'main':
async_handler_jk.c:162: warning: implicit declaration of function
'tst_exit'
async_handler_jk.c:163: warning: control reaches end of non-void
function
/tmp/ccGU6ubN.o: In function `main':
/home/metan/Work/git/ltp-dev/testcases/realtime/func/async_handler/async_handler_jk.c:162:
undefined reference to `tst_exit'
collect2: ld returned 1 exit status
make[2]: *** [async_handler_jk] Error 1
make[2]: Leaving directory
`/home/metan/Work/git/ltp-dev/testcases/realtime/func/async_handler'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/metan/Work/git/ltp-dev/testcases/realtime/func'
make: *** [all] Error 2

The rest seems to compile fine.

--
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.