-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Open
Labels
Description
Package Name
dnsdist
Maintainer
OpenWrt Version
SNAPSHOT
OpenWrt Target/Subtarget
bcm27xx/bcm2711
Steps to Reproduce
dnsdist fails to build on my machine due to missing boost headers:
checking whether strerror_r returns char *... yes
checking for Boost headers version >= 1.54.0... no
configure: error: cannot find Boost headers version >= 1.54.0
make[2]: *** [Makefile:173: /home/cschuette/openwrt/bcm2711-snapshot/openwrt/build_dir/target-aarch64_cortex-a72_glibc/dnsdist-full/dnsdist-2.0.1/.configured_6ba82834d267f734edb119af3ee1e292] Error 1
make[2]: Leaving directory '/home/cschuette/openwrt/bcm2711-snapshot/openwrt/feeds/packages/net/dnsdist'
time: package/feeds/packages/dnsdist/full/compile#2.92#2.50#7.18
ERROR: package/feeds/packages/dnsdist failed to build (build variant: full).
make[1]: *** [package/Makefile:193: package/feeds/packages/dnsdist/compile] Error 1
make[1]: Leaving directory '/home/cschuette/openwrt/bcm2711-snapshot/openwrt'
make: *** [/home/cschuette/openwrt/bcm2711-snapshot/openwrt/include/toplevel.mk:233: package/feeds/packages/dnsdist/compile] Error 2
Installing latest libboost-dev to the build host solved this, but leads to a different error:
<command-line>: warning: '_FORTIFY_SOURCE' redefined
<command-line>: note: this is the location of the previous definition
In file included from misc.hh:32,
from iputils.hh:31,
from bpf-filter.hh:27,
from bpf-filter.cc:22:
dns.hh: In static member function 'static bool dnsheader_aligned::isMemoryAligned(const void*)':
dns.hh:217:12: error: cast from 'const void*' to 'uintptr_t' {aka 'unsigned int'} loses precision [-fpermissive]
217 | return reinterpret_cast<uintptr_t>(mem) % sizeof(uint32_t) == 0; // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[5]: *** [Makefile:1934: bpf-filter.o] Error 1
So, there seems to be something wrong with the dependencies.
@Habbie @rgacogne
Actual Behaviour
Build fails.
Confirmation Checklist
- The package is maintained in this repository.
- I understand that issues related to the base OpenWrt repository or LuCI repository will be closed.
- I am reporting an issue for OpenWrt, not an unsupported fork.