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

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 12, 2021 at 9:59 AM parv/freebsd wrote:

> On Fri, Mar 12, 2021 at 9:49 AM parv/freebsd wrote:
> ...
>
>> 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
>>
>
> I should have also mentioned that FreeBSD 12-STABLE tree is at commit
> 623fe87b21, Mar 11, 2021.
>
> ... 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 }
>>
>
Both of the options were added to  in Sep 2019 ...

  https://reviews.freebsd.org/rS352614
... but do not seem to exist in FreeBSD 12 ...

  # Shows nothing, unlike or '(MOPT|MNT)_RDONLY' for example.
  % egrep -r '(MOPT|MNT)_(NOCOVER|EMPTYDIR)' sbin/mount \
   sys/{kern,sys} lib/libc/sys


... so why is the port is looking for the macros/identifiers?

There is nothing in note of "20210309" about not being able to build on
FreeBSD 12 in /usr/ports/UPDATING.

Could it not be built on FreeBSD 12 but is not marked so?

  - parv



>                                                    ^
>> 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
>>
> ...
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABObuOp2tqnWbWRkG2QsvO9CrOBNcc%2BLbQJkpc1_ZiF41PAS0g>