Bug 632 - unbound fails to build on AArch64
unbound fails to build on AArch64
Product: unbound
Classification: Unclassified
Component: server
Other Linux
: P5 enhancement
Assigned To: unbound team
Depends on:
  Show dependency treegraph
Reported: 2014-11-30 20:56 CET by Marcin Juszkiewicz
Modified: 2014-12-02 01:21 CET (History)
2 users (show)

See Also:

fix for a bug (614 bytes, patch)
2014-11-30 20:56 CET, Marcin Juszkiewicz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Juszkiewicz 2014-11-30 20:56:34 CET
Created attachment 268 [details]
fix for a bug

compat/getentropy_linux.c has a note that SYS__sysctl syscall is on a way to be removed from Linux. And the time has come...

AArch64 (64-bit ARMv8) is one of new architectures which do not support legacy syscalls. SYS__sysctl is one of them and as such is not present at all in system headers (or is protected with proper #ifdef use).

Attached patch makes sure that unbound code checks for SYS__sysctl to be defined before it tries to use getentropy_sysctl() function.
Comment 1 Wouter Wijngaards 2014-12-02 01:21:08 CET
Hi Marcin,

Thank you so much for the patch, I have included it and I think it'll make a 1.5.1rc2 for that.

Best regards, Wouter