Marius,
As I noted, I could only get version 1.16.2 of your program to compile
with g++. I noted the issues previously and was told that complier is
setup incorrectly. I have verified the compiler is setup correctly and I
have compiled other programs, including ampr-ripd v 1.16.2.
Here's the response when using gcc:
GNU C11 (LEDE GCC 5.4.0 r3101-bce140e) version 5.4.0
(mips-openwrt-linux-musl)
compiled by GNU C version 4.9.2, GMP version 6.1.2, MPFR version
3.1.5, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=97 --param ggc-min-heapsize=127015
Compiler executable checksum: 0eed14c713c4c6b5c1bb74495a11e5c7
ampr-ripd.c: In function 'create_fwsd':
ampr-ripd.c:1537:23: error: 'IPPORT_ROUTESERVER' undeclared (first use
in this function)
sin.sin_port = htons(IPPORT_ROUTESERVER);
^
ampr-ripd.c:1537:23: note: each undeclared identifier is reported only
once for each function it appears in
ampr-ripd.c: In function 'on_alarm':
ampr-ripd.c:1630:27: error: 'IPPORT_ROUTESERVER' undeclared (first use
in this function)
sin.sin_port = htons(IPPORT_ROUTESERVER);
^
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:1865:29: error: 'IPPORT_ROUTESERVER' undeclared (first use
in this function)
(udh->dest == htons(IPPORT_ROUTESERVER)) &&
^
ampr-ripd.c:1866:13: error: 'struct udphdr' has no member named 'source'
(udh->source == htons(IPPORT_ROUTESERVER)))
^
The snipped portion shows that it is finding the headers and libraries.
- Lynwood