"Randy.Dunlap" <rddunlap@osdl.org> wrote:

> "Randy.Dunlap" wrote:
> dolph van wrote:
>
>>hi, i have just downloaded ltp-full-20050107.tgz. untarred the source file and run make but i was encountering error upon running make. error was:
>>diotest2.c: In function 'main'
>>diotest2.c:148:'__NR_gettid' undeclared
>>
>>have already checked the file diotest2.c line 148 but am not very familiar with c language. need some advise how can i resolve this so i can install the application. we are planning for stress testing the servers asap. thnx for the immediate response
>
>
> diotest2.c includes sys/syscall.h, which includes asm/unistd.h,
> which should contain a #define for __NR_gettid.
>
> Can you verify that you have /usr/include/sys/syscall.h,
> /usr/include/asm/unistd.h, and that /usr/include/asm/unistd.h
> does or does not contain a #define for __NR_gettid ?
>
> What kernel version and distro are you targets?
>
dolph van wrote:
> hi, the server is running on redhat advance server with kernel
2.4.9-e.25enterprise. both syscall.h and unistd.h are present. but
under unistd.h, cannot find #define for __NR_gettid
>
> thnx very much
> -van-


>It sounds like that RHAS version doesn't support the gettid
>syscall. In this diotest2 program, gettid is only used to
>get a "random" file name, so you can use something else there,
>or tell LTP to skip that test case (and most of them that
>begin with diotest*).

>Please keep the Q&A on the mailing list, and please don't
t>op-post.

>--
>~Randy

 

hi, is there a way i can run the 'make' and ' make install' and complete the installation without encountering the same error or is there a way to bypass diotest2 for this matter? any help will be very appreciated

 

thnx

-van-


 


Do you Yahoo!?
The all-new My Yahoo! What will yours do?