[Date Prev][Date Next]
Re: INET_ADDRSTRLEN undeclared (ITS#769)
On Sat, Sep 23, 2000 at 12:14:34PM +0000, email@example.com wrote:
> Full_Name: Yakov Vokhmintsev
> Version: 2.0.1 - 2.0.4
> OS: Red Hat Linux 5.2
> Submission from: (NULL) (184.108.40.206)
> When trying to compile any version of OpenLDAP from 2.0.1 to 2.0.4 I get a
> following error:
> os-ip.c: In function `ldap_connect_to_host':
> os-ip.c:334: `INET_ADDRSTRLEN' undeclared (first use of this function)
> I cannot find definition of this constant in the source files of OpenLDAP.
> What's wrong?
> Where is this constant declared?
/usr/include/netinet/in.h:#define INET_ADDRSTRLEN 16
It looks like you have getaddrinfo but this constant is not defined,
I hoped that wouldn't happen.
What happens if you simply put 16 in there (or add the define)? Are
there other problems?
Do you have getaddrinfo defined in /usr/include/netdb.h? Could you
also check if you have inet_ntop in /usr/include/arpa/inet.h?
I'm asking all this because it will help us in solving the problem.
Thanks for the report,