Skip to content

Fix for 2.9: uspace_xenomai.cc#3980

Merged
andypugh merged 1 commit intoLinuxCNC:2.9from
hdiethelm:2.9_xenomai_fixes
Apr 30, 2026
Merged

Fix for 2.9: uspace_xenomai.cc#3980
andypugh merged 1 commit intoLinuxCNC:2.9from
hdiethelm:2.9_xenomai_fixes

Conversation

@hdiethelm
Copy link
Copy Markdown
Contributor

Merge fixes from master, corrects error:

rtapi/uspace_xenomai.cc:4:10: fatal error: posix/pthread.h: Datei oder Verzeichnis nicht gefunden
    4 | #include <posix/pthread.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.

and

Compiling rtapi/uspace_xenomai.cc
rtapi/uspace_xenomai.cc: In member function ‘virtual int {anonymous}::XenomaiApp::task_delete(int)’:
rtapi/uspace_xenomai.cc:30:27: error: ‘EINVAL’ was not declared in this scope
   30 |         if(!task) return -EINVAL;
      |                           ^~~~~~
rtapi/uspace_xenomai.cc: In member function ‘virtual int {anonymous}::XenomaiApp::task_start(int, long unsigned int)’:
rtapi/uspace_xenomai.cc:42:27: error: ‘EINVAL’ was not declared in this scope
   42 |         if(!task) return -EINVAL;
      |                           ^~~~~~
rtapi/uspace_xenomai.cc:46:9: error: ‘memset’ was not declared in this scope
   46 |         memset(&param, 0, sizeof(param));
      |         ^~~~~~
rtapi/uspace_xenomai.cc:8:1: note: ‘memset’ is defined in header ‘<cstring>’; this is probably fixable by adding ‘#include <cstring>’
    7 | #include <sys/io.h>
  +++ |+#include <cstring>
    8 | #endif
rtapi/uspace_xenomai.cc: In member function ‘virtual int {anonymous}::XenomaiApp::task_pause(int)’:
rtapi/uspace_xenomai.cc:100:17: error: ‘ENOSYS’ was not declared in this scope
  100 |         return -ENOSYS;
      |                 ^~~~~~
rtapi/uspace_xenomai.cc: In member function ‘virtual int {anonymous}::XenomaiApp::task_resume(int)’:
rtapi/uspace_xenomai.cc:104:17: error: ‘ENOSYS’ was not declared in this scope
  104 |         return -ENOSYS;
      |                 ^~~~~~
rtapi/uspace_xenomai.cc: In member function ‘virtual int {anonymous}::XenomaiApp::task_pll_set_correction(long int)’:
rtapi/uspace_xenomai.cc:115:27: error: ‘EINVAL’ was not declared in this scope
  115 |         if(!task) return -EINVAL;
      |                           ^~~~~~
rtapi/uspace_xenomai.cc: In member function ‘virtual void {anonymous}::XenomaiApp::wait()’:
rtapi/uspace_xenomai.cc:139:25: error: ‘perror’ was not declared in this scope; did you mean ‘period’?
  139 |             if(res < 0) perror("clock_nanosleep");
      |                         ^~~~~~
      |                         period
rtapi/uspace_xenomai.cc: In member function ‘virtual int {anonymous}::XenomaiApp::task_self()’:
rtapi/uspace_xenomai.cc:162:27: error: ‘EINVAL’ was not declared in this scope
  162 |         if(!task) return -EINVAL;
      |                           ^~~~~~
make: *** [Makefile:287: objects/rtapi/uspace_xenomai.o] Fehler 1

Merge fixes from master, corrects compiler error
@hdiethelm hdiethelm mentioned this pull request Apr 29, 2026
@andypugh andypugh merged commit 8b58344 into LinuxCNC:2.9 Apr 30, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants