Setting up a new build environment for Openwrt, I discovered that the compilation of aprx fails due to a missing file.
netax25.c:27:10: fatal error: netax25/ax25.h: No such file or directory
#include <netax25/ax25.h>
The quick and dirty solution is to add a directory nextax25 and place the missing files into that directory:
For target BRCM47XX
~/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.4.0_musl/include
For target ip140xx
~/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.4.0_musl_eabi/include
The files you need are ax25.h and sockaddr.h, which can find on several other places, after you have a complete compilation of openwrt without aprx.