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

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

On Sun, Sep 24, 2000 at 11:43:39AM +0000, per@computer.org wrote:
> Full_Name: Per Jessen
> Version: 2.0.4
> OS: Linux 2.2.15 with raid-patches
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (
> Platform - 2x200PPRO, 128Mb RAM, linux 2.2.15 with raid-patches. 
> GCC 2.95.2 -
> cc -g -O2 -I../../include -I../../include -c  -fPIC -DPIC os-ip.c -o
> .libs/os-ip
> .lo
> os-ip.c: In function `ldap_connect_to_host':
> os-ip.c:325: `INET6_ADDRSTRLEN' undeclared (first use in this function)
> os-ip.c:325: (Each undeclared identifier is reported only once
> os-ip.c:325: for each function it appears in.)
> os-ip.c:327: dereferencing pointer to incomplete type
> os-ip.c:334: `INET_ADDRSTRLEN' undeclared (first use in this function)
> make[2]: *** [os-ip.lo] Error 1                                       

Could you try to add the following lines at the beginning of os-ip.c?


You will probably also need to do the same in

Does the build succeed then? Could you please check if you have these
definitions in /usr/include/netinet/in.h? Looks like you don't.

Could you check what version of the GNU C library you have? One way
to check that, is to do ls -l /lib/libc.so.?


Stig Venaas