It would appear that wine has it's own versions of thread functions (like pthread_self) in kthread.c in the loader. This completely hoses wine with nss_ldap as it ends up pulling in the pthread library. Sean