<div dir="ltr"><div>Hmm, i'm runnning Libreswan in a Ubuntu 14.04 chroot environment in 
Ubuntu 10.04 host /w klips (yes i know) . Maybe this is the source of a problem..<br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-02-16 19:11 GMT+01:00 Paul Wouters <span dir="ltr"><<a href="mailto:paul@nohats.ca" target="_blank">paul@nohats.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, 16 Feb 2017, csszep wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I see tons of unknown clock_gettime() error: -1 imessage in the log.<br>
<br>
I think, it is related to the following check (i'm not a c guru) in /programs/pluto/defs.c<br>
</blockquote>
<br>
</span><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
        case EINVAL:<br>
                libreswan_log("Invalid clock method for clock_gettime() - possibly compiled with<br>
mismatched kernel and glibc-headers ");<br>
</blockquote>
<br>
</span><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
When i replace the entire check, with a fixed CLOCK_MONOTONIC (i have a 2.6.32.70 kernel so<br>
CLOCK_BOOTIME not exist) i dont see more "-1" messages in the log or strace.<br>
</blockquote>
<br></span>
Have you looked into the problem that you indeed might have a mismatched<br>
kernel and glibc-headers ?<span class="HOEnZb"><font color="#888888"><br>
<br>
Paul<br>
</font></span></blockquote></div><br></div>