The patch doesn't seem to fix the issue. I am getting failures as pasted
below.
make[5]: Entering directory
`/root/ltp-full-20090331/testcases/kernel/io/aio/aio02'
cc -Wall --static -Wall -g -O -I../../../../../include -Wall
-DTEST_NAME=\"cases/aio_tio.c\" -o cases/aio_tio main.c
-L../../../../../lib -lltp
In file included from cases/aio_tio.c:34,
from main.c:11:
cases/common.h:9:20: error: libaio.h: No such file or directory
In file included from main.c:11:
cases/aio_tio.c:45: error: expected ‘)’ before ‘ctx’
cases/aio_tio.c:63: error: expected ‘)’ before ‘ctx’
cases/aio_tio.c: In function ‘io_tio’:
cases/aio_tio.c:91: error: ‘io_context_t’ undeclared (first use in this
function)
cases/aio_tio.c:91: error: (Each undeclared identifier is reported only
once
cases/aio_tio.c:91: error: for each function it appears in.)
cases/aio_tio.c:91: error: expected ‘;’ before ‘myctx’
cases/aio_tio.c:92: error: array type has incomplete element type
cases/aio_tio.c:101: warning: implicit declaration of function
‘io_queue_init’
cases/aio_tio.c:101: error: ‘myctx’ undeclared (first use in this
function)
cases/aio_tio.c:107: error: ‘IO_CMD_FSYNC’ undeclared (first use in this
function)
cases/aio_tio.c:108: error: ‘IO_CMD_FDSYNC’ undeclared (first use in
this function)
cases/aio_tio.c:109: error: ‘IO_CMD_PWRITE’ undeclared (first use in
this function)
cases/aio_tio.c:117: warning: implicit declaration of function
‘io_prep_pwrite’
cases/aio_tio.c:118: warning: implicit declaration of function
‘io_set_callback’
cases/aio_tio.c:118: error: ‘work_done’ undeclared (first use in this
function)
cases/aio_tio.c:123: error: ‘IO_CMD_PREAD’ undeclared (first use in this
function)
cases/aio_tio.c:131: warning: implicit declaration of function
‘io_prep_pread’
cases/aio_tio.c:137: error: ‘IO_CMD_POLL’ undeclared (first use in this
function)
cases/aio_tio.c:142: error: ‘IO_CMD_NOOP’ undeclared (first use in this
function)
cases/aio_tio.c:157: warning: implicit declaration of function
‘io_submit’
cases/aio_tio.c:177: warning: implicit declaration of function
‘io_wait_run’
cases/aio_tio.c:186: warning: implicit declaration of function
‘io_fsync’
cases/aio_tio.c:196: warning: implicit declaration of function
‘io_fdsync’
cases/aio_tio.c:219: warning: implicit declaration of function
‘io_queue_release’
cases/aio_tio.c:92: warning: unused variable ‘iocb_array’
cases/aio_tio.c: In function ‘test_main’:
cases/aio_tio.c:230: error: ‘IO_CMD_PWRITE’ undeclared (first use in
this function)
cases/aio_tio.c:236: error: ‘IO_CMD_PREAD’ undeclared (first use in this
function)
cases/aio_tio.c:267: error: ‘IO_CMD_FSYNC’ undeclared (first use in this
function)
cases/aio_tio.c:274: error: ‘IO_CMD_FDSYNC’ undeclared (first use in
this function)
make[5]: *** [cases/aio_tio] Error 1
make[5]: Leaving directory
`/root/ltp-full-20090331/testcases/kernel/io/aio/aio02'
make[4]: *** [all] Error 2
make[4]: Leaving directory
`/root/ltp-full-20090331/testcases/kernel/io/aio'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/root/ltp-full-20090331/testcases/kernel/io'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/ltp-full-20090331/testcases/kernel'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/ltp-full-20090331/testcases'
make: *** [all] Error 2
On Fri, 2009-04-03 at 12:53 +0530, Subrata Modak wrote:
> Hi Poornima,
>
> On Thu, 2009-04-02 at 18:55 +0530, Poornima Nayak wrote:
> Hi
> >
> > This could be issue with automake in fedora11, is there any way to fix it ?
> >
> > make[5]: Entering directory
> > `/root/ltp-full-20090331/testcases/kernel/io/aio/aio02'
> > cc -Wall --static -Wall -g -O -I../../../../../include -Wall
> > -DTEST_NAME=\"cases/aio_tio.c\" -o cases/aio_tio main.c
> > -L../../../../../lib -lltp
> > main.c: In function bmainb:
> > main.c:38: warning: control reaches end of non-void function
> > /usr/bin/ld: cannot find -lc
>
> This seems to be some Linker issue in Fedora. DoesnB4t occur on
> any of my systems. Can you please try out the following patch,
> and see if it works:
>
> Signed-Off-By: Subrata Modak <[email protected]>,
> ---
>
> diff -uprN ltp-full-20090331/testcases/kernel/io/aio/aio02.orig/main.c
> ltp-full-20090331/testcases/kernel/io/aio/aio02/main.c
> --- ltp-full-20090331/testcases/kernel/io/aio/aio02.orig/main.c
> 2009-04-03 12:46:39.000000000 +0530
> +++ ltp-full-20090331/testcases/kernel/io/aio/aio02/main.c 2009-04-03
> 12:44:20.000000000 +0530
> @@ -8,6 +8,7 @@
> #include <sys/stat.h>
> #include <unistd.h>
> #include "test.h"
> +#include TEST_NAME
>
> #ifdef HAVE_LIBAIO_H
>
> @@ -15,8 +16,6 @@
>
> char test_name[] = TEST_NAME;
>
> -#include TEST_NAME
> -
> int main(void)
> {
> int res;
>
> > collect2: ld returned 1 exit status
> > make[5]: *** [cases/aio_tio] Error 1
> > make[5]: Leaving directory
> > `/root/ltp-full-20090331/testcases/kernel/io/aio/aio02'
> > make[4]: *** [all] Error 2
> > make[4]: Leaving directory
> > `/root/ltp-full-20090331/testcases/kernel/io/aio'
> > make[3]: *** [all] Error 2
> > make[3]: Leaving directory `/root/ltp-full-20090331/testcases/kernel/io'
> > make[2]: *** [all] Error 2
> > make[2]: Leaving directory `/root/ltp-full-20090331/testcases/kernel'
> > make[1]: *** [all] Error 2
> > make[1]: Leaving directory `/root/ltp-full-20090331/testcases'
> > make: *** [all] Error 2
> >
> > Regards
> > Poornima
> >
>
> Regards--
> Subrata
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Ltp-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list