Quick and dirty patch: # find openldap-2.1.22/libraries/liblunicode/ -type f -exec perl -i.orig -pe 's@unsigned\s+long@unsigned int@g' {} ';' This patch also fixes ITS#2632 Thanks!