I accidentally had sent you the output of make from the posix
directory. Sorry for that. I have compiled a hello world program w.r.t
the native API of Xenomai, it worked fine.

Anyway, the output of 'make' from the native api directory is:

--------------------------------------------------------
linux-2gbt:/usr/local/rtnet/source/examples/xenomai/native # make
Making all in kernel
make[1]: Entering directory `/usr/src/rtnet/examples/xenomai/native/kernel'
make[2]: Entering directory `/usr/src/linux-2.6.38.8'
  Building modules, stage 2.
  MODPOST 2 modules
make[2]: Leaving directory `/usr/src/linux-2.6.38.8'
make[1]: Leaving directory `/usr/src/rtnet/examples/xenomai/native/kernel'
make[1]: Entering directory `/usr/src/rtnet/examples/xenomai/native'
cc -DHAVE_CONFIG_H -I. -I../../../config   -s -Wall -pipe -O2
-fstrict-aliasing -I../../../stack/include -I../../../stack/include -s
-MT rtnet_ifs.o -MD -MP -MF .deps/rtnet_ifs.Tpo -c -o rtnet_ifs.o
rtnet_ifs.c
In file included from rtnet_ifs.c:31:
../../../stack/include/rtnet.h:27:23: error: rtdm/rtdm.h: No such file
or directory
rtnet_ifs.c: In function ‘main’:
rtnet_ifs.c:51: warning: implicit declaration of function ‘rt_dev_socket’
rtnet_ifs.c:61: warning: implicit declaration of function ‘rt_dev_ioctl’
rtnet_ifs.c:61: error: ‘SIOCGIFCONF’ undeclared (first use in this function)
rtnet_ifs.c:61: error: (Each undeclared identifier is reported only once
rtnet_ifs.c:61: error: for each function it appears in.)
rtnet_ifs.c:63: warning: implicit declaration of function ‘rt_dev_close’
rtnet_ifs.c:73: error: ‘SIOCGIFFLAGS’ undeclared (first use in this function)
rtnet_ifs.c:83: error: ‘SIOCGIFINDEX’ undeclared (first use in this function)
make[1]: *** [rtnet_ifs.o] Error 1
make[1]: Leaving directory `/usr/src/rtnet/examples/xenomai/native'
make: *** [all-recursive] Error 1
linux-2gbt:/usr/local/rtnet/source/examples/xenomai/native #

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

And this is a pentium 4 x86 machine, if that matters.

Please help.
-Anisha

On 22/06/2012, Anisha Kaul <born.rebel...@gmail.com> wrote:
> Greetings,
>
> Xenomai 2.6.0 is installed. `xeno-test` does work.
>
> This rtnet version is the latest from the git repository. It is
> installed properly. I just ran make on the examples section and I am
> getting the error mentioned above.
>
> I've attached the outputs of some relevant commands below.
> What else should I post here for you to help me?
>
> anisha@linux-2gbt:~> uname -a
> Linux linux-2gbt 2.6.38.8-default #4 SMP Thu Jun 21 17:24:39 IST 2012
> i686 i686 i386 GNU/Linux
>
>
> -----------------------------------------------------------------------------
>
>
> linux-2gbt:/usr/local/rtnet/source/examples/xenomai/posix # make
> cc -DHAVE_CONFIG_H -I. -I../../../config   -s -Wall -pipe -O2
> -fstrict-aliasing -I../../../stack/include -s -MT rtt-sender.o -MD -MP
> -MF .deps/rtt-sender.Tpo -c -o rtt-sender.o rtt-sender.c
> In file included from rtt-sender.c:47:
> ../../../stack/include/rtnet.h:27:23: error: rtdm/rtdm.h: No such file
> or directory
> rtt-sender.c: In function ‘main’:
> rtt-sender.c:270: warning: implicit declaration of function ‘ioctl’
> rtt-sender.c:270: warning: implicit declaration of function ‘_IOW’
> rtt-sender.c:270: error: ‘RTDM_CLASS_NETWORK’ undeclared (first use in
> this function)
> rtt-sender.c:270: error: (Each undeclared identifier is reported only once
> rtt-sender.c:270: error: for each function it appears in.)
> rtt-sender.c:270: error: expected expression before ‘unsigned’
> make: *** [rtt-sender.o] Error 1
>
>
> -----------------------------------------------------------------------------
>
>
> linux-2gbt:~ # ls -R /usr/xenomai/include/rtdm/
> /usr/xenomai/include/rtdm/:
> rtcan.h  rtdm_driver.h  rtdm.h  rtipc.h  rtserial.h  rttesting.h
>
>
> -----------------------------------------------------------------------------
>
>
> linux-2gbt:/usr/xenomai/bin # ./xeno-config
> xeno-config --verbose
>         --version="2.6.0"
>         --cc="gcc"
>         --arch="x86"
>         --prefix="/usr/xenomai"
>         --xeno-cflags="-I/usr/xenomai/include -D_GNU_SOURCE
> -D_REENTRANT -Wall -Werror-implicit-function-declaration -pipe
> -D__XENO__"
>         --xeno-ldflags="-L/usr/xenomai/lib -lxenomai -lpthread -lrt "
>         --posix-cflags=""
>         --posix-ldflags="-Wl,@/usr/xenomai/lib/posix.wrappers
> -L/usr/xenomai/lib -lpthread_rt -lxenomai -lpthread -lrt "
>         --library-dir="/usr/xenomai/lib"
> Usage xeno-config --skin=skinname OPTIONS
> Options :
>         --help
>         --v,--verbose
>         --version
>         --cc
>         --arch
>         --prefix
>         --skin native|posix|psos|rtdm|uitron|vrtx|vxworks
>         --cflags
>         --ldflags
>         --lib*-dir,--libdir,--user-libdir
>
> Deprecated options:
>         --xeno-cflags
>         --xeno-ldflags
>         --posix-cflags
>         --posix-ldflags
>
> Please guide.
>
> --
> Anisha Kaul
>


-- 
Anisha Kaul

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to