All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vincent Berenz <vberenz@tuebingen.mpg.de>
To: Philippe Gerum <rpm@xenomai.org>, xenomai@xenomai.org
Subject: Re: [Xenomai] Xenomai 3.0.5 : RTIPC/XDDP protocol not supported by kernel
Date: Thu, 7 Dec 2017 14:42:15 +0100	[thread overview]
Message-ID: <3fd685e2-b399-34c7-8529-48edc391712b@tuebingen.mpg.de> (raw)
In-Reply-To: <d009beb3-49d6-b318-e872-51ce93e49cf2@xenomai.org>

Many thanks for the answer

The demos xddp-echo , xddp-label and xddp-stream seems all to be working ok.

As sanity check, I copied xddp-echo.c to my workspace and compiled it 
with the rest of our code.

Compilation goes ok, but execution fails with message:

     socket: Address family not supported by protocol

This brought my attention to this:

    http://xenomai.org/pipermail/xenomai/2014-February/030113.html

which says:

   "Your application is likely not wrapping POSIX symbols properly, calling
    regular socket() instead of the Xenomai implementation. "

We do things this way, possibly something is missing ?

   exec_program(${XENOMAI_ROOT}/bin/xeno-config ARGS "--skin=native 
--cflags"
                                                   OUTPUT_VARIABLE 
XENOMAI_C_FLAGS)
   exec_program(${XENOMAI_ROOT}/bin/xeno-config ARGS "--skin=native 
--ldflags"
     OUTPUT_VARIABLE XENOMAI_LD_FLAGS)

   set(CMAKE_C_FLAGS "${XENOMAI_C_FLAGS} ${CMAKE_C_FLAGS}")
   set(CMAKE_CPP_FLAGS "${XENOMAI_C_FLAGS} ${CMAKE_CPP_FLAGS}")

   # libraries / executable are linked against this later on
   set(LAB_STD_LIBS alchemy copperplate cobalt modechk trank pthread 
edit curses nsl glut GL GLU X11 Xmu m)

   link_directories(${XENOMAI_ROOT}/lib /usr/lib /usr/X11/lib64 
/usr/X11/lib /usr/lib64 ${CMAKE_LIBRARY_PATH})

   add_definitions(${XENOMAI_C_FLAGS})

   add_definitions(-D__XENO__)
   add_definitions(-pipe)
   add_definitions(-D_REENTRANT)
   add_definitions(-D_GNU_SOURCE)

Best

Vincent


On 07.12.2017 10:46, Philippe Gerum wrote:
> On 12/06/2017 10:55 AM, Vincent Berenz wrote:
>> Hi,
>>
>> We are currently moving from xenomai 2 to xenomai 3.
>> I installed xenomai 3.0.5, and all seems to be working, with low latency.
>>
>> I am now trying to get our legacy code to work on xenomai 3 using the
>> transition kit.
>>
>> Our program compiles, but at runtime, on call to rt_pipe_create :
>>          0"000.000| WARNING: [main] RTIPC/XDDP protocol not supported by
>> kernel
>>
> Do you observe the same issue with any of the native POSIX demo apps
> available from <xenomai-install>/demo/xddp-*?
>



  reply	other threads:[~2017-12-07 13:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-06  9:55 [Xenomai] Xenomai 3.0.5 : RTIPC/XDDP protocol not supported by kernel Vincent Berenz
2017-12-07  9:46 ` Philippe Gerum
2017-12-07 13:42   ` Vincent Berenz [this message]
2017-12-07 14:16     ` Philippe Gerum
2017-12-11 11:28       ` Vincent Berenz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3fd685e2-b399-34c7-8529-48edc391712b@tuebingen.mpg.de \
    --to=vberenz@tuebingen.mpg.de \
    --cc=rpm@xenomai.org \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.