> file "lber_types.h" included in "lber.h", itself included in "ldap.h" [...] > (note: my linux is a Mandrake 10.2)
".hin" files existing on an installed system sounds like an installation (read, in your case, packaging?) bug. I'm not sure if you put them there or your distro packages put them there, but I'd advise you to consider http://rpms.mandrivaclub.com/rpms/mandriva/devel//cooker/i586/media/main/libldap2.3_0-devel-2.3.23-1mdk.i586.html which appears to include /usr/include/lber_types.h and match your distro. If you have any questions about getting that package to work, you'd be better served by a Mandrake-specific list.