You do not have (or gcc is not finding) the LDAP SDK. Please re-read the INSTALL docs.
The intelligent reader will judge for himself. Without examining the facts fully and fairly, there is no way of knowing whether vox populi is really vox dei, or merely vox asinorum. -- Cyrus H. Gordon