From owner-freebsd-questions@freebsd.org Tue Mar 16 00:18:41 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8360156D32E for ; Tue, 16 Mar 2021 00:18:41 +0000 (UTC) (envelope-from parv.0zero9@gmail.com) Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dzv5r5yZ8z4gNk for ; Tue, 16 Mar 2021 00:18:40 +0000 (UTC) (envelope-from parv.0zero9@gmail.com) Received: by mail-wm1-x335.google.com with SMTP id f22-20020a7bc8d60000b029010c024a1407so431658wml.2 for ; Mon, 15 Mar 2021 17:18:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=S4Rq5y2FoyTJm6Xy9vNi1PLuw9xD9XNgs8rC6HMWFac=; b=oUsb2fDp/gwQDoGO4fJw7OZt+BHvPjINbljqOeHq+NwqxayheelgCLVaYh3ipOhoQU zW7ZBAKaH+OnKoy+uyX0OBC92P1MvxoGd+Asdg8y/8XWi0tKcjf0nYCUxeXntYiSyWjh 5e7LNEgxKDp5n1mX+jtH0ztXb7IrZ8fXh/hqSpSfyqTlPf9xQ6j59h3YUC4NBCwfk4wo 7M5Sdr5NEaHChGbXtDhueswxmGXz/HeK6mkY/S5j29DyEcK4fyFugOmwPXcCO5p3Oovc nfLbQHN+sXG3PrCplzyobRGxc6khz/3JAWhyPf3MQmojNTWzJ3E6UvFV97ZLFW5wrQkc TDqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=S4Rq5y2FoyTJm6Xy9vNi1PLuw9xD9XNgs8rC6HMWFac=; b=EGvvGBXic1p0ZckKPKj6arxHHFMx0020I2dcqfNz9U4n24OhyXbq8cn5lsdmPR0YLZ UqEo2I5p7ISHOZqWBKU8guaoOxqjjlh7ksr4oUK5bg8svCVEKdoU6bJYItJY/3nRBdRE JYeIwYFHvpDouAeWrkyAIb9VEUQGTUBatRlTDms6qAFQfHXhrPRYutfJlIPPdkYRPVbI MWqDVUt6ZhP5zgCy2cvS6OX7HeKM8Mm9N5HKESu34g8JP+j8wi145P/jpVS8DqZNfvka VZdFD2oBcyrjIPbq94OpAZmN/6cWVNl0DYXTyCSnCE9z1i7UpLoebb3cp4IsBqQJMwjy f4jw== X-Gm-Message-State: AOAM5315wnVYPRREKcm2+g7+NpbPZPvuZWMNi4aqHh5SQ68AkhoZmtvS RjvDiFAgAkBWG/YtxZ32iU/LN4I/XGL1Cn1M+/lzqI/H X-Google-Smtp-Source: ABdhPJzNyD/dP5uh1JaoMhbbqQMHYeMS1OXgwvOwvh1YC7aBAA7+X6UFvRWJX/bxlxp02SfX9ql5vrqH3PbBtH4/EEY= X-Received: by 2002:a1c:e244:: with SMTP id z65mr1971406wmg.130.1615853919429; Mon, 15 Mar 2021 17:18:39 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "parv/freebsd" Date: Mon, 15 Mar 2021 14:16:42 -1000 Message-ID: Subject: Re: emulators/virtualbox-ose-additions 6.1.18 fails to build while compiling mount_vboxfs.c To: FreeBSD X-Rspamd-Queue-Id: 4Dzv5r5yZ8z4gNk X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=oUsb2fDp; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of parv0zero9@gmail.com designates 2a00:1450:4864:20::335 as permitted sender) smtp.mailfrom=parv0zero9@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::335:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[freebsd]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::335:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::335:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2021 00:18:41 -0000 On Fri, Mar 12, 2021 at 10:42 AM parv/freebsd wrote: > On Fri, Mar 12, 2021 at 9:59 AM parv/freebsd wrote: > >> On Fri, Mar 12, 2021 at 9:49 AM parv/freebsd wrote: >> ... >> > No need to build anymore as a package is now available. Anyway ... 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? > ... I suspect when the build of virtualbox-ose-additions was running, the source tree might have not have been at "stable/12" branch. After making sure that the tree is indeed at "stable/12", build, and thus install, had succeeded. A "make package" had failed due to missing "$WRKSRC/../.metadir", which it is. Why? - parv