Issue 769 - INET_ADDRSTRLEN undeclared
Summary: INET_ADDRSTRLEN undeclared
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: build (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-09-23 12:14 UTC by jakow@vita.chel.su
Modified: 2014-08-01 21:05 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Kurt Zeilenga 2000-09-23 11:33:39 UTC
changed state Open to Feedback
moved from Incoming to Build
Comment 1 jakow@vita.chel.su 2000-09-23 12:14:33 UTC
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?
Comment 2 Stig Venaas 2000-09-23 15:09:38 UTC
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
Comment 3 Kurt Zeilenga 2000-09-29 10:09:31 UTC
changed notes
changed state Feedback to Release
Comment 4 Kurt Zeilenga 2000-10-03 17:14:17 UTC
changed notes
changed state Release to Closed
Comment 5 jakow@vita.chel.su 2000-10-06 10:43:19 UTC
"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.

Comment 6 Stig Venaas 2000-10-06 12:46:08 UTC
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
Comment 7 OpenLDAP project 2014-08-01 21:05:08 UTC
fixed in devel
fixed in re20