[Xenomai] [Patch] Add missing header file to analogy_calibrate.h

Christoph Müllner christoph.muellner at theobroma-systems.com
Fri Oct 6 09:55:46 CEST 2017

Hi Xenomai-List,

attached is a patch, which solved a compilation issue when building Xenomai next (c4baa9a84).
Note, that I am building Xenomai in Buildroot with aarch64 as target architecture.
I'm using GCC 6, glibc 2.25 and Linux headers from 4.12.

The complete error message is:

>   ke[3]: Entering directory '/home/cmuellner/rk3399/buildroot/buildroot-2017.08/output/build/xenomai-next/utils/analogy'
> [...]
>   CCLD     insn_read
> In file included from calibration_ni_m.h:27:0,
>                  from calibration_ni_m.c:26:
> analogy_calibrate.h: In function ‘__debug’:
> analogy_calibrate.h:95:2: error: implicit declaration of function ‘clock_gettime’ [-Werror=implicit-function-declaration]
>   clock_gettime(CLOCK_MONOTONIC, &now);
>   ^~~~~~~~~~~~~
> analogy_calibrate.h:95:16: error: ‘CLOCK_MONOTONIC’ undeclared (first use in this function)
>   clock_gettime(CLOCK_MONOTONIC, &now);
>                 ^~~~~~~~~~~~~~~
> analogy_calibrate.h:95:16: note: each undeclared identifier is reported only once for each function it appears in
> cc1: all warnings being treated as errors
> Makefile:693: recipe for target 'calibration_ni_m.o' failed


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-utils-analogy-Add-missing-header-file.patch
Type: application/octet-stream
Size: 1021 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20171006/81211415/attachment.obj>
-------------- next part --------------

Christoph Müllner
Theobroma Systems Design und Consulting GmbH
Seestadtstraße 27 (Aspern IQ), 1220 Wien, Austria
Phone: +43 1 236 98 93-409, Fax: +43 1 236 98 93-9

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP
URL: <http://xenomai.org/pipermail/xenomai/attachments/20171006/81211415/attachment.sig>

More information about the Xenomai mailing list