Summary: | ASTERISK-14721: TRUNK does not compile on Darwin (MacOS 10.5.8) | ||
Reporter: | John Todd (jtodd) | Labels: | |
Date Opened: | 2009-08-26 22:54:50 | Date Closed: | 2009-08-30 17:15:37 |
Priority: | Blocker | Regression? | No |
Status: | Closed/Complete | Components: | Core/Portability |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) config.log | |
Description: | "fresh" install from SVN, no modifications to "make menuselect", compile fails. config.log attached, but here's the summary output of problem log: [CC] hashtest2.c -> hashtest2.o In file included from /Users/jtodd/asterisk/trunk/include/asterisk/network.h:44, from /Users/jtodd/asterisk/trunk/include/asterisk/utils.h:26, from /Users/jtodd/asterisk/trunk/include/asterisk/config.h:30, from /Users/jtodd/asterisk/trunk/include/asterisk/channel.h:144, from hashtest2.c:41: /usr/include/netinet/ip.h:86: error: syntax error before 'u_int' /usr/include/netinet/ip.h:95: error: syntax error before 'ip_len' /usr/include/netinet/ip.h:96: error: syntax error before 'ip_id' /usr/include/netinet/ip.h:97: error: syntax error before 'ip_off' /usr/include/netinet/ip.h:102: error: syntax error before 'ip_ttl' /usr/include/netinet/ip.h:103: error: syntax error before 'ip_p' /usr/include/netinet/ip.h:104: error: syntax error before 'ip_sum' /usr/include/netinet/ip.h:106: error: syntax error before '}' token /usr/include/netinet/ip.h:187: error: syntax error before 'u_char' /usr/include/netinet/ip.h:189: error: syntax error before 'ipt_ptr' /usr/include/netinet/ip.h:191: error: syntax error before 'ipt_flg' /usr/include/netinet/ip.h:205: error: syntax error before '}' token In file included from /Users/jtodd/asterisk/trunk/include/asterisk/config.h:30, from /Users/jtodd/asterisk/trunk/include/asterisk/channel.h:144, from hashtest2.c:41: /Users/jtodd/asterisk/trunk/include/asterisk/utils.h: In function '_ast_vasprintf': /Users/jtodd/asterisk/trunk/include/asterisk/utils.h:595: warning: implicit declaration of function 'vasprintf' In file included from hashtest2.c:41: /Users/jtodd/asterisk/trunk/include/asterisk/channel.h: In function 'ast_select': /Users/jtodd/asterisk/trunk/include/asterisk/channel.h:2079: warning: implicit declaration of function 'timersub' make[1]: *** [hashtest2.o] Error 1 make: *** [utils] Error 2 sh-3.2# | ||
Comments: | By: John Todd (jtodd) 2009-08-30 15:43:02 Tilghman modified TRUNK to work by setting a flag MACOSX_DEPLOYMENT_TARGET=10.2 and then re-compiling. See https://issues.asterisk.org/view.php?id=14542 Not sure if this is a permanent solution or... By: Tilghman Lesher (tilghman) 2009-08-30 17:15:04 That appears to be only necessary on 10.4 and ppc targets, as on 10.5, the default deployment target is 10.5, and on i686 and x86_64, the default deployment target is 10.4 or greater. By: Tilghman Lesher (tilghman) 2009-08-30 17:15:37 In any case, this is now fixed. |