[Date Prev][Date Next]
Re: build problem - INET6_ADDRSTRLEN / INET_ADDRSTRLEN undeclared (ITS#770)
At 05:12 PM 9/24/00 +0000, email@example.com wrote:
>On Sun, Sep 24, 2000 at 02:26:01PM +0000, firstname.lastname@example.org wrote:
>> On Sun, Sep 24, 2000 at 11:43:39AM +0000, email@example.com wrote:
>> > os-ip.c: In function `ldap_connect_to_host':
>> > os-ip.c:325: `INET6_ADDRSTRLEN' undeclared (first use in this function)
>I think we need to check for INET6_ADDRSTRLEN and possibly other stuff
>in addition to getaddrinfo(), In configure we should replace the current
>getaddrinfo() check with something that checks both if getaddrinfo()
>exists and if INET6_ADDRSTRLEN is defined. If the check succeeds we set
>say LDAP_RFC2553_SUPPORT. This check might need to be expanded later.
>In the source we then need to replace all HAVE_GETADDRINFO with
>LDAP_RFC2553_SUPPORT. I think everyone with INET6_ADDRSTRLEN also got
>getaddrinfo(), but this is safer.
>Does this sound okay Kurt (or anyone else)? Should I submit a patch or
>can you put something together based on this?
Can we get away with just conditionally defining these macros
(in <ac/socket.h>)? or do we need to detect differing getaddrinfo
semantics and adjust based upon that detection?