All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Xemomai 3 - posix demo programs don't seem to be loading the right socket program.
@ 2015-07-08  2:45 Glen Wernersbach
  2015-07-08 10:11 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: Glen Wernersbach @ 2015-07-08  2:45 UTC (permalink / raw)
  To: xenomai

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   

Any ideas?


Glen
-- 
Glen Wernersbach View Profile <http://www.linkedin.com/in/GlenWernersbach>
Business, Innovation and Technical Consultant;
President and CEO
Jetsoft Development Co.


629 Old St Rt. 74 ­ Suite 210
Cincinnati, Oh 45244
513-240-9929
glen@jetsoftdev.com



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai] Xemomai 3 - posix demo programs don't seem to be loading the right socket program.
  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
  2015-07-08 20:57   ` Glen Wernersbach
  0 siblings, 1 reply; 3+ messages in thread
From: Gilles Chanteperdrix @ 2015-07-08 10:11 UTC (permalink / raw)
  To: Glen Wernersbach; +Cc: xenomai

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai] Xemomai 3 - posix demo programs don't seem to be loading the right socket program.
  2015-07-08 10:11 ` Gilles Chanteperdrix
@ 2015-07-08 20:57   ` Glen Wernersbach
  0 siblings, 0 replies; 3+ messages in thread
From: Glen Wernersbach @ 2015-07-08 20:57 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

Giles,

RsConMain was just a copy of  the bufp-readwrite demo program so I could
fool around with the make file to see if I could prove the wrapper was
loading. The code is the standard unmodified demo of the bufp-readwrite
demo example.

As it turns out as you suspected, for the standard demos that are
installed to work, you must go in and change the Xenomai kernel setting
RTIPC Protocol Family from its default value of excluded/Off and change to
an included/On setting.

Once that was done all of the demo programs and my copy worked just fine.

Glen
-- 
Glen Wernersbach View Profile <http://www.linkedin.com/in/GlenWernersbach>
Business, Innovation and Technical Consultant;
President and CEO
Jetsoft Development Co.


629 Old St Rt. 74 ­ Suite 210
Cincinnati, Oh 45244

513-240-9929
glen@jetsoftdev.com




On 7/8/15, 6:11 AM, "Gilles Chanteperdrix"
<gilles.chanteperdrix@xenomai.org> wrote:

>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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-08 20:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2015-07-08 20:57   ` Glen Wernersbach

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.