Subject: Re: next-20151002 build error "samples/kdbus/kdbus-workers.c:778: error: ‘CLOCK_MONOTONIC_COARSE’"

From: Greg Kroah-Hartman <[email-masked]>
Date: Sat, 3 Oct 2015 13:21:01 +0200

On Fri, Oct 02, 2015 at 07:10:38PM -0700, Vinson Lee wrote:
> Hi.
> 
> I am hitting this build error in kdbus-workers.c with Ubuntu 10.04.4.
> Ubuntu 10.04.4 has glibc 2.11.

Ugh, that's an old glibc :(

>   HOSTCC  samples/kdbus/kdbus-workers
> samples/kdbus/kdbus-workers.c: In function ‘child_run’:
> samples/kdbus/kdbus-workers.c:778: error: ‘CLOCK_MONOTONIC_COARSE’
> undeclared (first use in this function)
> samples/kdbus/kdbus-workers.c:778: error: (Each undeclared identifier
> is reported only once
> samples/kdbus/kdbus-workers.c:778: error: for each function it appears in.)
> samples/kdbus/kdbus-workers.c: In function ‘bus_open_connection’:
> samples/kdbus/kdbus-workers.c:1043: error: ‘O_CLOEXEC’ undeclared
> (first use in this function)
> samples/kdbus/kdbus-workers.c: In function ‘bus_make’:
> samples/kdbus/kdbus-workers.c:1280: error: ‘O_CLOEXEC’ undeclared
> (first use in this function)
> make[2]: *** [samples/kdbus/kdbus-workers] Error 1

As I don't have access to such ancient machines, could you work on a
patch for this, adding the needed defines if they aren't present by the
libc?

thanks,

greg k-h