Problem solved; the missing CONFIG_XENO_OPT_RTDM_SELECT in the kernel
.config was the culprit.
I am a bit surprised that it is possible to configure the kernel with
XENO_OPT_POSIX_SELECT on and CONFIG_XENO_OPT_RTDM_SELECT off; shouldn't
there be some kind of check here?
Anyway, it was an interesting experience to build and debug a kernel for the
first time in my life. Thanks a lot, Jan and especially Gilles, for
helping me to get started with this and to solve the problem.
If anyone else is trying to use select() with Xenomai 2.4, it may be good
to know that __wrap_select contains another bug: in case of timeout, it
returns -1 but sets errno to 0, instead of returning 0. This is true for
both 2.4.9 and 2.4.10, but it is fixed in 2.5.5 (the most recent version at
the time of writing).
Johan
On Thu, Oct 14, 2010 at 8:45 AM, Jan Kiszka <jan.kis...@web.de> wrote:
> Am 13.10.2010 14:31, Johan Cockx wrote:
> > The problem seems to be that CONFIG_RTNET_SELECT_SUPPORT is not defined
> when
> > compiling rtnet.
> >
> > In the rtnet configure script, this is automatically defined when
> > $CONFIG_XENO_OPT_RTDM_SELECT is set to 'y', but I have no idea how this
> is
> > supposed to be set. It was certainly not set when I configured rtnet.
>
> CONFIG_XENO_OPT_RTDM_SELECT must be part of your Xenomai kernel .config.
> If it was not at the time you configured RTnet, then repeat that step now.
>
> Jan
>
>
>
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users