[vbox-dev] error compiling 3.0.6 additions for linux guests

Frank Mehnert Frank.Mehnert at Sun.COM
Mon Sep 21 08:56:00 PDT 2009


Again, which Linux kernel is that?

On Monday 21 September 2009, Joey Chua wrote:
> Problem:
>
> /tmp/vbox.4/utils.c: In function 'sf_nlscpy':
> /tmp/vbox.4/utils.c:532: error: 'wchar_t' undeclared (first use in
> this function)
> /tmp/vbox.4/utils.c:532: error: (Each undeclared identifier is
> reported only once
> /tmp/vbox.4/utils.c:532: error: for each function it appears in.)
> /tmp/vbox.4/utils.c:532: error: syntax error before 'uni'
> /tmp/vbox.4/utils.c:537: error: 'uni' undeclared (first use in this
> function)
>
>
> Suggested solution:
>
> --- vbox.3/utils.c      2009-09-10 03:45:02.000000000 +1000
> +++ vbox.4/utils.c      2009-09-21 01:37:01.000000000 +1000
> @@ -529,7 +529,7 @@
>
>                  while (in_bound_len) {
>                          int nb;
> -                        wchar_t uni;
> +                        linux_wchar_t uni;
>
>  #if LINUX_VERSION_CODE >= KERNEL_VERSION (2, 6, 31)
>
>                          nb = utf8_to_utf32 (in, in_bound_len, &uni);



-- 
Dr.-Ing. Frank Mehnert    Sun Microsystems, Inc.    www.sun.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://www.virtualbox.org/pipermail/vbox-dev/attachments/20090921/c87c42a2/attachment-0001.bin 


More information about the vbox-dev mailing list