为openSUSE 13.1构建virtualbox来宾添加时出错

普拉拉德·耶里(Prahlad Yeri)

我正在ubuntu 12.04主机上的virtualbox中运行openSUSE 13.1 guest虚拟机操作系统。操作系统安装良好,但是当我尝试通过发出“ ./VBoxLinuxAdditions.run”来构建来宾附加程序时,构建过程将失败,如下面的vboxadd-install.log中所述。我已经安装了所有依赖项,包括make,gcc和kernel-source:

vbox-install.log输出

grep: /lib/modules/3.11.6-4-default/build/include/linux/version.h: No such file or directory
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/3.11.6-4-default/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
make -C /usr/src/linux-3.11.6-4-obj/i386/default \
KBUILD_SRC=/usr/src/linux-3.11.6-4 \
KBUILD_EXTMOD="/tmp/vbox.0" -f /usr/src/linux-3.11.6-4/Makefile \
modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (        \
echo >&2;                            \
echo >&2 "  ERROR: Kernel configuration is invalid.";        \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";    \
echo >&2 ;                            \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f /usr/src/linux-3.11.6-4/scripts/Makefile.build obj=/tmp/vbox.0
  gcc -Wp,-MD,/tmp/vbox.0/.VBoxGuest-linux.o.d  -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.8/include -I/usr/src/linux-3.11.6-4/arch/x86/include -Iarch/x86/include/generated  -I/usr/src/linux-3.11.6-4/include -Iinclude -I/usr/src/linux-3.11.6-4/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.11.6-4/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.11.6-4/include/linux/kconfig.h   -I/tmp/vbox.0 -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -fno-pic -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fomit-frame-pointer -fasynchronous-unwind-tables -g -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -include /tmp/vbox.0/include/VBox/VBoxGuestMangling.h   -I/lib/modules/3.11.6-4-default/build/include   -I/tmp/vbox.0/   -I/tmp/vbox.0/include   -I/tmp/vbox.0/r0drv/linux   -I/tmp/vbox.0/vboxguest/   -I/tmp/vbox.0/vboxguest/include   -I/tmp/vbox.0/vboxguest/r0drv/linux -D__KERNEL__ -DMODULE -DVBOX -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_GUEST -DIN_GUEST_R0 -DIN_MODULE -DRT_WITH_VBOX -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DRT_ARCH_X86  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(VBoxGuest_linux)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxguest)" -c -o /tmp/vbox.0/.tmp_VBoxGuest-linux.o /tmp/vbox.0/VBoxGuest-linux.c
/tmp/vbox.0/VBoxGuest-linux.c:206:49: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_VBoxGuestPciId’
 static const struct pci_device_id __devinitdata g_VBoxGuestPciId[] =
                                                 ^
In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:78:0,
                 from /tmp/vbox.0/VBoxGuest-linux.c:28:
/usr/src/linux-3.11.6-4/include/linux/module.h:87:32: error: ‘__mod_pci_device_table’ aliased to undefined symbol ‘g_VBoxGuestPciId’
 extern const struct gtype##_id __mod_##gtype##_table  \
                                ^
/usr/src/linux-3.11.6-4/include/linux/module.h:140:3: note: in expansion of macro ‘MODULE_GENERIC_TABLE’
   MODULE_GENERIC_TABLE(type##_device,name)
   ^
/tmp/vbox.0/VBoxGuest-linux.c:216:1: note: in expansion of macro ‘MODULE_DEVICE_TABLE’
 MODULE_DEVICE_TABLE(pci, g_VBoxGuestPciId);
 ^
make[4]: *** [/tmp/vbox.0/VBoxGuest-linux.o] Error 1
make[3]: *** [_module_/tmp/vbox.0] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make: *** [vboxguest] Error 2
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
马里乌斯·马图蒂亚(MariusMatutiae)

此错误最有可能是由linux标头与内核不同步引起的。您将必须下载较新版本的linux标头。我没有一台OpenSUSE PC,但是我似乎想起了,标头位于* linux-glibc-devel *软件包中。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

在安装VirtualBox来宾添加项时构建主要来宾添加项模块时出错

来自分类Dev

在安装VirtualBox来宾添加项时构建主要来宾添加项模块时出错

来自分类Dev

为Android开发运行eclipse时出错-“ Java已启动,但返回了退出代码13”

来自分类Dev

虚拟机上的openSUSE:来宾添加

来自分类Dev

构建命令 del 时出错,代码为 1

来自分类Dev

ValueError:检查输入时出错:预期lstm_13_input具有3维,但数组的形状为(1,1)

来自分类Dev

安装Virtualbox来宾添加ISO文件挂载时出错

来自分类Dev

ValueError:检查输入时出错:预期density_13_input具有形状(3,),但数组的形状为(1,)

来自分类Dev

启动Eclipse退出代码= 13时出错

来自分类Dev

当包含日期的TextBox为空时,运行时错误13

来自分类Dev

尝试安装到 MacBook Pro 13" Retina 时没有为安装程序显示文本

来自分类Dev

为 PAYUMONEY sdk 添加依赖项时构建应用程序时出错

来自分类Dev

为Android构建Tesseract时出错

来自分类Dev

为 Intel Quark 构建 Openembedded 时出错

来自分类Dev

为 Python 项目构建 Dockerfile 时出错

来自分类Dev

Google网络字体,当字体大小为13px时,Open Sans的波浪号渲染为短划线

来自分类Dev

安装退出,退出代码为13

来自分类Dev

预期为BEGIN_OBJECT,但在第1行第13列为BEGIN_ARRAY

来自分类Dev

为什么OpenSuse(ver.13)没有安装很多用于开发的基本软件

来自分类Dev

为 VirtualBox 6 上的来宾操作系统添加更多存储空间

来自分类Dev

PermissionError:[trinter 13]图像时使用[Errno 13]

来自分类Dev

SwiftUI:尝试在Xcode 12 beta 2中构建到iOS 13和iOS 14时使用if #available时出错

来自分类Dev

解析查询时出错。[令牌行号= 1,令牌行偏移量= 13,令牌错误=顺序]

来自分类Dev

如何在MATLAB中创建模式为[1 2 5 6 9 10 13 14 17 18 ....]的向量?

来自分类Dev

如何显示日期为1月13日星期四的Mui DatePicker格式的date-fns的日期

来自分类Dev

为Cordova添加Android平台时出错

来自分类Dev

为 CardView 添加库时出错

来自分类Dev

当minifyEnabled为true时,构建APK时出错

来自分类Dev

查询不断给出错误Access '13

Related 相关文章

  1. 1

    在安装VirtualBox来宾添加项时构建主要来宾添加项模块时出错

  2. 2

    在安装VirtualBox来宾添加项时构建主要来宾添加项模块时出错

  3. 3

    为Android开发运行eclipse时出错-“ Java已启动,但返回了退出代码13”

  4. 4

    虚拟机上的openSUSE:来宾添加

  5. 5

    构建命令 del 时出错,代码为 1

  6. 6

    ValueError:检查输入时出错:预期lstm_13_input具有3维,但数组的形状为(1,1)

  7. 7

    安装Virtualbox来宾添加ISO文件挂载时出错

  8. 8

    ValueError:检查输入时出错:预期density_13_input具有形状(3,),但数组的形状为(1,)

  9. 9

    启动Eclipse退出代码= 13时出错

  10. 10

    当包含日期的TextBox为空时,运行时错误13

  11. 11

    尝试安装到 MacBook Pro 13" Retina 时没有为安装程序显示文本

  12. 12

    为 PAYUMONEY sdk 添加依赖项时构建应用程序时出错

  13. 13

    为Android构建Tesseract时出错

  14. 14

    为 Intel Quark 构建 Openembedded 时出错

  15. 15

    为 Python 项目构建 Dockerfile 时出错

  16. 16

    Google网络字体,当字体大小为13px时,Open Sans的波浪号渲染为短划线

  17. 17

    安装退出,退出代码为13

  18. 18

    预期为BEGIN_OBJECT,但在第1行第13列为BEGIN_ARRAY

  19. 19

    为什么OpenSuse(ver.13)没有安装很多用于开发的基本软件

  20. 20

    为 VirtualBox 6 上的来宾操作系统添加更多存储空间

  21. 21

    PermissionError:[trinter 13]图像时使用[Errno 13]

  22. 22

    SwiftUI:尝试在Xcode 12 beta 2中构建到iOS 13和iOS 14时使用if #available时出错

  23. 23

    解析查询时出错。[令牌行号= 1,令牌行偏移量= 13,令牌错误=顺序]

  24. 24

    如何在MATLAB中创建模式为[1 2 5 6 9 10 13 14 17 18 ....]的向量?

  25. 25

    如何显示日期为1月13日星期四的Mui DatePicker格式的date-fns的日期

  26. 26

    为Cordova添加Android平台时出错

  27. 27

    为 CardView 添加库时出错

  28. 28

    当minifyEnabled为true时,构建APK时出错

  29. 29

    查询不断给出错误Access '13

热门标签

归档