VirtualBox

Opened 15 years ago

Closed 15 years ago

#5051 closed defect (invalid)

error compiling 3.0.6 additions for linux guests

Reported by: chuaj Owned by:
Component: guest additions Version: VirtualBox 3.0.6
Keywords: linux_wchar_t Cc:
Guest type: Linux Host type: Windows

Description

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);

Change History (2)

comment:1 by Frank Mehnert, 15 years ago

Which Linux kernel is that?

comment:2 by Sander van Leeuwen, 15 years ago

Resolution: invalid
Status: newclosed

Since you posted it on the dev list, I'll close this one.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use