Building LinuxCNC with RTAI currently fails at hal_speaker.
error: implicit declaration of function ‘ioperm’
165 | if (rtapi_ioperm(SPEAKER_PORT, 1, 1) < 0) {
(It's a bit complicated by a #define of rtapi_ioperm)
But that code should not be compiled:
#if !defined(RTAPI_RTAI)
/* STEP 1.1: get access to port, only needed in uspace builds */
if (rtapi_ioperm(SPEAKER_PORT, 1, 1) < 0) {
rtapi_print_msg(RTAPI_MSG_ERR,
"SPEAKER: ERROR: ioperm() failed\n");
hal_exit(comp_id);
return -1;
}
#endif /* RTAPI_RTAI */
And the file _does_ #include config.h which includes:
/* Realtime system is RTAI */
#define RTAPI_RTAI /**/
Any thoughts?
--
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers