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

compiling problem: os-ip.c



Hi,

I have tried to compile openldap-2.0.x (1, 4 and 6) on my linux-box and I 
always get the following error message:

cc -g -O2 -I../../include -I../../include -c os-ip.c  -fPIC -DPIC -o .libs/os-ip
.lo
os-ip.c: In function `ldap_connect_to_host':
os-ip.c:297: storage size of `hints' isn't known
os-ip.c:312: dereferencing pointer to incomplete type
os-ip.c:322: dereferencing pointer to incomplete type
os-ip.c:327: dereferencing pointer to incomplete type
os-ip.c:336: dereferencing pointer to incomplete type
os-ip.c:326: warning: unreachable code at beginning of switch statement
os-ip.c:343: dereferencing pointer to incomplete type
os-ip.c:343: dereferencing pointer to incomplete type
os-ip.c:349: dereferencing pointer to incomplete type
make[2]: *** [os-ip.lo] Error 1
make[2]: Leaving directory `/usr/src/openldap-2.0.6/libraries/libldap'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/usr/src/openldap-2.0.6/libraries'
make: *** [all-common] Error 1

It seems to be a problem with getaddrinfo(). If I disable manually '#define 
HAVE_GETADDRINFO' in 'include/portable.h' it seems to work.

Is it okay to disable HAVE_GETADDRINFO manualy? Could this cause any 
operational problems?   

I'm using linux-2.2.14 on a SUSE 6.4 installation. 

regards

Armin