Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Mar 2021 09:49:33 -1000
From:      "parv/freebsd" <parv.0zero9+freebsd@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   emulators/virtualbox-ose-additions 6.1.18 fails to build while compiling mount_vboxfs.c
Message-ID:  <CABObuOoTm1QcRNTUD7BaPg%2B-Sg_iZeTDxo%2BmHbfo2baStj%2B7CA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi there,

Before I collect yet another unresolved bug of The Ports, I want to see if
anyone knows the reason & possible solution, or if anyone else has seen the
error.

I had tried to build locally as there is no package for FreeBSD 12 yet;
a delete & install of "virtualbox-ose-additions" resulted in reinstall of
version 5.2;
there were no already reported issues in Bugzilla that I could find.

On FreeBSD stable/12-n232694-f2a88e74470 ...

- have in /etc/make.conf to avoid use of DBUS, HAL, & WAYLAND via
OPTIONS_UNSET;
- using MINIMAL kernel with COMPAT_FREEBSD10 & COMPAT_FREEBSD11 only for
  Firefox;
- packages & ports tree (r568143) are uptodate

... build of emulators/virtualbox-ose-additions version 6.1.18 fails to
build
due to "use of undeclared identifier" while compiling mount_vboxfs.c ...


kBuild: Compiling mount_vboxvfs - /usr/src/sys/../sbin/mount/getmntopts.c
kBuild: Compiling mount_vboxvfs -
/src-build/ports-build/src-build/ports/emulators/virtualbox-ose-additions/work/VirtualBox-6.1.18/src/VBox/Additions/freebsd/mount_vboxvfs/mount_vboxvfs.c
/src-build/ports-build/src-build/ports/emulators/virtualbox-ose-additions/work/VirtualBox-6.1.18/src/VBox/Additions/freebsd/mount_vboxvfs/mount_vboxvfs.c:54:2:
error: use of undeclared identifier 'MNT_NOCOVER'
        MOPT_STDOPTS,
        ^
/usr/src/sys/../sbin/mount/mntopts.h:100:2: note: expanded from macro
'MOPT_STDOPTS'
        MOPT_NOCOVER,                                                   \
        ^
/usr/src/sys/../sbin/mount/mntopts.h:68:37: note: expanded from macro
'MOPT_NOCOVER'
#define MOPT_NOCOVER            { "cover",      1, MNT_NOCOVER, 0 }
                                                   ^
/src-build/ports-build/src-build/ports/emulators/virtualbox-ose-additions/work/VirtualBox-6.1.18/src/VBox/Additions/freebsd/mount_vboxvfs/mount_vboxvfs.c:54:2:
error: use of undeclared identifier 'MNT_EMPTYDIR'
/usr/src/sys/../sbin/mount/mntopts.h:101:2: note: expanded from macro
'MOPT_STDOPTS'
        MOPT_EMPTYDIR
        ^
/usr/src/sys/../sbin/mount/mntopts.h:69:41: note: expanded from macro
'MOPT_EMPTYDIR'
#define MOPT_EMPTYDIR           { "emptydir",   0, MNT_EMPTYDIR, 0 }
                                                   ^
2 errors generatedkBuild: Generating
/src-build/ports-build/src-build/ports/emulators/virtualbox-ose-additions/work/VirtualBox-6.1.18/out/freebsd.amd64/release/revision-generated.h
.
kmk: ***
[/src-build/ports-build/src-build/ports/emulators/virtualbox-ose-additions/work/VirtualBox-6.1.18/out/freebsd.amd64/release/obj/mount_vboxvfs/mount_vboxvfs.o]
Error 1
The failing command:
@cc -c -O2 -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 -O2
-mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing
-fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN
-DRT_USE_VISIBILITY_DEFAULT  -m64 -I/usr/local/include
-I/src-build/ports-build/src-build/ports/emulators/virtualbox-ose-additions/work/VirtualBox-6.1.18/out/freebsd.amd64/release/obj/mount_vboxvfs/dtrace
-I/src-build/ports-build/src-build/ports/emulators/virtualbox-ose-additions/work/VirtualBox-6.1.18/include
-I/src-build/ports-build/src-build/ports/emulators/virtualbox-ose-additions/work/VirtualBox-6.1.18/out/freebsd.amd64/release
-DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_FREEBSD -D__FREEBSD__
-DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_DEBUGGER -DVBOX_WITH_HARDENING
-DRTPATH_APP_PRIVATE=\"/usr/local/lib/virtualbox\"
-DRTPATH_APP_PRIVATE_ARCH=\"/usr/local/lib/virtualbox\"
-DRTPATH_SHARED_LIBS=\"/usr/local/lib/virtualbox\"
-DRTPATH_APP_DOCS=\"/usr/local/lib/virtualbox\" -DIN_RING3 -DIN_GUEST
-DIN_GUEST_R3 -DIN_RT_R3 -DGC_ARCH_BITS=64 -DRT_NEED_NEW_AND_DELETE
-DHC_ARCH_BITS=64
-Wp,-MD,/src-build/ports-build/src-build/ports/emulators/virtualbox-ose-additions/work/VirtualBox-6.1.18/out/freebsd.amd64/release/obj/mount_vboxvfs/mount_vboxvfs.o.dep
-Wp,-MT,/src-build/ports-build/src-build/ports/emulators/virtualbox-ose-additions/work/VirtualBox-6.1.18/out/freebsd.amd64/release/obj/mount_vboxvfs/mount_vboxvfs.o
-Wp,-MP -o
/src-build/ports-build/src-build/ports/emulators/virtualbox-ose-additions/work/VirtualBox-6.1.18/out/freebsd.amd64/release/obj/mount_vboxvfs/mount_vboxvfs.o
/src-build/ports-build/src-build/ports/emulators/virtualbox-ose-additions/work/VirtualBox-6.1.18/src/VBox/Additions/freebsd/mount_vboxvfs/mount_vboxvfs.c
*** Error code 2


Will appreciate some clues.

  - parv



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABObuOoTm1QcRNTUD7BaPg%2B-Sg_iZeTDxo%2BmHbfo2baStj%2B7CA>