https://bugzilla.redhat.com/show_bug.cgi?id=1312688
When you upgrade from F23 to current Rawhide, you don't get any
"language pack" installed. It turns out this breaks many things
including libvirtd which no longer starts up:
$ ./daemon/libvirtd --help
/home/rjones/d/libvirt/daemon/.libs/lt-libvirtd: initialization failed
Simply installing glibc-langpack-en is sufficient to fix this, but I
was wondering if we should try to make libvirt work anyway.
The failure comes from setlocale (LC_ALL, "") returning NULL. The
attached test program prints:
$ ./test
setlocale failed, errno=No such file or directory
Also attached is the strace output so you can see what files it is
looking for.
Seems like solutions to this include:
- Make libvirt in Fedora depend on glibc-langpack-en.
- Ignore the return value from setlocale. It seems unlikely that we
really care if setlocale fails. I'm not even sure what it does.
Note that virsh already ignores setlocale:
if (!setlocale(LC_ALL, "")) {
perror("setlocale");
/* failure to setup locale is not fatal */
}
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top