gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i386 -pthread -DASTERISK_VERSION=\"CVS-HEAD-12/19/04-04:15:19\" -DASTERISK_VERSION_NUM=999999 -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\" -DBUSYDETECT_MARTIN -fPIC -c -o pbx_dundi.o pbx_dundi.c
In file included from pbx_dundi.c:46:
/usr/include/netinet/ip.h:153: syntax error before `n_time'
/usr/include/netinet/ip.h:156: syntax error before `n_time'
pbx_dundi.c: In function `reset_global_eid':
pbx_dundi.c:413: warning: implicit declaration of function `getifaddrs'
pbx_dundi.c:415: dereferencing pointer to incomplete type
pbx_dundi.c:416: dereferencing pointer to incomplete type
pbx_dundi.c:417: dereferencing pointer to incomplete type
pbx_dundi.c:420: dereferencing pointer to incomplete type
pbx_dundi.c:420: dereferencing pointer to incomplete type
pbx_dundi.c:421: dereferencing pointer to incomplete type
pbx_dundi.c:422: warning: implicit declaration of function `freeifaddrs'
pbx_dundi.c: In function `cache_lookup_internal':
pbx_dundi.c:1140: warning: long int format, time_t arg (arg 3)
pbx_dundi.c: In function `save_secret':
pbx_dundi.c:2023: warning: long int format, time_t arg (arg 4)
pbx_dundi.c: In function `load_password':
pbx_dundi.c:2035: warning: long int format, time_t arg (arg 3)
pbx_dundi.c: In function `set_config':
pbx_dundi.c:4523: `IPTOS_MINCOST' undeclared (first use in this function)
pbx_dundi.c:4523: (Each undeclared identifier is reported only once
pbx_dundi.c:4523: for each function it appears in.)
gmake[1]: *** [pbx_dundi.o] Error 1
gmake[1]: Leaving directory `/usr/work/asterisk/pbx'
gmake: *** [subdirs] Error 1