Re: AIO Support and related package information??

From: Sébastien Dugué
Date: Wed Sep 28 2005 - 02:34:11 EST


On Tue, 2005-09-27 at 08:09 +0100, vikas gupta wrote:
> HI Sebastien,
> Thanks for your Reply
> ...
>
> As i told you that i am trying to build libposix
> package for arm platform,with bare Kernel AIO Support
> (without applying patches) and libposix-0.6 package.
>
> When i tried to build the package then while
> configuration it is showing Following
>
> Error:
>
> "Checking for default value for max events...
> configure: error: cannot
> run
> test program while cross compiling
> See `config.log' for more details."
>
> I traced the configure script for following Error and
> got following code that is, I think causing this
> Problem:
>
> Code in configure script:
>
> if test "${enable_default_maxevents+set}" = set; then
> enableval="$enable_default_maxevents"
> ac_aio_default_maxevents=$enableval
> else
> echo "$as_me:$LINENO: checking for default value for
> max events" >&5
> echo $ECHO_N "checking for default value for max
> events... $ECHO_C" >&6
> if test "$cross_compiling" = yes; then
> { { echo "$as_me:$LINENO: error: cannot run test
> program while cross
> compiling
> See \`config.log' for more details." >&5
> echo "$as_me: error: cannot run test program while
> cross compiling
> See \`config.log' for more details." >&2;}
> { (exit 1); exit 1; }; }
> else
> cat >conftest.$ac_ext <<_ACEOF
>
> Even on x86 it is going into else part but their as
> cross compiling is false in that case it goes to
> cat > conftest.$ac_ext <<_ACEOF
>
>
> So With this code while cross compiling we always face
> the same problem...
>
> So Can you please tell me how to resolve this
> problem...
>
> Thanks in advance...
>
> Vikas
>

Ok, then try to disable all the feature with:

./configure --disable-default-maxevents --disable-aio-signal
--disable-lio-signal --disable-lio-wait --disable-cancel-fd
--disable-buffered-aio

that way, the configure script will not try to autodetect
kernel features.

The configure options available may be found with

configure --help

aio_read and aio_write with no event notification should work
provided you implemented the ARM syscall wrappers.

Sebastien.


--
------------------------------------------------------

Sébastien Dugué BULL/FREC:B1-247
phone: (+33) 476 29 77 70 Bullcom: 229-7770

mailto:sebastien.dugue@xxxxxxxx

Linux POSIX AIO: http://www.bullopensource.org/posix

------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/