Summary: | ASTERISK-05565: Compile error in chan_iax2.c, Freebsd | ||
Reporter: | Leif Neland (lenne_dk) | Labels: | |
Date Opened: | 2005-11-11 02:59:52.000-0600 | Date Closed: | 2008-01-15 15:55:39.000-0600 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | for x in res channels pbx apps codecs formats agi cdr funcs utils stdtime; do gmake -C $x || exit 1 ; done gmake[1]: Entering directory `/usr/src/asterisk/res' gmake[1]: Ingenting at gore for 'all'. gmake[1]: Leaving directory `/usr/src/asterisk/res' gmake[1]: Entering directory `/usr/src/asterisk/channels' gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -I/usr/local/in In file included from chan_iax2.c:34: /usr/include/netinet/in_systm.h:49: error: syntax error before "n_short" /usr/include/netinet/in_systm.h:50: error: syntax error before "n_long" /usr/include/netinet/in_systm.h:52: error: syntax error before "n_time" In file included from chan_iax2.c:35: /usr/include/netinet/ip.h:49: error: syntax error before "u_int" /usr/include/netinet/ip.h:148: error: syntax error before "u_char" /usr/include/netinet/ip.h:160: error: syntax error before "n_long" /usr/include/netinet/ip.h:163: error: syntax error before "n_long" /usr/include/netinet/ip.h:200: error: syntax error before "u_char" chan_iax2.c: In function `realtime_peer': chan_iax2.c:2599: warning: long int format, time_t arg (arg 3) chan_iax2.c:2639: warning: long int format, time_t arg (arg 7) chan_iax2.c:2639: warning: long int format, time_t arg (arg 8) chan_iax2.c:2639: warning: long int format, time_t arg (arg 9) chan_iax2.c:2644: warning: long int format, time_t arg (arg 7) chan_iax2.c:2644: warning: long int format, time_t arg (arg 8) chan_iax2.c:2644: warning: long int format, time_t arg (arg 9) chan_iax2.c: In function `realtime_update_peer': chan_iax2.c:2700: warning: long int format, time_t arg (arg 4) chan_iax2.c:2700: warning: long int format, time_t arg (arg 4) chan_iax2.c: In function `iax2_show_firmware': chan_iax2.c:4296: warning: long int format, __uint32_t arg (arg 5) gmake[1]: *** [chan_iax2.o] Fejl 1 gmake[1]: Leaving directory `/usr/src/asterisk/channels' gmake: *** [subdirs] Fejl 1 bash-2.05b# exit ****** ADDITIONAL INFORMATION ****** Lines complained about in /usr/include/netinet/in_systm.h typedef u_int16_t n_short; /* short as received from the net */ typedef u_int32_t n_long; /* long as received from the net */ typedef u_int32_t n_time; /* ms since 00:00 GMT, byte rev */ Lines complained about in /usr/include/netinet/ip.h struct ip { #if BYTE_ORDER == LITTLE_ENDIAN u_int ip_hl:4, /* header length */ <--- HERE ip_v:4; /* version */ #endif /* * Time stamp option structure. */ struct ip_timestamp { u_char ipt_code; /* IPOPT_TS */ <--HERE u_char ipt_len; /* size of structure (variable) */ u_char ipt_ptr; /* index of current entry */ | ||
Comments: | By: Leif Neland (lenne_dk) 2005-11-11 04:41:00.000-0600 Caused by bugfix 5693 Rollback to Revision: 1.374 makes it compile By: Kevin P. Fleming (kpfleming) 2005-11-11 11:12:37.000-0600 Sorry about that... when I re-ordered the headers I did it incorrectly. It should be fixed in CVS HEAD now. By: Digium Subversion (svnbot) 2008-01-15 15:55:39.000-0600 Repository: asterisk Revision: 7074 U trunk/ChangeLog U trunk/channels/chan_iax2.c ------------------------------------------------------------------------ r7074 | kpfleming | 2008-01-15 15:55:39 -0600 (Tue, 15 Jan 2008) | 2 lines issue ASTERISK-5565 ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=7074 |