<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 18 July 2017 at 07:01, Dengke Du <span dir="ltr"><<a href="mailto:dengke.du@windriver.com" target="_blank">dengke.du@windriver.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div id="gmail-:4tt" class="gmail-a3s gmail-aXjCH gmail-m15d544a8ef991e51"> using getrandom syscall on linux 3.17+, so when we compiling <span class="gmail-il">expat</span>-native<br>
on the kernel older than 3.17, that would be failed.<br></div></blockquote></div><br>It's failing on Debian 8, which is kernel 4.9.0:</div><br>| ../expat-2.2.2/lib/xmlparse.c:56:3: error: #error You do not have support for any sources of high quality entropy enabled. For end user security, that is probably not what you want. Your options include: * Linux + glibc >=2.25 (getrandom): HAVE_GETRANDOM, * Linux + glibc <2.25 (syscall SYS_getrandom): HAVE_SYSCALL_GETRANDOM, * BSD / macOS (arc4random_buf): HAVE_ARC4RANDOM_BUF, * libbsd (arc4random_buf): HAVE_ARC4RANDOM_BUF + HAVE_LIBBSD, * Windows (RtlGenRandom): _WIN32. If insist on not using any of these, bypass this error by defining XML_POOR_ENTROPY; you have been warned. For CMake, one way to pass the define is: cmake -DCMAKE_C_FLAGS="-pipe -O2 -DHAVE_SYSCALL_GETRANDOM" . If you have reasons to patch this detection code away or need changes to the build system, please open a bug. Thank you!<div><br></div><div>(<a href="https://autobuilder.yocto.io/builders/nightly-ppc/builds/379/steps/BuildImages/logs/stdio">https://autobuilder.yocto.io/builders/nightly-ppc/builds/379/steps/BuildImages/logs/stdio</a>)</div><div><br></div><div>I suspect the detection code is well and truly broken.</div><div><br></div><div>Ross</div></div>