<br><br>On Monday, September 16, 2013, Phil Blundell &lt;<a href="mailto:pb@pbcl.net">pb@pbcl.net</a>&gt; wrote:<br>&gt; On Mon, 2013-09-16 at 09:24 -0700, Khem Raj wrote:<br>&gt;&gt; On Sat, Sep 14, 2013 at 12:19 AM, Phil Blundell &lt;<a href="mailto:pb@pbcl.net">pb@pbcl.net</a>&gt; wrote:<br>
&gt;&gt; &gt; On Fri, 2013-09-13 at 21:24 -0700, Khem Raj wrote:<br>&gt;&gt; &gt;&gt; There are cases where we have bsps with 2.6.3x kernels and libc<br>&gt;&gt; &gt;&gt; compiled against 3.10 assumes syscalls<br>&gt;&gt; &gt;<br>
&gt;&gt; &gt; That is a bug in glibc.  It should not be doing that unless configured<br>&gt;&gt; &gt; --enable-kernel=3.10.x (and this is the whole point of the<br>&gt;&gt; &gt; --enable-kernel option).  If it&#39;s assuming 3.10.x syscalls under<br>
&gt;&gt; &gt; --enable-kernel=2.6.x then it is broken and should be fixed.<br>&gt;&gt; &gt;<br>&gt;&gt;<br>&gt;&gt; we have OLDEST_KERNEL = &quot;2.6.16&quot; and thats not a problem. However one<br>&gt;&gt; case where it showed up was when building udev &gt; 164 with kernels<br>
&gt;&gt; where accept4 call was not wired for arm e.g. since udev looked up<br>&gt;&gt; definition of SOCK_CLOEXEC which it found but that 2.6.32 kernel<br>&gt;&gt; really did not support it.<br>&gt;<br>&gt; That sounds slightly different to the problem you were originally<br>
&gt; describing (&quot;libc compiled against 3.10&quot;) but I think the answer is<br>&gt; basically still the same: it is a bug in udev, and udev ought to be<br>&gt; fixed.<br>&gt;<br><br>if you check for kernel version yes but its not wrong by testing a given kernel API which it is doing<br>
<br>anyway i think the notice that rp added is good in general and may be will help folks to upgrade and unify kernels in long run<br>&gt; p.<br>&gt;<br>&gt;<br>&gt;