[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: build problem - INET6_ADDRSTRLEN / INET_ADDRSTRLEN undeclared (ITS#770)

On Sun, Sep 24, 2000 at 02:26:01PM +0000, venaas@itea.ntnu.no wrote:
> On Sun, Sep 24, 2000 at 11:43:39AM +0000, per@computer.org 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?

I'm sorry that there have been a few complications with building the
new code, but it's not easy to make it work for everyone.