Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x

Carsten EHRMANN Carsten.Ehrmann at diehl.com
Tue Mar 3 11:44:01 CET 2020


Hi Jan,

after a few try and error I got the code compiled. When I try to start the executable I got the following error from rt_pipe_create(): -97

I use the function as follow: if(rt_pipe_create(&mControlPipe,aControlPipeName,P_MINOR_AUTO,2048) >= 0)

In the logfile there is no error from the kernel. Latency, Clock and Switch test have been ok.

Do you know what this mean? I haven't found anything .



Carsten



_________________________________________________________________________________________________________
Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/ before printing, think about environmental responsibility.
Diehl Metering GmbH, Industriestraße 13, 91522 Ansbach
Telefon + 49 981 1806 0, Telefax +49 981 1806 615
Sitz der Gesellschaft: Ansbach, Registergericht: Ansbach HRB 69
Geschäftsführer: Dr. Christof Bosbach (Sprecher), Thomas Gastner, Jean-François Marguet
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail fälschlicherweise erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited.
Informationen zum Datenschutz finden Sie auf unserer Homepage.
https://www.diehl.com/metering/de/diehl-metering/data-protection
Information about data protection can be found on our homepage.
https://www.diehl.com/metering/en/diehl-metering/data-protection


-----Original Message-----
From: Carsten EHRMANN <Carsten.Ehrmann at diehl.com> 
Sent: Wednesday, February 12, 2020 7:50 AM
To: Jan Kiszka <jan.kiszka at siemens.com>; xenomai at xenomai.org
Subject: RE: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x

Hi Jan,

after a little try and error, it works! Now I have to integrate it to our project file or makefile.

Thanks a lot for your help!

Best regards
Carsten

-----Original Message-----
From: Jan Kiszka <jan.kiszka at siemens.com> 
Sent: Monday, February 10, 2020 5:18 PM
To: Carsten EHRMANN <Carsten.Ehrmann at diehl.com>; xenomai at xenomai.org
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x

On 10.02.20 16:27, Carsten EHRMANN wrote:
> Hi Jan,
> 
> I made a simple reproduction example (see attached 4 files).
> I got this error again:
> 
> In file included from main.cpp:28:0:
> /usr/xenomai/include/trank/native/task.h: In function ‘int rt_task_notify(RT_TASK*, rt_sigset_t)’:
> /usr/xenomai/include/trank/native/task.h:41:64: error: ‘trank_warning’ was not declared in this scope
>    trank_warning("in-kernel native API is gone, rebase over RTDM");
> 

Your makefile is incomplete, but this works fine here with Xenomai 3.1 (I'm sure it does equally well with 3.0.x):

g++ -o main main.cpp $(xeno-config --skin=native --cflags --ldflags)

Jan

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux


More information about the Xenomai mailing list