error: implicit declaration of function ‘__OPEN_NEEDS_MODE’

Gabriel Dinse gabriel_dinse at
Mon Dec 28 16:37:22 CET 2020

Hello, I’m getting the following error when doing:
~/xenomai-3/build$ make install

make[3]: Entering directory '/home/gabriel/xenomai-3/build/lib/cobalt'
  CC       libcobalt_la-rtdm.lo
../../../lib/cobalt/rtdm.c: In function ‘__cobalt___open_2’:
../../../lib/cobalt/rtdm.c:104:2: error: implicit declaration of function ‘__OPEN_NEEDS_MODE’
  if (__OPEN_NEEDS_MODE(oflag)) {
cc1: all warnings being treated as errors
make[3]: *** [Makefile:721: libcobalt_la-rtdm.lo] Error 1
make[3]: Leaving directory '/home/gabriel/xenomai-3/build/lib/cobalt'
make[2]: *** [Makefile:838: install-recursive] Error 1
make[2]: Leaving directory '/home/gabriel/xenomai-3/build/lib/cobalt'
make[1]: *** [Makefile:428: install-recursive] Error 1
make[1]: Leaving directory '/home/gabriel/xenomai-3/build/lib'
make: *** [Makefile:461: install-recursive] Error 1


What can be done in this case?

More information about the Xenomai mailing list