Re: AC_REPLACE_FUNCS([getaddrinfo]) in 8.1.3
От | Albert Chin |
---|---|
Тема | Re: AC_REPLACE_FUNCS([getaddrinfo]) in 8.1.3 |
Дата | |
Msg-id | 20060220030254.GF93931@mail1.thewrittenword.com обсуждение исходный текст |
Ответ на | Re: AC_REPLACE_FUNCS([getaddrinfo]) in 8.1.3 (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: AC_REPLACE_FUNCS([getaddrinfo]) in 8.1.3
|
Список | pgsql-hackers |
On Sun, Feb 19, 2006 at 09:56:20PM -0500, Tom Lane wrote: > Albert Chin <pgsql-hackers@mlists.thewrittenword.com> writes: > > > AC_REPLACE_FUNCS([getaddrinfo]) will not detect getaddrinfo() on Tru64 > > UNIX because getaddrinfo is not in libc. > > Hmm, where is it then? getaddrinfo is a macro in <netdb.h>: #if defined (_SOCKADDR_LEN) || defined (_XOPEN_SOURCE_EXTENDED) #define getaddrinfongetaddrinfo #else #define getaddrinfo ogetaddrinfo #endif The solution is to either revert to the 8.1.1 code (my recommendation) or check for ngetaddrinfo. The latter is a crude hack though. $ nm /usr/shlib/libc.so | grep getaddrinfo __ngetaddrinfo | 0004395900636352 | T | 0000000000000008 __ogetaddrinfo | 0004395900637184 | T | 0000000000000008 ngetaddrinfo | 0004395900636352 | T | 0000000000000008 ogetaddrinfo | 0004395900637184 | T | 0000000000000008 -- albert chin (china@thewrittenword.com)
В списке pgsql-hackers по дате отправления: