From: | Albert Chin <pgsql-hackers(at)mlists(dot)thewrittenword(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: AC_REPLACE_FUNCS([getaddrinfo]) in 8.1.3 |
Date: | 2006-02-20 03:02:55 |
Message-ID: | 20060220030254.GF93931@mail1.thewrittenword.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sun, Feb 19, 2006 at 09:56:20PM -0500, Tom Lane wrote:
> Albert Chin <pgsql-hackers(at)mlists(dot)thewrittenword(dot)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 getaddrinfo ngetaddrinfo
#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(at)thewrittenword(dot)com)
From | Date | Subject | |
---|---|---|---|
Next Message | Jeroen T. Vermeulen | 2006-02-20 03:45:34 | Re: Pgfoundry and gborg: shut one down |
Previous Message | Tom Lane | 2006-02-20 02:56:20 | Re: AC_REPLACE_FUNCS([getaddrinfo]) in 8.1.3 |