в общем выпадает сборка с такими ошибками:
C vboxvideo_drv_system - {C}/vboxvideo.c
gcc -c -O2 -g -pipe -pedantic -Wshadow -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-unused-parameter -Wlogical-op -Wno-variadic-macros -Wno-long-long -Wunused-variable -Wunused-function -Wunused-label -Wunused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Werror-implicit-function-declaration -Wno-variadic-macros -O2 -pipe -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fPIC -std=c99 -Wno-conversion -Wno-unused-parameter -Wno-variadic-macros -include xorg-server.h -m64 -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.30/work/VirtualBox-5.1.30/src/VBox/Runtime/include -I/usr/include/x11 -I/usr/include/xorg -I/usr/include/pixman-1 -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.30/work/VirtualBox-5.1.30/out/linux.amd64/release/obj/vboxvideo_drv_system/dtrace -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.30/work/VirtualBox-5.1.30/include -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.30/work/VirtualBox-5.1.30/out/linux.amd64/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_REM -DVBOX_WITH_RAW_MODE -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_DEBUGGER -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/opt/VirtualBox\" -DRTPATH_APP_PRIVATE_ARCH=\"/opt/VirtualBox\" -DRTPATH_SHARED_LIBS=\"/opt/VirtualBox\" -DRTPATH_APP_DOCS=\"/opt/VirtualBox\" -DIN_RING3 -DVBOX_WITH_DTRACE -DVBOX_WITH_DTRACE_R3 -DIN_GUEST -DIN_GUEST_R3 -DIN_RT_R3 -DGC_ARCH_BITS=64 -DPIC -DVBOX_GUESTR3XORGMOD -DRTMEM_NO_WRAP_TO_EF_APIS -D_XSERVER64 -DIN_MODULE -DXORG_7X -DRENDER=1 -DIN_RT_STATIC -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DVBOXVIDEO_13 -DNO_ANSIC -DPCIACCESS -DXSERVER_LIBPCIACCESS -DLOG_USE_C99 -DRT_WITHOUT_EXEC_ALLOC -Wp,-MD,/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.30/work/VirtualBox-5.1.30/out/linux.amd64/release/obj/vboxvideo_drv_system/vboxvideo.o.dep -Wp,-MT,/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.30/work/VirtualBox-5.1.30/out/linux.amd64/release/obj/vboxvideo_drv_system/vboxvideo.o -Wp,-MP -o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.30/work/VirtualBox-5.1.30/out/linux.amd64/release/obj/vboxvideo_drv_system/vboxvideo.o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.30/work/VirtualBox-5.1.30/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
In file included from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.30/work/VirtualBox-5.1.30/src/VBox/Additions/x11/vboxvideo/helpers.c:23:0:
/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.30/work/VirtualBox-5.1.30/src/VBox/Additions/x11/vboxvideo/vboxvideo.h:56:10: fatal error: bits/sigset.h: No such file or directory
#include <bits/sigset.h>
^~~~~~~~~~~~~~~
compilation terminated.
если глянуть сюда https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5fca1c68a374712eb2a6b2fde6807c63b6a5f63 то дело в этом:
#if XORG_VERSION_CURRENT >= 11900000
#include <bits/sigset.h>
typedef __sigset_t sigset_t;
#endif
смотрим файл vim /usr/include/xorg/xorg-server.h:
/* Current Xorg version */
#define XORG_VERSION_CURRENT (((1) * 10000000) + ((19) * 100000) + ((5) * 1000) + 0)
т.е. версия явно больше чем 11900000... что делать?