Page 1 of 1
guestadditions on RHEL6 clones
Posted: 11. Mar 2016, 22:25
by dmischa
since some time there are problems building the guestadditions (VB5.0.16 VB4.3.36 and
older) on RHEL6 and CentOS6, with respect to the x11 support. Now I've installed an
Oracle Linux 6.7 guest, on this guest the guestadditions seem to be build proberly. So I know that you know the kernel bug that's causing the problem on the other RHEL6 clones. Is there a way to provide a workaround for this clones in one of the next releases?
Re: guestadditions on RHEL6 clones
Posted: 13. Mar 2016, 09:19
by michaln
Unless you describe exactly what problem you have then no, of course it's not going to be fixed except perhaps by accident.
Re: guestadditions on RHEL6 clones
Posted: 13. Mar 2016, 14:12
by dmischa
michaln wrote:Unless you describe exactly what problem you have then no, of course it's not going to be fixed except perhaps by accident.
may be a part of vboxadd-install.log could describe the problem
Code: Select all
Linux lion.net.spc.priv 2.6.32-573.18.1.el6.i686 #1 SMP Tue Feb 9 19:51:22 UTC 2016 i686 i686 i386 GNU/Linux :==>
Building module:
cleaning build area...
make KERNELRELEASE=2.6.32-573.18.1.el6.i686 -C /lib/modules/2.6.32-573.18.1.el6.i686/build M=/var/lib/dkms/vboxguest/5.0.16/build..........(bad exit status: 2)
Error! Bad return status for module build on kernel: 2.6.32-573.18.1.el6.i686 (i686)
Consult /var/lib/dkms/vboxguest/5.0.16/build/make.log for more information.
Failed to install using DKMS, attempting to install without
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/2.6.32-573.18.1.el6.i686/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
...............
gcc -Wp,-MD,/tmp/vbox.0/.vboxvideo_drm.o.d -nostdinc -isystem /usr/lib/gcc/i686-redhat-linux/4.4.7/include -Iinclude -I/usr/src/kernels/2.6.32-573.18.1.el6.i686/include/uapi -I/usr/src/kernels/2.6.32-573.18.1.el6.i686/arch/x86/include -Iarch/include/generated -Iinclude -include /usr/src/kernels/2.6.32-573.18.1.el6.i686/include/linux/kconfig.h -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 -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -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 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -Wno-unused-but-set-variable -fomit-frame-pointer -g -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -Wno-declaration-after-statement -fshort-wchar -include /tmp/vbox.0/include/VBox/VBoxGuestMangling.h -I/lib/modules/2.6.32-573.18.1.el6.i686/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxvideo/ -I/tmp/vbox.0/vboxvideo/include -I/tmp/vbox.0/vboxvideo/r0drv/linux -I/usr/include -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DVBOX_WITH_HGCM -DLOG_TO_BACKDOOR -DIN_MODULE -DIN_GUEST_R0 -DRT_NO_EXPORT_SYMBOL -DRT_ARCH_X86 -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vboxvideo_drm)" -D"KBUILD_MODNAME=KBUILD_STR(vboxvideo)" -D"DEBUG_HASH=7" -D"DEBUG_HASH2=50" -c -o /tmp/vbox.0/.tmp_vboxvideo_drm.o /tmp/vbox.0/vboxvideo_drm.c
In file included from /tmp/vbox.0/vboxvideo_drm.c:56:
include/drm/drmP.h:64:26: error: uapi/drm/drm.h: No such file or directory
include/drm/drmP.h:65:31: error: uapi/drm/drm_mode.h: No such file or directory
In file included from include/drm/drmP.h:68,
from /tmp/vbox.0/vboxvideo_drm.c:56:
include/drm/drm_agpsupport.h:50: warning: ‘struct drm_agp_mode’ declared inside parameter list
include/drm/drm_agpsupport.h:50: warning: its scope is only this definition or declaration, which is probably not what you want
include/drm/drm_agpsupport.h:53: warning: ‘struct drm_agp_info’ declared inside parameter list
include/drm/drm_agpsupport.h:56: warning: ‘struct drm_agp_buffer’ declared inside parameter list
include/drm/drm_agpsupport.h:59: warning: ‘struct drm_agp_buffer’ declared inside parameter list
include/drm/drm_agpsupport.h:62: warning: ‘struct drm_agp_binding’ declared inside parameter list
include/drm/drm_agpsupport.h:65: warning: ‘struct drm_agp_binding’ declared inside parameter list
In file included from include/drm/drmP.h:69,
from /tmp/vbox.0/vboxvideo_drm.c:56:
include/drm/drm_crtc.h:35:33: error: uapi/drm/drm_fourcc.h: No such file or directory
In file included from include/drm/drm_crtc.h:94,
from include/drm/drmP.h:69,
from /tmp/vbox.0/vboxvideo_drm.c:56:
include/drm/drm_modes.h:101: error: ‘DRM_DISPLAY_MODE_LEN’ undeclared here (not in a function)
include/drm/drm_modes.h: In function ‘drm_mode_is_stereo’:
include/drm/drm_modes.h:174: error: ‘DRM_MODE_FLAG_3D_MASK’ undeclared (first use in this function)
include/drm/drm_modes.h:174: error: (Each undeclared identifier is reported only once
include/drm/drm_modes.h:174: error: for each function it appears in.)
In file included from include/drm/drmP.h:69,
from /tmp/vbox.0/vboxvideo_drm.c:56:
include/drm/drm_crtc.h: At top level:
include/drm/drm_crtc.h:118: error: ‘DRM_DISPLAY_INFO_LEN’ undeclared here (not in a function)
include/drm/drm_crtc.h:206: error: ‘DRM_PROP_NAME_LEN’ undeclared here (not in a function)
include/drm/drm_crtc.h:715: warning: ‘struct drm_mode_fb_cmd2’ declared inside parameter list
include/drm/drm_crtc.h: In function ‘drm_property_type_is’:
include/drm/drm_crtc.h:989: error: ‘DRM_MODE_PROP_EXTENDED_TYPE’ undeclared (first use in this function)
include/drm/drm_crtc.h: In function ‘drm_property_type_valid’:
include/drm/drm_crtc.h:996: error: ‘DRM_MODE_PROP_EXTENDED_TYPE’ undeclared (first use in this function)
include/drm/drm_crtc.h:997: error: ‘DRM_MODE_PROP_LEGACY_TYPE’ undeclared (first use in this function)
/tmp/vbox.0/vboxvideo_drm.c: At top level:
/tmp/vbox.0/vboxvideo_drm.c:116: error: ‘drm_mmap’ undeclared here (not in a function)
make[2]: *** [/tmp/vbox.0/vboxvideo_drm.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxvideo] Error 2
on the CentOS6 guest and
Code: Select all
Linux lion.net.spc.priv 2.6.39-400.277.1.el6uek.i686 #1 SMP Wed Feb 24 16:13:26 PST 2016 i686 i686 i386 GNU/Linux :==>
Building module:
cleaning build area...
make KERNELRELEASE=2.6.39-400.277.1.el6uek.i686 -C /lib/modules/2.6.39-400.277.1.el6uek.i686/build M=/var/lib/dkms/vboxguest/5.0.16/build..........
cleaning build area...
DKMS: build completed.
on the Oracle Linux Server 6 guest. Error messages in /var/lib/dkms/vboxguest/5.0.16/build/make.log can be found only on the CentOS6 guest. And yes it's a kernel source bug of RHEL and some clones.
Re: guestadditions on RHEL6 clones
Posted: 13. Mar 2016, 14:49
by dmischa
only for completeness, I've now booted the Oracle Linux Server Red Hat Compatible Kernel (2.6.32-573.18.1.el6.i686) and tryed to build the guestadditions. Same result as with CentOS6
Code: Select all
....
Building module:
cleaning build area...
make KERNELRELEASE=2.6.32-573.18.1.el6.i686 -C /lib/modules/2.6.32-573.18.1.el6.i686/build M=/var/lib/dkms/vboxguest/5.0.16/build..........(bad exit status: 2)
Error! Bad return status for module build on kernel: 2.6.32-573.18.1.el6.i686 (i686)
Consult /var/lib/dkms/vboxguest/5.0.16/build/make.log for more information.
Failed to install using DKMS, attempting to install without
....
Ok the Oracle Linux Server Unbreakable Enterprise Kernel makes the difference. And now???
Re: guestadditions on RHEL6 clones
Posted: 13. Mar 2016, 15:56
by dmischa
also CentOS (4.4.5-1.el6.elrepo.i686) solves the problem. The problem is now solved for me.
Re: guestadditions on RHEL6 clones
Posted: 15. Mar 2016, 11:59
by dmischa
dmischa wrote:also CentOS (4.4.5-1.el6.elrepo.i686) solves the problem. The problem is now solved for me.
just tryed to upgrade to kernel-ml-4.5.0-1.el6.elrepo.i686. Now the compilation of vboxguest/4.3.36/build/vboxsf/lnkops.c failes
Code: Select all
CC [M] /var/lib/dkms/vboxguest/4.3.36/build/vboxsf/lnkops.o
/var/lib/dkms/vboxguest/4.3.36/build/vboxsf/lnkops.c: In function ‘sf_get_link’:
/var/lib/dkms/vboxguest/4.3.36/build/vboxsf/lnkops.c:79: error: implicit declaration of function ‘VbglR0SfReadLink’
make[2]: *** [/var/lib/dkms/vboxguest/4.3.36/build/vboxsf/lnkops.o] Error 1
ok the guestadditions are no more compatible with the main stream kernel.
Re: guestadditions on RHEL6 clones
Posted: 15. Mar 2016, 15:18
by dmischa
dmischa wrote:
ok the guestadditions are no more compatible with the main stream kernel.
this was bug #15032 fixed in 5.0.14. I can confirm, that it is also fixed for my problem with 5.0.16 but not for 4.3.36.
Re: guestadditions on RHEL6 clones
Posted: 17. Mar 2016, 10:37
by dmischa
dmischa wrote:
this was bug #15032 fixed in 5.0.14. I can confirm, that it is also fixed for my problem with 5.0.16 but not for 4.3.36.
reported as Ticket #15249.
Re: guestadditions on RHEL6 clones
Posted: 4. Apr 2016, 17:57
by dmischa
the fix is part of the current 4.3 test build.