I upgraded my router from an older compatible version. I have a compiled binary that I previously ran successfully from the Startup and Firewall Scripts. Also, I previously installed softflowd and ran 3 instances from the startup and firewall boot scripts.
I could also run these commands, binaries and shell scripts from the CLI.
Are there any suggestions, dependent packages, etc. I may need to install, or anything else that may be required to run binaries from the boot scripts and command line?
Binaries compiled with older Openwrt or LEDE versions will cause that kind of error due to changed clib versions. Openwrt 14.07 and 15.05 still used uclibc while Openwrt DD trunk and LEDE use musl clib.
You need to cross compile the app again with the current toolchain.
I want to update you all (and ask if I should perhaps make a new thread for this).
After some time, and working with the developer, we had to add the following line to the in.c file:
#define IPPORT_ROUTESERVER <number-is-here>
Even after doing so, we receive this error:
user@user:~/ampr-ripd-1.16.2$ mips-openwrt-linux-musl-gcc ampr-ripd.c
ampr-ripd.c: In function 'main':
ampr-ripd.c:1865:13: error: 'struct udphdr' has no member named 'dest'
(udh->dest == htons(IPPORT_ROUTESERVER)) &&
ampr-ripd.c:1866:13: error: 'struct udphdr' has no member named 'source'
(udh->source == htons(IPPORT_ROUTESERVER)))
Error loading shared library libstdc++.so.6: No such file or directory (needed by ./ampr-ripd-1.16.2-MIPS)
I solved that by adding the package libstdcpp
But...my original problem still exists...I'm unable to run the file from the firewall/startup scripts. This is also the same behavior for a package I installed via opkg named softflowd (it also no longer runs form the scripts).
for the binary: I did /example instead of ./example (i also have to do that for any commands that may be specified within arguments in any executed command.
for the installed package: I now have to leave the process "Enabled" on the Process list. It does not appear to run any instances from the provided softflowd config script. In any case, I am now able to execute those instances.