How do I compile dnsmasq from snapshots on 22.03?

For the packages in the packages/luci repo it's easy to download/setup SDK and then you can compile whatever package you want this way.

What's the easiest/fastest way to compile the dnsmasq from snapshots for the 22.03? When trying to use SDK to compile it I get warnings/errors for missing libs:

make[3]: Entering directory '/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89'
Package libnetfilter_conntrack was not found in the pkg-config search path.
Perhaps you should add the directory containing `libnetfilter_conntrack.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libnetfilter_conntrack', required by 'virtual:world', not found
Package libnftables was not found in the pkg-config search path.
Perhaps you should add the directory containing `libnftables.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libnftables', required by 'virtual:world', not found
Package libnetfilter_conntrack was not found in the pkg-config search path.
Perhaps you should add the directory containing `libnetfilter_conntrack.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libnetfilter_conntrack', required by 'virtual:world', not found
Package libnftables was not found in the pkg-config search path.
Perhaps you should add the directory containing `libnftables.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libnftables', required by 'virtual:world', not found
make[4]: Entering directory '/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89/src'
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89=dnsmasq-2.89 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -DHAVE_UBUS -DHAVE_POLL_H    -DHAVE_DNSSEC  -DNO_IPSET -DHAVE_NFTSET -DHAVE_CONNTRACK -DNO_ID     -DVERSION='"2.89"'         -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/target-x86_64_musl/usr/include     -c cache.c	
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89=dnsmasq-2.89 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -DHAVE_UBUS -DHAVE_POLL_H    -DHAVE_DNSSEC  -DNO_IPSET -DHAVE_NFTSET -DHAVE_CONNTRACK -DNO_ID     -DVERSION='"2.89"'         -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/target-x86_64_musl/usr/include     -c rfc1035.c	
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89=dnsmasq-2.89 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -DHAVE_UBUS -DHAVE_POLL_H    -DHAVE_DNSSEC  -DNO_IPSET -DHAVE_NFTSET -DHAVE_CONNTRACK -DNO_ID     -DVERSION='"2.89"'         -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/target-x86_64_musl/usr/include     -c util.c	
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89=dnsmasq-2.89 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -DHAVE_UBUS -DHAVE_POLL_H    -DHAVE_DNSSEC  -DNO_IPSET -DHAVE_NFTSET -DHAVE_CONNTRACK -DNO_ID     -DVERSION='"2.89"'         -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/target-x86_64_musl/usr/include     -c option.c	
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89=dnsmasq-2.89 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -DHAVE_UBUS -DHAVE_POLL_H    -DHAVE_DNSSEC  -DNO_IPSET -DHAVE_NFTSET -DHAVE_CONNTRACK -DNO_ID     -DVERSION='"2.89"'         -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/target-x86_64_musl/usr/include     -c forward.c	
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89=dnsmasq-2.89 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -DHAVE_UBUS -DHAVE_POLL_H    -DHAVE_DNSSEC  -DNO_IPSET -DHAVE_NFTSET -DHAVE_CONNTRACK -DNO_ID     -DVERSION='"2.89"'         -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/target-x86_64_musl/usr/include     -c network.c	
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89=dnsmasq-2.89 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -DHAVE_UBUS -DHAVE_POLL_H    -DHAVE_DNSSEC  -DNO_IPSET -DHAVE_NFTSET -DHAVE_CONNTRACK -DNO_ID     -DVERSION='"2.89"'         -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/target-x86_64_musl/usr/include     -c dnsmasq.c	
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89=dnsmasq-2.89 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -DHAVE_UBUS -DHAVE_POLL_H    -DHAVE_DNSSEC  -DNO_IPSET -DHAVE_NFTSET -DHAVE_CONNTRACK -DNO_ID     -DVERSION='"2.89"'         -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/target-x86_64_musl/usr/include     -c dhcp.c	
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89=dnsmasq-2.89 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -DHAVE_UBUS -DHAVE_POLL_H    -DHAVE_DNSSEC  -DNO_IPSET -DHAVE_NFTSET -DHAVE_CONNTRACK -DNO_ID     -DVERSION='"2.89"'         -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/target-x86_64_musl/usr/include     -c lease.c	
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89=dnsmasq-2.89 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -DHAVE_UBUS -DHAVE_POLL_H    -DHAVE_DNSSEC  -DNO_IPSET -DHAVE_NFTSET -DHAVE_CONNTRACK -DNO_ID     -DVERSION='"2.89"'         -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/target-x86_64_musl/usr/include     -c rfc2131.c	
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89=dnsmasq-2.89 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -DHAVE_UBUS -DHAVE_POLL_H    -DHAVE_DNSSEC  -DNO_IPSET -DHAVE_NFTSET -DHAVE_CONNTRACK -DNO_ID     -DVERSION='"2.89"'         -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/target-x86_64_musl/usr/include     -c netlink.c	
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89=dnsmasq-2.89 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -DHAVE_UBUS -DHAVE_POLL_H    -DHAVE_DNSSEC  -DNO_IPSET -DHAVE_NFTSET -DHAVE_CONNTRACK -DNO_ID     -DVERSION='"2.89"'         -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/target-x86_64_musl/usr/include     -c dbus.c	
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89=dnsmasq-2.89 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -DHAVE_UBUS -DHAVE_POLL_H    -DHAVE_DNSSEC  -DNO_IPSET -DHAVE_NFTSET -DHAVE_CONNTRACK -DNO_ID     -DVERSION='"2.89"'         -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/target-x86_64_musl/usr/include     -c bpf.c	
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89=dnsmasq-2.89 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -DHAVE_UBUS -DHAVE_POLL_H    -DHAVE_DNSSEC  -DNO_IPSET -DHAVE_NFTSET -DHAVE_CONNTRACK -DNO_ID     -DVERSION='"2.89"'         -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/target-x86_64_musl/usr/include     -c helper.c	
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89=dnsmasq-2.89 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -DHAVE_UBUS -DHAVE_POLL_H    -DHAVE_DNSSEC  -DNO_IPSET -DHAVE_NFTSET -DHAVE_CONNTRACK -DNO_ID     -DVERSION='"2.89"'         -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/target-x86_64_musl/usr/include     -c tftp.c	
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89=dnsmasq-2.89 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -DHAVE_UBUS -DHAVE_POLL_H    -DHAVE_DNSSEC  -DNO_IPSET -DHAVE_NFTSET -DHAVE_CONNTRACK -DNO_ID     -DVERSION='"2.89"'         -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/target-x86_64_musl/usr/include     -c log.c	
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89=dnsmasq-2.89 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -DHAVE_UBUS -DHAVE_POLL_H    -DHAVE_DNSSEC  -DNO_IPSET -DHAVE_NFTSET -DHAVE_CONNTRACK -DNO_ID     -DVERSION='"2.89"'         -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/target-x86_64_musl/usr/include     -c conntrack.c	
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89=dnsmasq-2.89 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -DHAVE_UBUS -DHAVE_POLL_H    -DHAVE_DNSSEC  -DNO_IPSET -DHAVE_NFTSET -DHAVE_CONNTRACK -DNO_ID     -DVERSION='"2.89"'         -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/target-x86_64_musl/usr/include     -c dhcp6.c	
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89=dnsmasq-2.89 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -DHAVE_UBUS -DHAVE_POLL_H    -DHAVE_DNSSEC  -DNO_IPSET -DHAVE_NFTSET -DHAVE_CONNTRACK -DNO_ID     -DVERSION='"2.89"'         -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/target-x86_64_musl/usr/include     -c rfc3315.c	
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89=dnsmasq-2.89 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -DHAVE_UBUS -DHAVE_POLL_H    -DHAVE_DNSSEC  -DNO_IPSET -DHAVE_NFTSET -DHAVE_CONNTRACK -DNO_ID     -DVERSION='"2.89"'         -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/target-x86_64_musl/usr/include     -c dhcp-common.c	
conntrack.c:21:10: fatal error: libnetfilter_conntrack/libnetfilter_conntrack.h: No such file or directory
   21 | #include <libnetfilter_conntrack/libnetfilter_conntrack.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89=dnsmasq-2.89 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include -DHAVE_UBUS -DHAVE_POLL_H    -DHAVE_DNSSEC  -DNO_IPSET -DHAVE_NFTSET -DHAVE_CONNTRACK -DNO_ID     -DVERSION='"2.89"'         -I/home/stangri/development/Builder/SDK_x86-64_22.03.5/staging_dir/target-x86_64_musl/usr/include     -c outpacket.c	
make[4]: *** [/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89/Makefile:168: conntrack.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89/src'
make[3]: *** [Makefile:93: all] Error 2
make[3]: Leaving directory '/home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89'
make[2]: *** [Makefile:207: /home/stangri/development/Builder/SDK_x86-64_22.03.5/build_dir/target-x86_64_musl/dnsmasq-full/dnsmasq-2.89/.built] Error 2
make[2]: Leaving directory '/home/stangri/development/Builder/SDK_x86-64_22.03.5/feeds/packages/stangri/dnsmasq'
time: package/dnsmasq/full/compile#3.98#0.56#1.95
    ERROR: package/dnsmasq failed to build (build variant: full).
make[1]: *** [package/Makefile:122: package/dnsmasq/compile] Error 1
make[1]: Leaving directory '/home/stangri/development/Builder/SDK_x86-64_22.03.5'
make: *** [/home/stangri/development/Builder/SDK_x86-64_22.03.5/include/toplevel.mk:223: package/dnsmasq/compile] Error 2

I don't understand where do I need to place libs (and which ones exactly do I need) from the openwrt repo into SDK to overcome this. Any ideas?

Am I missing something obvious in the docs? Ideally I'd like not to use the toolchain and just get by with pre-compiled/downloaded SDK. Is it doable?