Summary: | dns/unbound fails to build on arm64 (no sbrk) | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Glen Barber <gjb> |
Component: | Individual Port(s) | Assignee: | Mark Linimon <linimon> |
Status: | Closed Overcome By Events | ||
Severity: | Affects Only Me | CC: | emaste, jaap, linimon |
Priority: | --- | Flags: | jaap:
maintainer-feedback+
|
Version: | Latest | ||
Hardware: | arm64 | ||
OS: | Any | ||
Bug Depends on: | |||
Bug Blocks: | 201763 |
Description
Glen Barber
2016-10-28 18:36:13 UTC
Currently I don't have arm64 hardware at hand so it is hard to reproduce the problem. Given the error, it seems that the arm64 architecture doesn't has sbrk() but configure seems to find it anyway. For now, remove the #define HAVE_SBRK 1 from config.h and give that a try. Meanwhile I'll contact the upstream. Note: I'm also traveling this will have little time so expect delays in my reactions. configure just compiles conftest.c containing sbrk() into conftest.o; it does not link it Running it manually, % cc -c -g -O2 -D_THREAD_SAFE -pthread -Werror conftest.c % echo $? 0 But actually trying to link it, % cc -g -O2 -D_THREAD_SAFE -pthread -Werror conftest.c /tmp/ss-1109f6.o: In function `main': /scratch/emaste/unbound/conftest.c:179: undefined reference to `sbrk' /scratch/emaste/unbound/conftest.c:179: undefined reference to `sbrk' cc: error: linker command failed with exit code 1 (use -v to see invocation) % (In reply to Ed Maste from comment #2) The upstream tells me that it is a known problem. The fix is in the repository and will be in the next release. For now, use the repository directly, which can be found via http://unbound.net. (In reply to jaap from comment #3) A new version of unbound has been released which should fix the problem. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215322 for details. Already marked BROKEN on arm64. (In reply to Mark Linimon from comment #5) As said before, it was fixed with the release of unbound 1.6.0 And today we released 1.6.1, so I really think this is taken over by events and can be closed. If unbound 1.6.1 still doesn't build on arm64 I would like to know. |