On Jan 7, 2011, at 6:36 AM, Cyril Hrubis wrote:
> 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
Now you know why I used void casts in a few spots :). Some are of value, some
are fud.
> 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
Ok. It would be nice to have a summary email (off-list) with all of these
warnings, as they can lead to really bad problems. I may do like I've done in
some directories as well and add -Wno-error with a comment stating why things
were done that way.
> plus some printf() formatting issues
Same as above if a note isn't already in the Makefiles.
> 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
Both items with getdelays.c, etc and realtime fixed, along with a
handful of other related items.
Thanks,
-Garrett
------------------------------------------------------------------------------
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.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list