[CC] pbx_dundi.c -> pbx_dundi.o
In file included from pbx_dundi.c:38:
/usr/include/netinet/ip.h:67: error: field `ip_src' has incomplete type
/usr/include/netinet/ip.h:67: error: field `ip_dst' has incomplete type
/usr/include/netinet/ip.h:155: error: field `ipt_addr' has incomplete type
/usr/include/netinet/ip.h:191: error: field `ippseudo_src' has incomplete type
/usr/include/netinet/ip.h:192: error: field `ippseudo_dst' has incomplete type
In file included from pbx_dundi.c:41:
/usr/include/net/if.h:221: error: `AF_MAX' undeclared here (not in a function)
/usr/include/net/if.h:492: error: field `ifru_addr' has incomplete type
/usr/include/net/if.h:493: error: field `ifru_dstaddr' has incomplete type
/usr/include/net/if.h:494: error: field `ifru_broadaddr' has incomplete type
/usr/include/net/if.h:511: error: field `ifra_addr' has incomplete type
/usr/include/net/if.h:512: error: field `ifra_dstaddr' has incomplete type
/usr/include/net/if.h:514: error: field `ifra_mask' has incomplete type
/usr/include/net/if.h:552: error: field `addr' has incomplete type
/usr/include/net/if.h:553: error: field `dstaddr' has incomplete type
In file included from /usr/include/net/if.h:570,
from pbx_dundi.c:41:
/usr/include/net/if_arp.h:79: error: field `arp_pa' has incomplete type
/usr/include/net/if_arp.h:80: error: field `arp_ha' has incomplete type
pbx_dundi.c: In function `reset_global_eid':
pbx_dundi.c:429: error: dereferencing pointer to incomplete type
pbx_dundi.c:429: error: `AF_LINK' undeclared (first use in this function)
pbx_dundi.c:429: error: (Each undeclared identifier is reported only once
pbx_dundi.c:429: error: for each function it appears in.)
pbx_dundi.c: In function `socket_read':
pbx_dundi.c:2049: warning: implicit declaration of function `recvfrom'
pbx_dundi.c:2049: warning: type-punning to incomplete type might break strict-aliasing rules
pbx_dundi.c: In function `dundi_xmit':
pbx_dundi.c:2915: warning: implicit declaration of function `sendto'
pbx_dundi.c: In function `populate_addr':
pbx_dundi.c:4378: error: `AF_INET' undeclared (first use in this function)
pbx_dundi.c: In function `build_peer':
pbx_dundi.c:4411: error: `AF_INET' undeclared (first use in this function)
pbx_dundi.c: In function `load_module':
pbx_dundi.c:4844: error: `AF_INET' undeclared (first use in this function)
pbx_dundi.c:4858: warning: implicit declaration of function `socket'
pbx_dundi.c:4858: error: `SOCK_DGRAM' undeclared (first use in this function)
pbx_dundi.c:4864: warning: implicit declaration of function `bind'
pbx_dundi.c:4864: warning: type-punning to incomplete type might break strict-aliasing rules
gmake[1]: *** [pbx_dundi.o] Error 1
gmake: *** [pbx] Error 2