thanks Kurt for the tip. Someone else told me to just insert an #include "netdb.h" & extern int h_errno; in libraries/libldap/util-int.c This solved my problem. thanks Jan