changed state Open to Feedback moved from Incoming to Build
Full_Name: Yakov Vokhmintsev Version: 2.0.1 - 2.0.4 OS: Red Hat Linux 5.2 URL: Submission from: (NULL) (195.54.1.180) 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?
On Sat, Sep 23, 2000 at 12:14:34PM +0000, jakow@vita.chel.su wrote: > Full_Name: Yakov Vokhmintsev > Version: 2.0.1 - 2.0.4 > OS: Red Hat Linux 5.2 > URL: > Submission from: (NULL) (195.54.1.180) > > > 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, Stig -- Stig Venaas UNINETT
changed notes changed state Feedback to Release
changed notes changed state Release to Closed
"Stig VenЕs" wrote: > 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? I have put define in os-ip.c and daemon.c, and everything compiled OK. > 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 have got getaddrinfo defined in netdb.h, but don't have inet_ntop defined in inet.h. Instead of inet_ntop I have inet_net_ntop defined there, may be this subroutine has the same meaning as inet_ntop. > I'm asking all this because it will help us in solving the problem. I hope information provided could haelp. Sorry for a big delay in providing it. Best regards, Yakov Vokhmintsev.
On Fri, Oct 06, 2000 at 04:43:19PM +0600, Yakov A. Vokhmintsev wrote: > I hope information provided could haelp. Sorry for a big delay in providing it. Thanks, I think we've solved it in 2.0.5, if you try 2.0.5 or newer and it doesn't work, please let me know. Stig
fixed in devel fixed in re20