I think it may have to do with the version of ldap libraries you are compiling against. I had simular issues with the iPlanet ldap SDK, and I switched to the openLDAP libraries, and it compiled just fine. Tim