18.07.2017 08:46, Michael Tokarev wrote: >> Qemu is not running on my Stretch machine, due to missing libraries. I'm >> going >> to build from source and see if that fixes it. >> >> ryan@t420:~$ qemu-system-i386 >> qemu-system-i386: error while loading shared libraries: libnss3.so.1d: cannot >> open shared object file: No such file or directory >> >> ryan@t420:~$ ldd /usr/bin/qemu-system-i386 >> --snip-- >> libnss3.so.1d => not found >> libnssutil3.so.1d => not found >> libsmime3.so.1d => not found >> libssl3.so.1d => not found >> libplds4.so.0d => not found >> libplc4.so.0d => not found >> libnspr4.so.0d => not found >> --snip-- > > It works just fine here. And this is not the version of qemu-system-x86 which > is shipped in debian, because: > > $ ldd /usr/bin/qemu-system-i386 | egrep 'lib(nss|smime|ssl|pld|plc|nspr)' > libssl.so.1.1 => /usr/lib/x86_64-linux-gnu/libssl.so.1.1 > (0x00007fa7b753d000) > libnss3.so => /usr/lib/x86_64-linux-gnu/libnss3.so (0x00007fa7b6d5e000) > libnssutil3.so => /usr/lib/x86_64-linux-gnu/libnssutil3.so > (0x00007fa7b6b30000) > libsmime3.so => /usr/lib/x86_64-linux-gnu/libsmime3.so > (0x00007fa7b6903000) > libssl3.so => /usr/lib/x86_64-linux-gnu/libssl3.so (0x00007fa7b66ab000) > libplds4.so => /usr/lib/x86_64-linux-gnu/libplds4.so > (0x00007fa7b64a7000) > libplc4.so => /usr/lib/x86_64-linux-gnu/libplc4.so (0x00007fa7b62a2000) > libnspr4.so => /usr/lib/x86_64-linux-gnu/libnspr4.so > (0x00007fa7b6060000)
Note that none of the above libraries are used by qemu-system directly. All of them are used by libcacard.so.0 (which is used by qemu). It looks like you have some old libcacard.so.0 file, which uses old versions of libnspr and libnss libraries (these are from firefox), most likely from jessie, not upgraded to stretch, hence you see the errors which you see. Rebuilding qemu from source results in it not using libcacard at all because it is non-functioning on your system, so the resulting binaries works (without trying to load your system libcacard.so). Please check your jessie->stretch upgrade status and fix any leftovers. I'm closing this bugreport. If the problem persists after you ensure your system is running real stretch and not some half- jessie, please file a bugreport against the actually broken package (libcacard in this case). Thanks! /mjt