Quanah Gibson-Mount writes:
Debian has a bug (505421) about OpenLDAP not building with the upcoming gcc 4.4. We may want to take a look at resolving that.
Fixed os-ip.c: ITS#5815.
Reported ldap_pvt_thread.h problem as gcc bug #38161: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38161 We can wait a bit to see what they say. A workaround is to replace the #elif with #else / #if / #endif, but that's less readable.