Ok, here are some more puzzling things :
The libnss-ldap from the archive does not use __libc_lock_lock : $ pwd ./archive $ wget http://fr.archive.ubuntu.com/ubuntu/pool/main/libn/libnss-ldap/libnss-ldap_264-2.2ubuntu4_amd64.deb --2014-10-30 16:20:59-- http://fr.archive.ubuntu.com/ubuntu/pool/main/libn/libnss-ldap/libnss-ldap_264-2.2ubuntu4_amd64.deb ... 2014-10-30 16:21:01 (72,7 KB/s) - «libnss-ldap_264-2.2ubuntu4_amd64.deb» enregistré [64718/64718] $ dpkg -x libnss-ldap_264-2.2ubuntu4_amd64.deb . $ nm -D lib/x86_64-linux-gnu/libnss_ldap.so.2 | grep _lock w __pthread_mutex_lock
The same source build in a PPA DOES have the symbol __libc_lock_lock : $ cd ../ppa $ pwd ./ppa $ wget https://launchpad.net/~louis-bouchard/+archive/ubuntu/nssldap-buildtest/+files/libnss-ldap_264-2.2ubuntu4_amd64.deb ... 2014-10-30 16:23:56 (56,7 KB/s) - «libnss-ldap_264-2.2ubuntu4_amd64.deb» enregistré [83234/83234]
$ dpkg -x libnss-ldap_264-2.2ubuntu4_amd64.deb . $ nm -D lib/x86_64-linux-gnu/libnss_ldap.so.2 | grep _lock U __libc_lock_lock U __libc_lock_unlock
I see the same behavior (i.e. fresh build created with __libc_lock_lock in use) when using sbuild or building manually using debian/rules
This needs more investigation
Ok, here are some more puzzling things :
The libnss-ldap from the archive does not use __libc_lock_lock : fr.archive. ubuntu. com/ubuntu/ pool/main/ libn/libnss- ldap/libnss- ldap_264- 2.2ubuntu4_ amd64.deb fr.archive. ubuntu. com/ubuntu/ pool/main/ libn/libnss- ldap/libnss- ldap_264- 2.2ubuntu4_ amd64.deb ldap_264- 2.2ubuntu4_ amd64.deb» enregistré [64718/64718] ldap_264- 2.2ubuntu4_ amd64.deb . 64-linux- gnu/libnss_ ldap.so. 2 | grep _lock mutex_lock
$ pwd
./archive
$ wget http://
--2014-10-30 16:20:59-- http://
...
2014-10-30 16:21:01 (72,7 KB/s) - «libnss-
$ dpkg -x libnss-
$ nm -D lib/x86_
w __pthread_
The same source build in a PPA DOES have the symbol __libc_lock_lock : /launchpad. net/~louis- bouchard/ +archive/ ubuntu/ nssldap- buildtest/ +files/ libnss- ldap_264- 2.2ubuntu4_ amd64.deb ldap_264- 2.2ubuntu4_ amd64.deb» enregistré [83234/83234]
$ cd ../ppa
$ pwd
./ppa
$ wget https:/
...
2014-10-30 16:23:56 (56,7 KB/s) - «libnss-
$ dpkg -x libnss- ldap_264- 2.2ubuntu4_ amd64.deb . 64-linux- gnu/libnss_ ldap.so. 2 | grep _lock
$ nm -D lib/x86_
U __libc_lock_lock
U __libc_lock_unlock
I see the same behavior (i.e. fresh build created with __libc_lock_lock in use) when using sbuild or building manually using debian/rules
This needs more investigation