include guard trank/posix/pthread.h
Quoted 5 lines · Philippe Gerum
On 06/19/2015 03:02 PM, Frederik Bayart wrote:
Quoted 9 lines
Quoted 4 lines
Hallo,
I noticed that both/usr/xenomai/include/trank/trank.hand/usr/xenomai/include/trank/posix/pthread.hshare the same include guard (_XENOMAI_TRANK_TRANK_H).Can this be an error ? I use compile flags 'xeno-config --skin=native --cflags' and get compile errors. If I change the include guard ofpthread.hto_XENOMAI_TRANK_POSIX_PTHREAD_H, the problem seems to be solved.In attachment a diff with my changes. FrederikYes, the guard is definitely wrong, will fix. Thanks for pointing this out.
Signature · 1 line
Philippe.
In the same context : to make it compile, I had to add /usr/xenomai/include/trank/posix to
$(shell xeno-config --skin=native --cflags).
At the moment -I/usr/xenomai/include/trank -D__XENO_COMPAT__
-I/usr/xenomai/include/cobalt -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -D__COBALT__ -I/usr/xenomai/include/alchemy
is returned.
If this is the correct solution, I can prepare a patch for
xeno-config if desired.
Frederik
Quoted 27 lines · Frederik Bayart
Quoted 5 lines · Philippe Gerum
On 06/19/2015 03:02 PM, Frederik Bayart wrote:
Quoted 9 lines
Quoted 4 lines
Hallo,
I noticed that both/usr/xenomai/include/trank/trank.hand/usr/xenomai/include/trank/posix/pthread.hshare the same include guard (_XENOMAI_TRANK_TRANK_H).Can this be an error ? I use compile flags 'xeno-config --skin=native --cflags' and get compile errors. If I change the include guard ofpthread.hto_XENOMAI_TRANK_POSIX_PTHREAD_H, the problem seems to be solved.In attachment a diff with my changes. FrederikYes, the guard is definitely wrong, will fix. Thanks for pointing this out.
Signature · 1 line
Philippe.In the same context : to make it compile, I had to add
/usr/xenomai/include/trank/posixto
$(shell xeno-config --skin=native --cflags).
At the moment -I/usr/xenomai/include/trank -D__XENO_COMPAT__
-I/usr/xenomai/include/cobalt -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -D__COBALT__ -I/usr/xenomai/include/alchemy
is returned.
Quoted 3 lines
If this is the correct solution, I can prepare a patch for
xeno-config if desired.
Please do.
You seem to be combining the legacy native API and the POSIX interface, which is fine, but would require --native --posix to be passed to xeno-config if so.
Signature · 1 line
Philippe.
Quoted 28 lines · Philippe Gerum
Quoted 27 lines · Frederik Bayart
Quoted 5 lines · Philippe Gerum
On 06/19/2015 03:02 PM, Frederik Bayart wrote:
Quoted 9 lines
Quoted 4 lines
Hallo,
I noticed that both/usr/xenomai/include/trank/trank.hand/usr/xenomai/include/trank/posix/pthread.hshare the same include guard (_XENOMAI_TRANK_TRANK_H).Can this be an error ? I use compile flags 'xeno-config --skin=native --cflags' and get compile errors. If I change the include guard ofpthread.hto_XENOMAI_TRANK_POSIX_PTHREAD_H, the problem seems to be solved.In attachment a diff with my changes. FrederikYes, the guard is definitely wrong, will fix. Thanks for pointing this out.
Signature · 1 line
Philippe.In the same context : to make it compile, I had to add
/usr/xenomai/include/trank/posixto
$(shell xeno-config --skin=native --cflags).
At the moment -I/usr/xenomai/include/trank -D__XENO_COMPAT__
-I/usr/xenomai/include/cobalt -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -D__COBALT__ -I/usr/xenomai/include/alchemy
is returned.
Quoted 6 lines
Quoted 3 lines
If this is the correct solution, I can prepare a patch for
xeno-config if desired.Please do.
-rc5 is ready and I don't want to hold it for too long, so if possible, any feedback regarding this asap would be great. By default, I'll merge the patch below, which should address this issue.
scripts/xeno-config-cobalt.in +4 -2
@@ -198,7 +198,10 @@ if test x$do_cflags = xy; then test x$compat = xy && cflags="-I$XENO_INCLUDE_DIR/trank -D__XENO_COMPAT__ $cflags" for skin in $skin_list; do case "$skin" in - posix|cobalt|rtdm) + posix|rtdm) + test x$compat = xy && cflags="$cflags -I$XENO_INCLUDE_DIR/trank/posix" + ;; + cobalt) ;; vxworks|psos|alchemy|smokey)
cflags="$cflags -I$XENO_INCLUDE_DIR/$skin"
Signature · 1 line
Philippe.
Quoted 208 lines
--------------------------------------------
On Mon, 22/6/15, Philippe Gerum <[email protected]> wrote:Subject: Re: [Xenomai] include guard
trank/posix/pthread.h
To: "Frederik Bayart" <[email protected]>, [email protected]
Date: Monday, 22 June, 2015, 14:48Quoted 1 line · Philippe Gerum
On 06/22/2015
Quoted 4 lines · Frederik Bayart
Quoted 4 lines
On Friday, 19 June 2015, 15:07,
Philippe Gerum <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
On 06/19/2015 03:02 PM,
Quoted 5 lines · Frederik Bayart
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Hallo,
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
I noticed that both
/usr/xenomai/include/trank/trank.hand/usr/xenomai/include/trank/posix/pthread.hshare the same include guard (_XENOMAI_TRANK_TRANK_H).Can this be an error ? I use compile flags 'xeno-config --skin=native --cflags' and get compile errors. If I change the include guard ofpthread.hto_XENOMAI_TRANK_POSIX_PTHREAD_H, the problem seems to be solved.In attachment a diff with my changes.Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
Frederik
Yes,
the guard is definitely wrong, will fix. Thanks for pointing this out.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Signature · 1 line
--Philippe.
Quoted 2 lines
Quoted 2 lines
In the same context : to make it compile, I had to add
Quoted 2 lines
Quoted 2 lines
/usr/xenomai/include/trank/posixto
$(shell xeno-config --skin=native--cflags).
Quoted 1 line
Quoted 1 line
At the moment
-I/usr/xenomai/include/trank -D__XENO_COMPAT__
Quoted 1 line
Quoted 1 line
-I/usr/xenomai/include/cobalt
-I/usr/xenomai/include -D_GNU_SOURCE
Quoted 1 line
Quoted 1 line
-D_REENTRANT -D__COBALT__
-I/usr/xenomai/include/alchemy
Quoted 1 line
Quoted 1 line
is
returned.
Quoted 2 lines
Quoted 2 lines
If this is the correct solution, I can prepare a patch for
Quoted 3 lines
Quoted 3 lines
xeno-config if desired.
--------------------------------------------
On Mon, 22/6/15, Philippe Gerum <[email protected]> wrote:
Subject: Re: [Xenomai] include guard
trank/posix/pthread.h
To: "Frederik Bayart" <[email protected]>, [email protected]
Date: Monday, 22 June, 2015, 14:48Quoted 1 line · Philippe Gerum
On 06/22/2015
Quoted 4 lines · Frederik Bayart
Quoted 4 lines
On Friday, 19 June 2015, 15:07,
Philippe Gerum <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
On 06/19/2015 03:02 PM,
Quoted 5 lines · Frederik Bayart
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Hallo,
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
I noticed that both
/usr/xenomai/include/trank/trank.hand/usr/xenomai/include/trank/posix/pthread.hshare the same include guard (_XENOMAI_TRANK_TRANK_H).Can this be an error ? I use compile flags 'xeno-config --skin=native --cflags' and get compile errors. If I change the include guard ofpthread.hto_XENOMAI_TRANK_POSIX_PTHREAD_H, the problem seems to be solved.In attachment a diff with my changes.Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
Frederik
Yes,
the guard is definitely wrong, will fix. Thanks for pointing this out.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Signature · 1 line
--Philippe.
Quoted 2 lines
Quoted 2 lines
In the same context : to make it compile, I had to add
Quoted 2 lines
Quoted 2 lines
/usr/xenomai/include/trank/posixto
$(shell xeno-config --skin=native--cflags).
Quoted 1 line
Quoted 1 line
At the moment
-I/usr/xenomai/include/trank -D__XENO_COMPAT__
Quoted 1 line
Quoted 1 line
-I/usr/xenomai/include/cobalt
-I/usr/xenomai/include -D_GNU_SOURCE
Quoted 1 line
Quoted 1 line
-D_REENTRANT -D__COBALT__
-I/usr/xenomai/include/alchemy
Quoted 1 line
Quoted 1 line
is
returned.
Quoted 2 lines
Quoted 2 lines
If this is the correct solution, I can prepare a patch for
Quoted 5 lines
Quoted 2 lines
xeno-config if desired.
Please do.
-rc5 is ready and I don't
want to hold it for too long, so if possible,
any feedback regarding this asap would be
great. By default, I'll merge
the patch
below, which should address this issue.scripts/xeno-config-cobalt.in +0
-0index
c6e51d1..7b623db 100644
---
a/scripts/xeno-config-cobalt.in
+++
b/scripts/xeno-config-cobalt.in
@@ -198,7
+198,10 @@ if test x$do_cflags = xy; thentest x$compat = xy &&cflags="-I$XENO_INCLUDE_DIR/trank
scripts/xeno-config-cobalt.in +2
-2-D__XENO_COMPAT__ $cflags" for skin in $skin_list; do case "$skin" in - posix|cobalt|rtdm) + posix|rtdm) + test x$compat = xy &&cflags="$cflags
scripts/xeno-config-cobalt.in +2
-1-I$XENO_INCLUDE_DIR/trank/posix" + ;; +cobalt)
;; vxworks|psos|alchemy|smokey) cflags="$cflags-I$XENO_INCLUDE_DIR/$skin"
Signature · 1 line
Philippe.Quoted 2 lines
Please do.
-rc5 is ready and I don't
want to hold it for too long, so if possible,
any feedback regarding this asap would be
great. By default, I'll merge
the patch
below, which should address this issue.scripts/xeno-config-cobalt.in +0
-0index
c6e51d1..7b623db 100644
---
a/scripts/xeno-config-cobalt.in
+++
b/scripts/xeno-config-cobalt.in
@@ -198,7
+198,10 @@ if test x$do_cflags = xy; thentest x$compat = xy &&cflags="-I$XENO_INCLUDE_DIR/trank
scripts/xeno-config-cobalt.in +2
-2-D__XENO_COMPAT__ $cflags" for skin in $skin_list; do case "$skin" in - posix|cobalt|rtdm) + posix|rtdm) + test x$compat = xy &&cflags="$cflags
scripts/xeno-config-cobalt.in +2
-1-I$XENO_INCLUDE_DIR/trank/posix" + ;; +cobalt)
Quoted 10 lines
;; vxworks|psos|alchemy|smokey) cflags="$cflags-I$XENO_INCLUDE_DIR/$skin"
Signature · 1 line
Philippe.
Philippe,
With this patch, xeno-config works with --native and --posix.
Thank you for the quick fix.
I noticed also that xeno-config is in 2 debian packages so that you yet an install error. I'm busy to write a mail to report this, and to fix this, but maybe this is not urgent for rc5
Regards,
Frederik
Quoted 346 lines · Frederik Bayart
Subject: Re: [Xenomai] include guard
trank/posix/pthread.h
To: [email protected]
Date: Monday, 22 June, 2015, 15:41Quoted 2 lines
--------------------------------------------
On Mon, 22/6/15, Philippe Gerum <[email protected]>Quoted 2 lines · wrote:
Subject:
Re: [Xenomai] include guard
trank/posix/pthread.hQuoted 1 line
To: "Frederik Bayart" <[email protected]>,
Quoted 3 lines
Date: Monday, 22 June, 2015, 14:48
On 06/22/2015 12:26
PM,
Quoted 3 lines
Quoted 1 line · Philippe Gerum
On 06/22/2015
Quoted 6 lines · Frederik Bayart
Quoted 6 lines
Quoted 6 lines
On Friday, 19 June
2015, 15:07,
Quoted 3 lines
Philippe Gerum <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
On 06/19/2015 03:02 PM,
Quoted 1 line
Frederik Bayart
Quoted 7 lines · wrote:
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Hallo,
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
I noticed that
both
Quoted 1 line
/usr/xenomai/include/trank/trank.hand
Quoted 1 line
/usr/xenomai/include/trank/posix/pthread.hshare the sameQuoted 1 line
include guard (_XENOMAI_TRANK_TRANK_H).Can
this be an error
Quoted 1 line
? I use compile flags
'xeno-config --skin=native
Quoted 1 line
--cflags' and get compile errors. If I change the
Quoted 2 lines
include guard of
pthread.hto_XENOMAI_TRANK_POSIX_PTHREAD_H, theproblem seems to be
Quoted 1 line
solved.In
attachment a diff with my changes.
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Frederik
Yes,
the
guard is definitely wrong, will fix. Thanks for pointing
Quoted 6 lines
this out.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Signature · 1 line
--Philippe.
Quoted 4 lines
Quoted 3 lines
Quoted 1 line
In the same context : to make
it compile, I had to add
Quoted 1 line
Quoted 1 line
Quoted 1 line
/usr/xenomai/include/trank/posixtoQuoted 4 lines
Quoted 2 lines
$(shell xeno-config --skin=native
--cflags).
Quoted 1 line
Quoted 1 line
At the moment
Quoted 1 line
-I/usr/xenomai/include/trank -D__XENO_COMPAT__
Quoted 1 line
Quoted 1 line
Quoted 1 line
-I/usr/xenomai/include/cobalt
Quoted 1 line
-I/usr/xenomai/include -D_GNU_SOURCE
Quoted 3 lines
Quoted 2 lines
-D_REENTRANT -D__COBALT__
-I/usr/xenomai/include/alchemy
Quoted 1 line
Quoted 1 line
Quoted 1 line
is
Quoted 5 lines
returned.
Quoted 2 lines
Quoted 2 lines
If this is the correct solution, I can prepare a patch
Quoted 2 lines
for
Quoted 1 line
Quoted 1 line
xeno-config if desired.
Quoted 4 lines
Quoted 2 lines
Quoted 1 line
--------------------------------------------
On Mon, 22/6/15, Philippe Gerum <[email protected]>Quoted 2 lines · wrote:
Subject:
Re: [Xenomai] include guard
trank/posix/pthread.hQuoted 1 line
To: "Frederik Bayart" <[email protected]>,
Quoted 3 lines
Date: Monday, 22 June, 2015, 14:48
On 06/22/2015 12:26
PM,
Quoted 3 lines
Quoted 1 line · Philippe Gerum
On 06/22/2015
Quoted 6 lines · Frederik Bayart
Quoted 6 lines
Quoted 6 lines
On Friday, 19 June
2015, 15:07,
Quoted 3 lines
Philippe Gerum <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
On 06/19/2015 03:02 PM,
Quoted 1 line
Frederik Bayart
Quoted 7 lines · wrote:
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Hallo,
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
I noticed that
both
Quoted 1 line
/usr/xenomai/include/trank/trank.hand
Quoted 1 line
/usr/xenomai/include/trank/posix/pthread.hshare the sameQuoted 1 line
include guard (_XENOMAI_TRANK_TRANK_H).Can
this be an error
Quoted 1 line
? I use compile flags
'xeno-config --skin=native
Quoted 1 line
--cflags' and get compile errors. If I change the
Quoted 2 lines
include guard of
pthread.hto_XENOMAI_TRANK_POSIX_PTHREAD_H, theproblem seems to be
Quoted 1 line
solved.In
attachment a diff with my changes.
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Frederik
Yes,
the
guard is definitely wrong, will fix. Thanks for pointing
Quoted 6 lines
this out.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Signature · 1 line
--Philippe.
Quoted 4 lines
Quoted 3 lines
Quoted 1 line
In the same context : to make
it compile, I had to add
Quoted 1 line
Quoted 1 line
Quoted 1 line
/usr/xenomai/include/trank/posixtoQuoted 4 lines
Quoted 2 lines
$(shell xeno-config --skin=native
--cflags).
Quoted 1 line
Quoted 1 line
At the moment
Quoted 1 line
-I/usr/xenomai/include/trank -D__XENO_COMPAT__
Quoted 1 line
Quoted 1 line
Quoted 1 line
-I/usr/xenomai/include/cobalt
Quoted 1 line
-I/usr/xenomai/include -D_GNU_SOURCE
Quoted 3 lines
Quoted 2 lines
-D_REENTRANT -D__COBALT__
-I/usr/xenomai/include/alchemy
Quoted 1 line
Quoted 1 line
Quoted 1 line
is
Quoted 5 lines
returned.
Quoted 2 lines
Quoted 2 lines
If this is the correct solution, I can prepare a patch
Quoted 2 lines
for
Quoted 1 line
Quoted 1 line
xeno-config if desired.
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Please
do.
Quoted 4 lines
Quoted 1 line
-rc5 is ready and I don't
want to hold it for too long, so ifpossible,
Quoted 1 line
any feedback regarding this
asap would be
Quoted 1 line
great. By default,
I'll merge
Quoted 4 lines
the patch
below, which should address this issue.diff --git
a/scripts/xeno-config-cobalt.in
Quoted 1 line
b/scripts/xeno-config-cobalt.in
Quoted 1 line
index
Quoted 3 lines
c6e51d1..7b623db 100644
---a/scripts/xeno-config-cobalt.in
Quoted 4 lines
+++
b/scripts/xeno-config-cobalt.in
@@ -198,7
+198,10 @@if test x$do_cflags = xy; then
scripts/xeno-config-cobalt.in if test x$do_cflags = xy; then
Quoted 9 lines
test x$compat = xy &&cflags="-I$XENO_INCLUDE_DIR/trank
scripts/xeno-config-cobalt.in +2
-2-D__XENO_COMPAT__ $cflags" for skin in $skin_list; do case "$skin" in - posix|cobalt|rtdm) + posix|rtdm) + test x$compat = xy&&
Quoted 9 lines
cflags="$cflags
(quoted diff) +2
-1-I$XENO_INCLUDE_DIR/trank/posix" + ;; +cobalt)
;;vxworks|psos|alchemy|smokey)
Quoted 2 lines
cflags="$cflags
Quoted 1 line
-I$XENO_INCLUDE_DIR/$skin"
Quoted 9 lines
Signature · 2 lines
-- Philippe.Quoted 2 lines
Please do.
-rc5 is ready and I don't
want to hold it for too long, so ifpossible,
Quoted 1 line
any feedback regarding this
asap would be
Quoted 1 line
great. By default,
I'll merge
Quoted 4 lines
the patch
below, which should address this issue.diff --git
a/scripts/xeno-config-cobalt.in
Quoted 1 line
b/scripts/xeno-config-cobalt.in
Quoted 1 line
index
Quoted 3 lines
c6e51d1..7b623db 100644
---a/scripts/xeno-config-cobalt.in
Quoted 4 lines
+++
b/scripts/xeno-config-cobalt.in
@@ -198,7
+198,10 @@if test x$do_cflags = xy; then
scripts/xeno-config-cobalt.in if test x$do_cflags = xy; then
Quoted 9 lines
test x$compat = xy &&cflags="-I$XENO_INCLUDE_DIR/trank
scripts/xeno-config-cobalt.in +2
-2-D__XENO_COMPAT__ $cflags" for skin in $skin_list; do case "$skin" in - posix|cobalt|rtdm) + posix|rtdm) + test x$compat = xy&&
Quoted 9 lines
cflags="$cflags
(quoted diff) +2
-1-I$XENO_INCLUDE_DIR/trank/posix" + ;; +cobalt)
;;vxworks|psos|alchemy|smokey)
Quoted 2 lines
cflags="$cflags
Quoted 1 line
-I$XENO_INCLUDE_DIR/$skin"
Quoted 4 lines
Signature · 2 lines
-- Philippe.Philippe,
With
this patch, xeno-config works with --native and --posix.Thank you for the quick
fix.I noticed also that
xeno-config is in 2 debian packages so that you yet an install error.
I'm busy to write a mail
to report this, and to fix this, but maybe this is not urgent for rc5
Quoted 3 lines
Regards,
Frederik
Philippe
I haven't test the ldflags yet. I will have a look at it right now and keep you informed. I noticed that in older xenomai versions there was a dependency on libpthread_rt.so.1 but now I don't see that dependency anymore, I don't know yet whether this a problem.
Frederik
Quoted 5 lines · Frederik Bayart
With this patch, xeno-config works with --native and --posix.
Thank you for the quick fix.
I noticed also that xeno-config is in 2 debian packages so that you yet an install error.
Ok, it has to belong to the runtime one, not the development one.
Quoted 2 lines
I'm busy to write a mail to report this, and to fix this, but maybe this is not urgent for rc5
I agree, this is not critical for -rc5.
Signature · 1 line
Philippe.
Quoted 346 lines · Frederik Bayart
Quoted 346 lines · Frederik Bayart
Subject: Re: [Xenomai] include guard
trank/posix/pthread.h
To: [email protected]
Date: Monday, 22 June, 2015, 15:41Quoted 2 lines
--------------------------------------------
On Mon, 22/6/15, Philippe Gerum <[email protected]>Quoted 2 lines · wrote:
Subject:
Re: [Xenomai] include guard
trank/posix/pthread.hQuoted 1 line
To: "Frederik Bayart" <[email protected]>,
Quoted 3 lines
Date: Monday, 22 June, 2015, 14:48
On 06/22/2015 12:26
PM,
Quoted 3 lines
Quoted 1 line · Philippe Gerum
On 06/22/2015
Quoted 6 lines · Frederik Bayart
Quoted 6 lines
Quoted 6 lines
On Friday, 19 June
2015, 15:07,
Quoted 3 lines
Philippe Gerum <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
On 06/19/2015 03:02 PM,
Quoted 1 line
Frederik Bayart
Quoted 7 lines · wrote:
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Hallo,
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
I noticed that
both
Quoted 1 line
/usr/xenomai/include/trank/trank.hand
Quoted 1 line
/usr/xenomai/include/trank/posix/pthread.hshare the sameQuoted 1 line
include guard (_XENOMAI_TRANK_TRANK_H).Can
this be an error
Quoted 1 line
? I use compile flags
'xeno-config --skin=native
Quoted 1 line
--cflags' and get compile errors. If I change the
Quoted 2 lines
include guard of
pthread.hto_XENOMAI_TRANK_POSIX_PTHREAD_H, theproblem seems to be
Quoted 1 line
solved.In
attachment a diff with my changes.
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Frederik
Yes,
the
guard is definitely wrong, will fix. Thanks for pointing
Quoted 6 lines
this out.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Signature · 1 line
--Philippe.
Quoted 4 lines
Quoted 3 lines
Quoted 1 line
In the same context : to make
it compile, I had to add
Quoted 1 line
Quoted 1 line
Quoted 1 line
/usr/xenomai/include/trank/posixtoQuoted 4 lines
Quoted 2 lines
$(shell xeno-config --skin=native
--cflags).
Quoted 1 line
Quoted 1 line
At the moment
Quoted 1 line
-I/usr/xenomai/include/trank -D__XENO_COMPAT__
Quoted 1 line
Quoted 1 line
Quoted 1 line
-I/usr/xenomai/include/cobalt
Quoted 1 line
-I/usr/xenomai/include -D_GNU_SOURCE
Quoted 3 lines
Quoted 2 lines
-D_REENTRANT -D__COBALT__
-I/usr/xenomai/include/alchemy
Quoted 1 line
Quoted 1 line
Quoted 1 line
is
Quoted 5 lines
returned.
Quoted 2 lines
Quoted 2 lines
If this is the correct solution, I can prepare a patch
Quoted 2 lines
for
Quoted 1 line
Quoted 1 line
xeno-config if desired.
Quoted 4 lines
Quoted 2 lines
Quoted 1 line
--------------------------------------------
On Mon, 22/6/15, Philippe Gerum <[email protected]>Quoted 2 lines · wrote:
Subject:
Re: [Xenomai] include guard
trank/posix/pthread.hQuoted 1 line
To: "Frederik Bayart" <[email protected]>,
Quoted 3 lines
Date: Monday, 22 June, 2015, 14:48
On 06/22/2015 12:26
PM,
Quoted 3 lines
Quoted 1 line · Philippe Gerum
On 06/22/2015
Quoted 6 lines · Frederik Bayart
Quoted 6 lines
Quoted 6 lines
On Friday, 19 June
2015, 15:07,
Quoted 3 lines
Philippe Gerum <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
On 06/19/2015 03:02 PM,
Quoted 1 line
Frederik Bayart
Quoted 7 lines · wrote:
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Hallo,
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
I noticed that
both
Quoted 1 line
/usr/xenomai/include/trank/trank.hand
Quoted 1 line
/usr/xenomai/include/trank/posix/pthread.hshare the sameQuoted 1 line
include guard (_XENOMAI_TRANK_TRANK_H).Can
this be an error
Quoted 1 line
? I use compile flags
'xeno-config --skin=native
Quoted 1 line
--cflags' and get compile errors. If I change the
Quoted 2 lines
include guard of
pthread.hto_XENOMAI_TRANK_POSIX_PTHREAD_H, theproblem seems to be
Quoted 1 line
solved.In
attachment a diff with my changes.
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Frederik
Yes,
the
guard is definitely wrong, will fix. Thanks for pointing
Quoted 6 lines
this out.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Signature · 1 line
--Philippe.
Quoted 4 lines
Quoted 3 lines
Quoted 1 line
In the same context : to make
it compile, I had to add
Quoted 1 line
Quoted 1 line
Quoted 1 line
/usr/xenomai/include/trank/posixtoQuoted 4 lines
Quoted 2 lines
$(shell xeno-config --skin=native
--cflags).
Quoted 1 line
Quoted 1 line
At the moment
Quoted 1 line
-I/usr/xenomai/include/trank -D__XENO_COMPAT__
Quoted 1 line
Quoted 1 line
Quoted 1 line
-I/usr/xenomai/include/cobalt
Quoted 1 line
-I/usr/xenomai/include -D_GNU_SOURCE
Quoted 3 lines
Quoted 2 lines
-D_REENTRANT -D__COBALT__
-I/usr/xenomai/include/alchemy
Quoted 1 line
Quoted 1 line
Quoted 1 line
is
Quoted 5 lines
returned.
Quoted 2 lines
Quoted 2 lines
If this is the correct solution, I can prepare a patch
Quoted 2 lines
for
Quoted 1 line
Quoted 1 line
xeno-config if desired.
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Please
do.
Quoted 4 lines
Quoted 1 line
-rc5 is ready and I don't
want to hold it for too long, so ifpossible,
Quoted 1 line
any feedback regarding this
asap would be
Quoted 1 line
great. By default,
I'll merge
Quoted 4 lines
the patch
below, which should address this issue.diff --git
a/scripts/xeno-config-cobalt.in
Quoted 1 line
b/scripts/xeno-config-cobalt.in
Quoted 1 line
index
Quoted 3 lines
c6e51d1..7b623db 100644
---a/scripts/xeno-config-cobalt.in
Quoted 4 lines
+++
b/scripts/xeno-config-cobalt.in
@@ -198,7
+198,10 @@if test x$do_cflags = xy; then
scripts/xeno-config-cobalt.in if test x$do_cflags = xy; then
Quoted 9 lines
test x$compat = xy &&cflags="-I$XENO_INCLUDE_DIR/trank
scripts/xeno-config-cobalt.in +2
-2-D__XENO_COMPAT__ $cflags" for skin in $skin_list; do case "$skin" in - posix|cobalt|rtdm) + posix|rtdm) + test x$compat = xy&&
Quoted 9 lines
cflags="$cflags
(quoted diff) +2
-1-I$XENO_INCLUDE_DIR/trank/posix" + ;; +cobalt)
;;vxworks|psos|alchemy|smokey)
Quoted 2 lines
cflags="$cflags
Quoted 1 line
-I$XENO_INCLUDE_DIR/$skin"
Quoted 9 lines
Signature · 2 lines
-- Philippe.Quoted 2 lines
Please do.
-rc5 is ready and I don't
want to hold it for too long, so ifpossible,
Quoted 1 line
any feedback regarding this
asap would be
Quoted 1 line
great. By default,
I'll merge
Quoted 4 lines
the patch
below, which should address this issue.diff --git
a/scripts/xeno-config-cobalt.in
Quoted 1 line
b/scripts/xeno-config-cobalt.in
Quoted 1 line
index
Quoted 3 lines
c6e51d1..7b623db 100644
---a/scripts/xeno-config-cobalt.in
Quoted 4 lines
+++
b/scripts/xeno-config-cobalt.in
@@ -198,7
+198,10 @@if test x$do_cflags = xy; then
scripts/xeno-config-cobalt.in if test x$do_cflags = xy; then
Quoted 9 lines
test x$compat = xy &&cflags="-I$XENO_INCLUDE_DIR/trank
scripts/xeno-config-cobalt.in +2
-2-D__XENO_COMPAT__ $cflags" for skin in $skin_list; do case "$skin" in - posix|cobalt|rtdm) + posix|rtdm) + test x$compat = xy&&
Quoted 9 lines
cflags="$cflags
(quoted diff) +2
-1-I$XENO_INCLUDE_DIR/trank/posix" + ;; +cobalt)
;;vxworks|psos|alchemy|smokey)
Quoted 2 lines
cflags="$cflags
Quoted 1 line
-I$XENO_INCLUDE_DIR/$skin"
Quoted 4 lines
Signature · 2 lines
-- Philippe.Philippe,
With
this patch, xeno-config works with --native and --posix.Thank you for the quick
fix.I noticed also that
xeno-config is in 2 debian packages so that you yet an install error.
I'm busy to write a mail
to report this, and to fix this, but maybe this is not urgent for rc5
Quoted 8 lines
Quoted 3 lines
Regards,
Frederik
Philippe
I haven't test the ldflags yet. I will have a look at it right now and keep you informed. I noticed that in older xenomai versions there was a dependency on libpthread_rt.so.1 but now I don't see that dependency anymore, I don't know yet whether this a problem.
That's correct, this library is named libcobalt in xenomai 3. With the compat mode enabled, you only need -ltrank in addition to the usual deps.
Signature · 1 line
Philippe.
Quoted 493 lines
--------------------------------------------
On Mon, 22/6/15, Philippe Gerum <[email protected]> wrote:Subject: Re: [Xenomai] include guard
trank/posix/pthread.h
To: "Frederik Bayart" <[email protected]>, [email protected]
Date: Monday, 22 June, 2015, 16:49Quoted 1 line · Frederik Bayart
Quoted 1 line
On Mon,
22/6/15, Frederik Bayart <[email protected]>
Quoted 2 lines · wrote:
Quoted 2 lines
Subject: Re: [Xenomai] include guard
trank/posix/pthread.hQuoted 5 lines
Quoted 5 lines
To: [email protected]
Date: Monday, 22 June, 2015, 15:41Quoted 1 line
--------------------------------------------
Quoted 1 line
Quoted 1 line
Quoted 1 line
On Mon, 22/6/15, Philippe Gerum
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines · wrote:
Subject:
Re: [Xenomai] include guard
trank/posix/pthread.hQuoted 1 line
Quoted 1 line
Quoted 1 line
To: "Frederik Bayart"
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
Date: Monday, 22 June, 2015,
14:48
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
On 06/22/2015 12:26
PM,
Quoted 1 line
Quoted 1 line · Philippe Gerum
Quoted 1 line
Quoted 1 line
Quoted 1 line
On
06/22/2015
Quoted 22 lines
Quoted 22 lines
Quoted 1 line
Quoted 6 lines · Frederik Bayart
Quoted 6 lines
Quoted 6 lines
On Friday, 19 June
2015, 15:07,
Quoted 3 lines
Philippe Gerum <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
On 06/19/2015 03:02 PM,
Quoted 1 line
Frederik Bayart
Quoted 7 lines · wrote:
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
Hallo,
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
I noticed that
both
Quoted 1 line
/usr/xenomai/include/trank/trank.hQuoted 1 line
Quoted 1 line
and
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
/usr/xenomai/include/trank/posix/pthread.hshare the sameQuoted 1 line
Quoted 1 line
Quoted 1 line
include guard
(_XENOMAI_TRANK_TRANK_H).Can
Quoted 1 line
Quoted 1 line
this
be an error
Quoted 1 line
Quoted 1 line
Quoted 1 line
? I use compile
flags
Quoted 1 line
Quoted 1 line
'xeno-config
--skin=native
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
--cflags' and get compile errors.
If I change the
Quoted 1 line
Quoted 1 line
Quoted 1 line
include guard
of
pthread.htoQuoted 1 line
Quoted 1 line
Quoted 1 line
_XENOMAI_TRANK_POSIX_PTHREAD_H, theQuoted 1 line
Quoted 1 line
problem seems to be
Quoted 1 line
Quoted 1 line
Quoted 1 line
solved.In
Quoted 1 line
Quoted 1 line
attachment a diff with my
changes.
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Frederik
Yes,
the
guard
is definitely wrong, will fix. Thanks for pointing
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
this out.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Signature · 1 line
--Philippe.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
Quoted 1 line
In the same context : to make
Quoted 1 line
Quoted 1 line
it
compile, I had to add
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
/usr/xenomai/include/trank/posixtoQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
$(shell xeno-config --skin=native
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
--cflags).
Quoted 1 line
Quoted 1 line
At the moment
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
-I/usr/xenomai/include/trank
-D__XENO_COMPAT__
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
-I/usr/xenomai/include/cobalt
Quoted 1 line
-I/usr/xenomai/include -D_GNU_SOURCE
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
-D_REENTRANT -D__COBALT__
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
-I/usr/xenomai/include/alchemy
Quoted 1 line
Quoted 1 line
Quoted 1 line
is
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
returned.
Quoted 2 lines
Quoted 2 lines
If this
is the correct solution, I can prepare a patch
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
for
Quoted 1 line
Quoted 1 line
xeno-config if desired.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
Quoted 1 line
--------------------------------------------
Quoted 1 line
Quoted 1 line
Quoted 1 line
On Mon, 22/6/15, Philippe Gerum
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines · wrote:
Subject:
Re: [Xenomai] include guard
trank/posix/pthread.hQuoted 1 line
Quoted 1 line
Quoted 1 line
To: "Frederik Bayart"
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
Date: Monday, 22 June, 2015,
14:48
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
On 06/22/2015 12:26
PM,
Quoted 1 line
Quoted 1 line · Philippe Gerum
Quoted 1 line
Quoted 1 line
Quoted 1 line
On
06/22/2015
Quoted 22 lines
Quoted 22 lines
Quoted 1 line
Quoted 6 lines · Frederik Bayart
Quoted 6 lines
Quoted 6 lines
On Friday, 19 June
2015, 15:07,
Quoted 3 lines
Philippe Gerum <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
On 06/19/2015 03:02 PM,
Quoted 1 line
Frederik Bayart
Quoted 7 lines · wrote:
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
Hallo,
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
I noticed that
both
Quoted 1 line
/usr/xenomai/include/trank/trank.hQuoted 1 line
Quoted 1 line
and
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
/usr/xenomai/include/trank/posix/pthread.hshare the sameQuoted 1 line
Quoted 1 line
Quoted 1 line
include guard
(_XENOMAI_TRANK_TRANK_H).Can
Quoted 1 line
Quoted 1 line
this
be an error
Quoted 1 line
Quoted 1 line
Quoted 1 line
? I use compile
flags
Quoted 1 line
Quoted 1 line
'xeno-config
--skin=native
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
--cflags' and get compile errors.
If I change the
Quoted 1 line
Quoted 1 line
Quoted 1 line
include guard
of
pthread.htoQuoted 1 line
Quoted 1 line
Quoted 1 line
_XENOMAI_TRANK_POSIX_PTHREAD_H, theQuoted 1 line
Quoted 1 line
problem seems to be
Quoted 1 line
Quoted 1 line
Quoted 1 line
solved.In
Quoted 1 line
Quoted 1 line
attachment a diff with my
changes.
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Frederik
Yes,
the
guard
is definitely wrong, will fix. Thanks for pointing
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
this out.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Signature · 1 line
--Philippe.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
Quoted 1 line
In the same context : to make
Quoted 1 line
Quoted 1 line
it
compile, I had to add
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
/usr/xenomai/include/trank/posixtoQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
$(shell xeno-config --skin=native
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
--cflags).
Quoted 1 line
Quoted 1 line
At the moment
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
-I/usr/xenomai/include/trank
-D__XENO_COMPAT__
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
-I/usr/xenomai/include/cobalt
Quoted 1 line
-I/usr/xenomai/include -D_GNU_SOURCE
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
-D_REENTRANT -D__COBALT__
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
-I/usr/xenomai/include/alchemy
Quoted 1 line
Quoted 1 line
Quoted 1 line
is
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
returned.
Quoted 2 lines
Quoted 2 lines
If this
is the correct solution, I can prepare a patch
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
for
Quoted 1 line
Quoted 1 line
xeno-config if desired.
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Please
do.
Quoted 3 lines
Quoted 1 line
-rc5
is ready and I don't
Quoted 1 line
Quoted 1 line
Quoted 1 line
want
to hold it for too long, so if
Quoted 1 line
Quoted 1 line
possible,
Quoted 1 line
Quoted 1 line
Quoted 1 line
any feedback
regarding this
Quoted 5 lines
Quoted 5 lines
asap would be
Quoted 1 line
great. By default,
I'll merge
Quoted 2 lines
the patch
below, which should address thisissue.
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
diff --git
a/scripts/xeno-config-cobalt.in
Quoted 1 line
b/scripts/xeno-config-cobalt.in
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
index
Quoted 3 lines
c6e51d1..7b623db 100644
---a/scripts/xeno-config-cobalt.in
Quoted 1 line
Quoted 1 line
Quoted 1 line
+++
Quoted 1 line
Quoted 1 line
Quoted 1 line
b/scripts/xeno-config-cobalt.in
Quoted 1 line
Quoted 1 line
Quoted 1 line
@@ -198,7
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
+198,10 @@
if test x$do_cflags = xy; then
Quoted 2 lines
test x$compat = xy &&
Quoted 1 line
Quoted 1 line
Quoted 1 line
cflags="-I$XENO_INCLUDE_DIR/trank
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
-D__XENO_COMPAT__ $cflags"
for skin in $skin_list;do
Quoted 1 line
Quoted 1 line
Quoted 1 line
case
"$skin" in
Quoted 1 line
Quoted 1 line
Quoted 1 line
-
posix|cobalt|rtdm)
Quoted 1 line
Quoted 1 line
Quoted 1 line
+
posix|rtdm)
Quoted 1 line
Quoted 1 line
Quoted 1 line
+
test x$compat = xy
Quoted 3 lines
Quoted 3 lines
&&
Quoted 2 lines
cflags="$cflags
-I$XENO_INCLUDE_DIR/trank/posix"
Quoted 10 lines
Quoted 10 lines
Quoted 8 lines
+ ;;
+cobalt)
;;vxworks|psos|alchemy|smokey)
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
cflags="$cflags
Quoted 1 line
-I$XENO_INCLUDE_DIR/$skin"
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
--
Philippe.
Quoted 1 line
Please do.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
-rc5
is ready and I don't
Quoted 1 line
Quoted 1 line
Quoted 1 line
want
to hold it for too long, so if
Quoted 1 line
Quoted 1 line
possible,
Quoted 1 line
Quoted 1 line
Quoted 1 line
any feedback
regarding this
Quoted 5 lines
Quoted 5 lines
asap would be
Quoted 1 line
great. By default,
I'll merge
Quoted 2 lines
the patch
below, which should address thisissue.
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
diff --git
a/scripts/xeno-config-cobalt.in
Quoted 1 line
b/scripts/xeno-config-cobalt.in
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
index
Quoted 3 lines
c6e51d1..7b623db 100644
---a/scripts/xeno-config-cobalt.in
Quoted 1 line
Quoted 1 line
Quoted 1 line
+++
Quoted 1 line
Quoted 1 line
Quoted 1 line
b/scripts/xeno-config-cobalt.in
Quoted 1 line
Quoted 1 line
Quoted 1 line
@@ -198,7
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
+198,10 @@
if test x$do_cflags = xy; then
Quoted 2 lines
test x$compat = xy &&
Quoted 1 line
Quoted 1 line
Quoted 1 line
cflags="-I$XENO_INCLUDE_DIR/trank
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
-D__XENO_COMPAT__ $cflags"
for skin in $skin_list;do
Quoted 1 line
Quoted 1 line
Quoted 1 line
case
"$skin" in
Quoted 1 line
Quoted 1 line
Quoted 1 line
-
posix|cobalt|rtdm)
Quoted 1 line
Quoted 1 line
Quoted 1 line
+
posix|rtdm)
Quoted 1 line
Quoted 1 line
Quoted 1 line
+
test x$compat = xy
Quoted 3 lines
Quoted 3 lines
&&
Quoted 2 lines
cflags="$cflags
-I$XENO_INCLUDE_DIR/trank/posix"
Quoted 10 lines
Quoted 10 lines
Quoted 8 lines
+ ;;
+cobalt)
;;vxworks|psos|alchemy|smokey)
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
cflags="$cflags
Quoted 1 line
-I$XENO_INCLUDE_DIR/$skin"
Quoted 10 lines
Quoted 10 lines
Quoted 5 lines
--
Philippe.
Philippe,
With
thispatch, xeno-config works with --native and --posix.
Quoted 2 lines
Quoted 2 lines
Thank you for
the quick
Quoted 3 lines
Quoted 3 lines
fix.
I noticed
also that
Quoted 1 line
Quoted 1 line
xeno-config is in 2
debian packages so that you yet an
Quoted 1 line
Quoted 1 line
install error.
Quoted 1 line
Quoted 1 line
I'm busy to
write a mail
Quoted 1 line
Quoted 1 line
to report this, and to
fix this, but maybe this is not
Quoted 1 line
Quoted 1 line
urgent for rc5
Quoted 8 lines
Quoted 4 lines
Regards,
Frederik
Philippe
I haven't test the ldflags yet. I will
have a look at it right now and keep you informed. I noticed that in older xenomai versions there was a dependency on libpthread_rt.so.1 but now I don't see that dependency anymore, I don't know yet whether this a problem.
Quoted 1 line
Quoted 9 lines
That's correct, this library is named libcobalt in xenomai 3. With the
compat mode
enabled, you only need -ltrank in addition to the usual deps.Signature · 1 line
Philippe.
Ok, libtrank is in the dependencies, server proces starts and I have several tasks. I have still some problems but I think these are on application level, not on compile and link level. So I think the xeno-config is correct now.
Frederik
Quoted 24 lines
--------------------------------------------
On Mon, 22/6/15, Philippe Gerum <[email protected]> wrote:Subject: Re: [Xenomai] include guard
trank/posix/pthread.h
To: "Frederik Bayart" <[email protected]>, [email protected]
Date: Monday, 22 June, 2015, 16:39Quoted 1 line · Frederik Bayart
With this patch, xeno-config works with --native and --posix.
Quoted 2 lines
Thank
you for the quick fix.
Quoted 2 lines
I noticed also that xeno-config is in 2
debian packages so that you yet an install error.
Ok, it has to belong to the
runtime one, not the development one.
Quoted 11 lines
Quoted 1 line
I'm busy to write a mail to report
this, and to fix this, but maybe this is not urgent for rc5
Quoted 1 line
I
agree, this is not critical for -rc5.Signature · 1 line
Philippe.
In 2.6, xeno-config was in libxenomai-dev
If it should be now in xenomai-runtime, the patch below should fix it.
Frederik
rules.new renamed from rules.old +3 -0
@@ -64,6 +64,9 @@ for f in $(CURDIR)/kernel/cobalt/udev/*.rules ; do \ cat $$f >> $(CURDIR)/debian/libxenomai1/etc/udev/xenomai.rules ; \ done + # xeno-config should be only in xenomai-runtime + rm -f $(CURDIR)/debian/libxenomai-dev/usr/bin/xeno-config + rm -f $(CURDIR)/debian/libxenomai-dev/usr/share/man/man1/xeno-config.1 install -m 644 debian/libxenomai1.modprobe $(CURDIR)/debian/libxenomai1/etc/modprobe.d/xenomai.conf # remove empty directory rm -rf $(CURDIR)/debian/xenomai-doc/usr/share/doc/xenomai-doc/ps
Philippe Gerum
Appliedrules.new line 72
Quoted 12 lines · Frederik Bayart
rules.new renamed from rules.old +3
-0@@ -64,6 +64,9 @@ for f in $(CURDIR)/kernel/cobalt/udev/*.rules ; do \ cat $$f >> $(CURDIR)/debian/libxenomai1/etc/udev/xenomai.rules ; \ done + # xeno-config should be only in xenomai-runtime + rm -f $(CURDIR)/debian/libxenomai-dev/usr/bin/xeno-config + rm -f $(CURDIR)/debian/libxenomai-dev/usr/share/man/man1/xeno-config.1 install -m 644 debian/libxenomai1.modprobe $(CURDIR)/debian/libxenomai1/etc/modprobe.d/xenomai.conf # remove empty directory rm -rf $(CURDIR)/debian/xenomai-doc/usr/share/doc/xenomai-doc/ps
Merged, thanks.
Signature · 1 line
Philippe.