Summary: | ASTERISK-16344: [patch] main/netsock2.c fails to build do to missing constants | ||
Reporter: | Philip Prindeville (pprindeville) | Labels: | |
Date Opened: | 2010-07-09 14:40:46 | Date Closed: | 2010-07-12 09:55:23 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Core/Netsock |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) asterisk-trunk-bugid17617.patch | |
Description: | While building trunk rev 275254: [CC] netsock2.c -> netsock2.o netsock2.c: In function 'ast_sockaddr_parse': netsock2.c:198: error: 'AI_NUMERICSERV' undeclared (first use in this function) netsock2.c:198: error: (Each undeclared identifier is reported only once netsock2.c:198: error: for each function it appears in.) make[2]: *** [netsock2.o] Error 1 and indeed, it's missing from include/asterisk/netsock2.h | ||
Comments: | By: Philip Prindeville (pprindeville) 2010-07-09 19:30:39 AI_NUMERICSERV was introduced in glibc-2.3.4 (but isn't present in uclibc-0.9.28). By: Mark Michelson (mmichelson) 2010-07-12 09:53:05 Thanks for the info and patch. I'll get this committed ASAP. By: Digium Subversion (svnbot) 2010-07-12 09:55:22 Repository: asterisk Revision: 275587 U trunk/main/netsock2.c ------------------------------------------------------------------------ r275587 | mmichelson | 2010-07-12 09:55:22 -0500 (Mon, 12 Jul 2010) | 8 lines Allow netsock2.c to compile on systems that do not define AI_NUMERICSERV. (closes issue ASTERISK-16344) Reported by: pprindeville Patches: asterisk-trunk-bugid17617.patch uploaded by pprindeville (license 347) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=275587 |