Those lines have not changed from the previous version (only 2 lines are
changed).
The warnings are specific for the use of a c++ compiler on a c code. So
the compiler setup is probably incorrect.
On 2017-04-19 19:32, lleachii--- via 44Net wrote:
(Please trim inclusions from previous messages)
_______________________________________________
Marius,
I now receive the following when attempting to compile:
ampr-ripd.c:209:70: warning: deprecated conversion from string
constant to 'char*' [-Wwrite-strings]
static char *usage_string = "\nAMPR RIPv2 daemon " AMPR_RIPD_VERSION
" by Marius, YO2LOJ\n\nUsage: ampr-ripd [-d] [-v] [-s] [-r] [-i
<interface>] [-t <table>] [-a <ip|hostnam
^
ampr-ripd.c:215:15: warning: deprecated conversion from string
constant to 'char*' [-Wwrite-strings]
char *tunif = "tunl0";
^
ampr-ripd.c:221:16: warning: deprecated conversion from string
constant to 'char*' [-Wwrite-strings]
char *passwd = "REMOVED THE PASSWORD HERE-KB3VWG";
^
ampr-ripd.c:227:16: warning: deprecated conversion from string
constant to 'char*' [-Wwrite-strings]
char *fwdest = "224.0.0.9";
^
ampr-ripd.c: In function 'uint32_t route_func(rt_actions, uint32_t,
uint32_t, uint32_t)':
ampr-ripd.c:1020:36: warning: invalid conversion from 'void*' to
'rtattr*' [-fpermissive]
struct rtattr *mxrta = (void *)mxbuf;
^
ampr-ripd.c:1148:10: warning: invalid conversion from 'void*' to
'rtmsg*' [-fpermissive]
rm = NLMSG_DATA(rh);
^
ampr-ripd.c:1171:10: warning: invalid conversion from 'void*' to
'rtmsg*' [-fpermissive]
rm = NLMSG_DATA(rh);
^
ampr-ripd.c: In function 'int create_fwsd()':
ampr-ripd.c:1537:23: error: 'IPPORT_ROUTESERVER' was not declared in
this scope
sin.sin_port = htons(IPPORT_ROUTESERVER);
^
ampr-ripd.c: In function 'void on_alarm(int)':
ampr-ripd.c:1630:27: error: 'IPPORT_ROUTESERVER' was not declared in
this scope
sin.sin_port = htons(IPPORT_ROUTESERVER);
^
ampr-ripd.c: In function 'int main(int, char**)':
ampr-ripd.c:1865:29: error: 'IPPORT_ROUTESERVER' was not declared in
this scope
(udh->dest == htons(IPPORT_ROUTESERVER)) &&
^
- Lynwood
_________________________________________
44Net mailing list
44Net(a)hamradio.ucsd.edu
http://hamradio.ucsd.edu/mailman/listinfo/44net