OK. It seems I have to add "include" in testcases/kernel/Makefile
     UCLINUX_SUBDIRS = include syscalls
and add "uclinux" in testcases/kernel/include/Makefile
     uclinux all: linux_syscall_numbers.h

to fix the fork I use "FORK_OR_VFORK" instead of "fork"

On Wed, 03 Sep 2008 16:07:35 -0400, David Wu  
<[EMAIL PROTECTED]> wrote:

> Hi all,
>
> I am using ltp-full-20080831.tgz and compiling it using
>     CROSS_COMPILER=m68k-uclinux- CROSS_CFLAGS="-mcpu=5329 -DUCLINUX"
> LDFLAGS=-static make uclinux
>
> and noticing the following error:
>
> make[4]: Entering directory
> `/tmp/ltp/ltp-full-20080831/testcases/kernel/syscalls/eventfd'
> m68k-uclinux-gcc -Wall -mcpu=5329 -DUCLINUX -I../../include -g -Wall
> -I../../../../include -Wall  -static  eventfd01.c  -L../../../../lib  
> -lltp
> -o eventfd01
> eventfd01.c:60:35: error: linux_syscall_numbers.h: No such file or
> directory
> eventfd01.c: In function 'myeventfd':
> eventfd01.c:76: error: '__NR_eventfd' undeclared (first use in this
> function)
> eventfd01.c:76: error: (Each undeclared identifier is reported only once
> eventfd01.c:76: error: for each function it appears in.)
> eventfd01.c: In function 'child_inherit_test':
> eventfd01.c:464: warning: implicit declaration of function 'fork'
> make[4]: *** [eventfd01] Error 1
> make[4]: Leaving directory
> `/tmp/ltp/ltp-full-20080831/testcases/kernel/syscalls/eventfd'
> make[3]: *** [uclinux] Error 2
> make[3]: Leaving directory
> `/tmp/ltp/ltp-full-20080831/testcases/kernel/syscalls'
> make[2]: *** [uclinux] Error 2
> make[2]: Leaving directory `/tmp/ltp/ltp-full-20080831/testcases/kernel'
> make[1]: *** [uclinux] Error 2
> make[1]: Leaving directory `/tmp/ltp/ltp-full-20080831/testcases'
> make: *** [uclinux] Error 2
>
> are we missing linux_syscall_numbers.h since I couldn't find it anywhere?
>
> thanks,
>



-- 
David Wu

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to