Date: Sat, 16 May 2020 13:02:02 -0300 From: Mario Lobo <lobo@bsd.com.br> To: freeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: virtualbox-ose port fails (12.1) Message-ID: <CA%2ByoEx9a_9tv9q1UNJQeOoR%2BodQR8yZjpMoJ4XLmH%2B%2BiOJOnbA@mail.gmail.com> In-Reply-To: <4861DE35-5D5B-4C8C-A571-D0A306AC6A9A@kukulies.org> References: <3D852AFC-329C-46B7-A2DE-3E9B3D61BB21@kukulies.org> <alpine.BSF.2.22.395.2005151110010.4575@enterprise.ximalas.info> <310BA73B-3BFC-4B5A-B175-0A942FCC92B0@kukulies.org> <CA%2ByoEx8ye1fEy1Zi0wROo9ew-XG8XZ8R=hE1JSo1iPRufS274Q@mail.gmail.com> <29080AE7-3C98-4D2D-9A73-34E7CF02EA5C@kukulies.org> <alpine.BSF.2.22.395.2005152022380.4575@enterprise.ximalas.info> <910A2CF5-E2A5-4EC8-B250-C87FA8399ABA@kukulies.org> <alpine.BSF.2.22.395.2005152104200.4575@enterprise.ximalas.info> <184EB792-871B-486C-A210-6AA0D31BEECB@kukulies.org> <CA%2ByoEx-iXmpWnt1OzP_vwoVLeHw-651or13hbK=v%2BBcF72W3Kg@mail.gmail.com> <64C9BDE1-A411-4767-BCF8-28C56614C0B8@kukulies.org> <4861DE35-5D5B-4C8C-A571-D0A306AC6A9A@kukulies.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, May 16, 2020 at 6:43 AM Christoph Kukulies <kuku@kukulies.org> wrote: > But=E2=80=A6 virtualbox-ose-additions fails: > > In file included from > /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/src/= VBox/Additions/x11/vboxmouse/vboxmouse.c:51: > In file included from /usr/local/include/xorg/xf86Xinput.h:56: > */usr/local/include/xorg/inputstr.h:376:5: **error: **unknown type name > 'TimeStamp'; did you mean* > * 'TimeStampPtr'?* > TimeStamp time; > * ^~~~~~~~~* > TimeStampPtr > */usr/local/include/xorg/dix.h:119:28: **note: *'TimeStampPtr' declared > here > typedef struct _TimeStamp *TimeStampPtr; > * ^* > In file included from > /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/src/= VBox/Additions/x11/vboxmouse/vboxmouse.c:51: > In file included from /usr/local/include/xorg/xf86Xinput.h:56: > */usr/local/include/xorg/inputstr.h:489:5: **error: **unknown type name > 'TimeStamp'; did you mean* > * 'TimeStampPtr'?* > TimeStamp grabTime; > * ^~~~~~~~~* > TimeStampPtr > */usr/local/include/xorg/dix.h:119:28: **note: *'TimeStampPtr' declared > here > typedef struct _TimeStamp *TimeStampPtr; > * ^* > In file included from > /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/src/= VBox/Additions/x11/vboxmouse/vboxmouse.c:51: > In file included from /usr/local/include/xorg/xf86Xinput.h:56: > */usr/local/include/xorg/inputstr.h:497:27: **warning: **type specifier > missing, defaults to 'int'* > * [-Wimplicit-int]* > TimeStamp /*time */ , > * ^* > */usr/local/include/xorg/inputstr.h:654:5: **error: **unknown type name > 'TimeStamp'; did you mean* > * 'TimeStampPtr'?* > TimeStamp time; > * ^~~~~~~~~* > TimeStampPtr > */usr/local/include/xorg/dix.h:119:28: **note: *'TimeStampPtr' declared > here > typedef struct _TimeStamp *TimeStampPtr; > * ^* > 4 warnings and 12 errors generated. > kmk: *** > [/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/out= /freebsd.amd64/debug/obj/vboxmouse_drv_system/vboxmouse.o] > Error 1 > The failing command: > @cc -c -g -I/usr/src/sys/../sbin/mount -g -pipe -pedantic -Wshadow -Wall > -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs > -fdiagnostics-show-option -Wno-unused-parameter > -Wno-language-extension-token -Wno-gnu-folding-constant > -Wno-gnu-anonymous-struct -Wno-string-plus-int -Wno-nested-anon-types > -Wno-variadic-macros -Wno-long-long -Wmissing-prototypes > -Wstrict-prototypes -Wmissing-declarations > -Werror-implicit-function-declaration -Wno-variadic-macros -O0 > -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility=3Dhidden > -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fPIC -std=3Dc= 99 > -m64 > -I/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/sr= c/VBox/Additions/x11/x11include/inputproto-1.9.99.902 > -I/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/sr= c/VBox/Additions/x11/x11include/libpciaccess-0.10.8 > -I/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/sr= c/VBox/Additions/x11/x11include/pixman-0.16.0 > -I/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/sr= c/VBox/Additions/x11/x11include/xextproto-7.1.1 > -I/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/sr= c/VBox/Additions/x11/x11include/xproto-7.0.18 > -I/usr/local/include/xorg > -I/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/sr= c/VBox/Additions/x11/vboxmouse > -I/usr/local/include > -I/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/ou= t/freebsd.amd64/debug/obj/vboxmouse_drv_system/dtrace > -I/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/in= clude > -I/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/ou= t/freebsd.amd64/debug > -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_REM > -DVBOX_WITH_RAW_MODE -DDEBUG -DDEBUG_root -DDEBUG_USERNAME=3Droot > -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_AMD64 -D__AMD64__ > -DVBOX_WITH_DEBUGGER -DVBOX_WITH_HARDENING -DRT_LOCK_STRICT > -DRT_LOCK_STRICT_ORDER -DRTPATH_APP_PRIVATE=3D\"/usr/local/lib/virtualbox= \" > -DRTPATH_APP_PRIVATE_ARCH=3D\"/usr/local/lib/virtualbox\" > -DRTPATH_SHARED_LIBS=3D\"/usr/local/lib/virtualbox\" > -DRTPATH_APP_DOCS=3D\"/usr/local/lib/virtualbox\" -DIN_RING3 -DIN_GUEST > -DIN_GUEST_R3 -DIN_RT_R3 -DGC_ARCH_BITS=3D64 -DPIC -DVBOX_GUESTR3XORGMOD > -DRTMEM_NO_WRAP_TO_EF_APIS -D_XSERVER64 -DXFree86Server -DIN_MODULE > -DXFree86Module -DXFree86LOADER -DXINPUT -DXORG_7X -DIN_XF86_MODULE > -DDONT_DEFINE_WRAPPERS -DNO_ANSIC -DNO_ANSIC > -Wp,-MD,/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2= .32/out/freebsd.amd64/debug/obj/vboxmouse_drv_system/vboxmouse.o.dep > -Wp,-MT,/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2= .32/out/freebsd.amd64/debug/obj/vboxmouse_drv_system/vboxmouse.o > -Wp,-MP -o > /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/out/= freebsd.amd64/debug/obj/vboxmouse_drv_system/vboxmouse.o > /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/src/= VBox/Additions/x11/vboxmouse/vboxmouse.c > kmk: *** Waiting for unfinished jobs.... > kmk: *** Exiting with status 2 > *** Error code 2 > > Stop. > make[1]: stopped in /usr/ports/emulators/virtualbox-ose-additions > *** Error code 1 > > Stop. > make: stopped in /usr/ports/emulators/virtualbox-ose-additions > # > > Does it compile with you? > > =E2=80=94 > Christoph > Here is a snippet from virtualbox-ose's Makefile: > > > .if ${PORT_OPTIONS:MPYTHON} > USES+=3D python:2.7 > USE_PYTHON=3D distutils noegginfo noflavors > PYDISTUTILS_PKGNAME=3D vboxapi > PYDISTUTILS_PKGVERSION=3D 1.0 > .else > USES+=3D python:2.7,build > .endif > > Virtualbox itself asks for it. > > As an experiment, I switched both lines for python:3.7 and compiled the > port. > > The port builds without errors and VirtualBox runs just fine. > > -- > Mario Lobo > http://www.mallavoodoo.com.br <http://www.mallavoodoo.com.br/> > FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] > > Why are you compiling vbox additions? You only need this when running freebsd as guest a VM INSIDE VBox. You need to make install emulators/virtualbox-ose-kmod. They get installed in /boot/modules. Then you add vboxdrv_load=3D"YES" to /boot/loader.conf and vboxnet_enable=3D"YES" to /etc/rc.conf and reboot. --=20 Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2ByoEx9a_9tv9q1UNJQeOoR%2BodQR8yZjpMoJ4XLmH%2B%2BiOJOnbA>