[libvirt] [PATCH] build: fix compilation of virt-login-shell.c

Eric Blake eblake at redhat.com
Thu Aug 8 20:28:53 UTC 2013


On 08/08/2013 02:04 PM, Jim Fehlig wrote:
> virt-login-shell.c was failing to compile with
> 
> CC       virt_login_shell-virt-login-shell.o
> virt-login-shell.c: In function 'main':
> virt-login-shell.c:205:5: error: implicit declaration of function 'setlocale' [-Werror=implicit-function-declaration]
> virt-login-shell.c:205:5: error: nested extern declaration of 'setlocale' [-Werror=nested-externs]
> virt-login-shell.c:205:20: error: 'LC_ALL' undeclared (first use in this function)
> ---
> 
> I'm a little surprised that others are not seeing this problem, so a bit
> nervious committing without an ACK.

ACK - go for it.  It depends on which version of glibc you use as to
whether you see the error (I reproduced it with glibc 2.17 of Fedora 19,
but suspect that Dan Walsh developed the patch on an older platform).

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130808/c4bb675a/attachment-0001.sig>


More information about the libvir-list mailing list