Marius and all,
I forgot to note, I HAD to add this line to ampr-ripd.c to make it
compile with g++ for ampr-ripd 1.16.3:
+ #define IPPORT_ROUTESERVER 520
The following are the commands, assuming the uncompressed tools provided
by OpenWRT or LEDE (account for version, device CPU, C version name,
etc. in different filenames, refer to links in AMPR Wiki for OpenWRT for
more information) are put at /home/user/ :
# wget toolchain for target OS Version and CPU from LEDE or OpenWRT site
# wget source code
# untar both
# sudo mkdir /build/lede-17.01/slaves/phase1/ar71xx_generic/build
# copy staging_dir directory there
unset SED
export
STAGING_DIR=/home/user/lede-sdk-17.01.1-ar71xx-generic_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16
export TOOLCHAIN_DIR=$STAGING_DIR
export LDCFLAGS=$TOOLCHAIN_DIR/lib
export LD_LIBRARY_PATH=$TOOLCHAIN_DIR/lib
export PATH=$TOOLCHAIN_DIR/bin:$PATH
cd /home/user/ampr-ripd-1.16.3
mips-openwrt-linux-musl-g++ ampr-ripd.c -v -fpermissive -Wwrite-strings
The a.out file is your executable binary file!
- Lynwood
KB3VWG