All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Glen Wernersbach <glen@jetsoftdev.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Xemomai 3 - posix demo programs don't seem to be loading the right socket program.
Date: Wed, 8 Jul 2015 12:11:45 +0200	[thread overview]
Message-ID: <20150708101145.GL20176@hermes.click-hack.org> (raw)
In-Reply-To: <D1C206F1.39ADA%glen@jetsoftdev.com>

On Tue, Jul 07, 2015 at 10:45:05PM -0400, Glen Wernersbach wrote:
> Hi All,
> 
> Fooling around with Xenomai 3 RC4. I can get the TestSuite to work but when
> I run any of the standard posix demo examples I get the following error:
> ./bufp-readwrite 
> socket 1: Address family not supported by protocol
> socket 2: Address family not supported by protocol
> 
> Looking on the web this would indicate that the wrapper instruction is not
> in the linker flags but it is. I tried building my own copy just to make
> sure the wrapper was included but got the same error.
> make
> gcc -o RsConMain RsConMain.c -I/usr/xenomai/include/cobalt
> -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -D__COBALT__
> -Wl,@/usr/xenomai/lib/cobalt.wrappers   -L/usr/xenomai/lib -lcobalt
> -lpthread -lrt   

I do not think "RsConMain" is a "standard posix demo example", or I
do not know what you mean by that. Anyway, providing the source of
the code you compile would allow us to help you instead of making
educated guesses. But the obvious question is: do you have the
support for the socket family you are trying to use enabled in the
kernel configuration?

-- 
					    Gilles.
https://click-hack.org


  reply	other threads:[~2015-07-08 10:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-08  2:45 [Xenomai] Xemomai 3 - posix demo programs don't seem to be loading the right socket program Glen Wernersbach
2015-07-08 10:11 ` Gilles Chanteperdrix [this message]
2015-07-08 20:57   ` Glen Wernersbach

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=20150708101145.GL20176@hermes.click-hack.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=glen@jetsoftdev.com \
    --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.