[Date Prev][Date Next]
Re: build problem - INET6_ADDRSTRLEN / INET_ADDRSTRLEN undeclared (ITS#770)
On Sun, Sep 24, 2000 at 11:43:39AM +0000, firstname.lastname@example.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) (188.8.131.52)
> 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
> 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: *** [os-ip.lo] Error 1
Could you try to add the following lines at the beginning of os-ip.c?
#define INET_ADDRSTRLEN 16
#define INET6_ADDRSTRLEN 46
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.?