QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2785|回复: 0

解决vbox安装magic2.6.31增强错误:隐式声明函数‘utf8_wctomb’

[复制链接]
发表于 2009-10-21 15:25:56 | 显示全部楼层 |阅读模式
Vbox3.08_OSE r53138版本

./VBoxLinuxAdditions-x86.run --noexec --target boxadd

执行上面命令,将.run文件解压到boxadd文件夹内,--noexec不执行install脚本。

进入boxadd/module/vboxvfs/下 编辑utils.c文件

#include "vfsmod.h"
#include <linux/nfs_fs.h>
#include <linux/vfs.h>


int utf8_mbtowc(wchar_t*pu, const __u8*s, int len){return utf8_to_utf32(s,len,(unicode_t *)pu);}
int utf8_wctomb(__u8*s, wchar_t u, int maxlen){return utf32_to_utf8((unicode_t)u,s,maxlen);}




/* #define USE_VMALLOC */

#if LINUX_VERSION_CODE >= KERNEL_VERSION (2, 6, 0)

加入红色字。
保存
回到boxadd下执行./install.sh耐心等待编译成功。

参考:
http://mateusz.loskot.net/2009/0 ... ins-for-ubuntu-910/
http://www.virtualbox.org/ticket/4823
http://lkml.indiana.edu/hypermail/linux/kernel/0904.3/03172.html

[ 本帖最后由 zy_sunshine 于 2009-11-3 17:14 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-27 02:38 , Processed in 0.142812 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表