Date: Mon, 09 Apr 2018 11:28:06 +0200 From: "Kristof Provost" <kristof@sigsegv.be> To: "Vladimir Zakharov" <zakharov.vv@gmail.com> Cc: freebsd-current@freebsd.org Subject: Re: buildworld fails: fatal error: 'netpfil/pf/pf.h' file not found Message-ID: <FC86D837-EEBE-4BF9-BFF0-3FC4BB3AF8D1@sigsegv.be> In-Reply-To: <20180409085050.mjy6itqti6spzbdx@vzakharov> References: <20180409085050.mjy6itqti6spzbdx@vzakharov>
next in thread | previous in thread | raw e-mail | index | archive | help
On 9 Apr 2018, at 10:50, Vladimir Zakharov wrote:
> For several days buildworld fails for me with the following error.
> Cleaning and
> rebuilding didn't help.
>
> ===> tests/sys/netpfil/pf/ioctl (all)
> --- validation ---
> (cd /usr/src/tests/sys/netpfil/pf/ioctl &&
> DEPENDFILE=.depend.validation NO_SUBDIR=1 make -f
> /usr/src/tests/sys/netpfil/pf/ioctl/Makefile _RECURSING_PROGS=t
> PROG=validation )
> Building
> /home/obj/usr/src/amd64.amd64/tests/sys/netpfil/pf/ioctl/validation.o
> --- validation.o ---
> In file included from
> /usr/src/tests/sys/netpfil/pf/ioctl/validation.c:35:
> /home/obj/usr/src/amd64.amd64/tmp/usr/include/net/pfvar.h:49:10: fatal
> error: 'netpfil/pf/pf.h' file not found
> #include <netpfil/pf/pf.h>
> ^~~~~~~~~~~~~~~~~
> 1 error generated.
> *** [validation.o] Error code 1
>
> make[8]: stopped in /usr/src/tests/sys/netpfil/pf/ioctl
>
>
> My /etc/src.conf (I have PF switched off):
Ah, that’s my fault. I didn’t consider people who’d switch off pf
when I added the new ioctl tests.
You can work around the issue by removing the new tests yourself, or by
building pf in anyway (it won’t do anything unless you load the module
and activate it).
This should be a workaround for you until I can commit a better fix:
diff --git a/tests/sys/netpfil/pf/Makefile
b/tests/sys/netpfil/pf/Makefile
index c055e6840bd..259e1275d9c 100644
--- a/tests/sys/netpfil/pf/Makefile
+++ b/tests/sys/netpfil/pf/Makefile
@@ -3,7 +3,6 @@
PACKAGE= tests
TESTSDIR= ${TESTSBASE}/sys/netpfil/pf
-TESTS_SUBDIRS+= ioctl
ATF_TESTS_SH+= pass_block \
forward \
Regards,
Kristof
From owner-freebsd-current@freebsd.org Mon Apr 9 11:10:15 2018
Return-Path: <owner-freebsd-current@freebsd.org>
Delivered-To: freebsd-current@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
by mailman.ysv.freebsd.org (Postfix) with ESMTP id DBF56F9A4A3
for <freebsd-current@mailman.ysv.freebsd.org>;
Mon, 9 Apr 2018 11:10:14 +0000 (UTC)
(envelope-from zakharov.vv@gmail.com)
Received: from mail-lf0-x234.google.com (mail-lf0-x234.google.com
[IPv6:2a00:1450:4010:c07::234])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(Client CN "smtp.gmail.com",
Issuer "Google Internet Authority G2" (verified OK))
by mx1.freebsd.org (Postfix) with ESMTPS id 5175C6E09D
for <freebsd-current@freebsd.org>; Mon, 9 Apr 2018 11:10:14 +0000 (UTC)
(envelope-from zakharov.vv@gmail.com)
Received: by mail-lf0-x234.google.com with SMTP id c78-v6so5961010lfh.1
for <freebsd-current@freebsd.org>; Mon, 09 Apr 2018 04:10:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=date:from:to:cc:subject:message-id:references:mime-version
:content-disposition:content-transfer-encoding:in-reply-to
:user-agent; bh=Vzt/N5MBEhsjyA6rJ3Pxaj4DnoJn2vzb+jRijr56/+g=;
b=MwJcSkYrwvOSfBHWntVzIczqdCnH7aYTqDlQQ7YRY6GxiAHSaaXjkEtobb2/rxWoh3
q49sntWK4SXssfv/qYe/+LX7P0NVxfh5EmZbp3uXTWsBZp6daIO0oE/KUlMCJ6PiDw3T
QdEOVsIoFiW9tS0u0y5KXFGsExqfID69NAR/HV2ImmE9Q201hSTdnhz4022nzAfIf8vF
e1urQcpTbD2Ptwf3DBj+RKiO2P+d+q3PAXhVwWck133YR/d85Ca8Y8yIpUAuwWWmxkCJ
I8Bx0u8bZS16n8QYUVCaIcDo5xoHy7bx3oakuOQX77foJ21gKuwOl8Rpdf/92PSN5FzK
9oDg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:date:from:to:cc:subject:message-id:references
:mime-version:content-disposition:content-transfer-encoding
:in-reply-to:user-agent;
bh=Vzt/N5MBEhsjyA6rJ3Pxaj4DnoJn2vzb+jRijr56/+g=;
b=WYiKtk3bX6IT2pH+SAcHDc9FGjoJxcvZG7M3cc3+LJOC7VfJ28meLIJr8eH9p56r/G
50LXUyQX+rZ9IubeCJp/dCfz6xkj0W3npiiYuF4F7OrZX05BMh7TzIYK80LSEhla4VcJ
0D/OujMIyNZdRDYC5Rn2CqiSCIs7oI39ZtIFOGOuqQB77WVc0+WNx4s+OFE41DluX/yd
VDG0QW/T/7v612c6SDbZoAPY7IdUAJtGqXy8jXif9toA5CBGwN5DtGtFCIQ0SvM4ea/q
r3sF5W57vdQa8hnjT+y2MOiyhml8P0MfLtLPYd9yBe/WvMu7GB4boyMQ+rwx0fyT6gnT
hAcQ==
X-Gm-Message-State: ALQs6tChfbaFXs4uD878smvyD0IwnMWkt5bNRbUiN8zCE+r7Ma2X9beW
3zVc5SupLEbKZSvED4kAKmE0tuOd
X-Google-Smtp-Source: AIpwx490yY4lfsCt07iY8HQCHnKGAzwCVbxJz2KdzPBdYWi3n0MC3shmLZubZs7clm3kL9PdB1MIBg==
X-Received: by 2002:a19:a60a:: with SMTP id
p10-v6mr22349483lfe.41.1523272212005;
Mon, 09 Apr 2018 04:10:12 -0700 (PDT)
Received: from localhost ([81.19.73.155])
by smtp.gmail.com with ESMTPSA id q83-v6sm22556lfg.46.2018.04.09.04.10.11
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Mon, 09 Apr 2018 04:10:11 -0700 (PDT)
Date: Mon, 9 Apr 2018 14:10:11 +0300
From: Vladimir Zakharov <zakharov.vv@gmail.com>
To: Kristof Provost <kristof@sigsegv.be>
Cc: freebsd-current@freebsd.org
Subject: Re: buildworld fails: fatal error: 'netpfil/pf/pf.h' file not found
Message-ID: <20180409111011.5gqhtqtuw6xsg3wq@vzakharov>
References: <20180409085050.mjy6itqti6spzbdx@vzakharov>
<FC86D837-EEBE-4BF9-BFF0-3FC4BB3AF8D1@sigsegv.be>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <FC86D837-EEBE-4BF9-BFF0-3FC4BB3AF8D1@sigsegv.be>
X-Operating-System: FreeBSD 12.0-CURRENT amd64
X-PGP-Key: http://vzakharov.ru/pubkey.asc
User-Agent: NeoMutt/20180323
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.25
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
<freebsd-current.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-current>,
<mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/>
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-current>,
<mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Apr 2018 11:10:15 -0000
On Mon, Apr 09, 2018, Kristof Provost wrote:
> On 9 Apr 2018, at 10:50, Vladimir Zakharov wrote:
>
> For several days buildworld fails for me with the following error. Cleaning
> and
> rebuilding didn't help.
>
> ===> tests/sys/netpfil/pf/ioctl (all)
> --- validation ---
> (cd /usr/src/tests/sys/netpfil/pf/ioctl && DEPENDFILE=.depend.validation
> NO_SUBDIR=1 make -f /usr/src/tests/sys/netpfil/pf/ioctl/Makefile
> _RECURSING_PROGS=t PROG=validation )
> Building /home/obj/usr/src/amd64.amd64/tests/sys/netpfil/pf/ioctl/
> validation.o
> --- validation.o ---
> In file included from /usr/src/tests/sys/netpfil/pf/ioctl/validation.c:35:
> /home/obj/usr/src/amd64.amd64/tmp/usr/include/net/pfvar.h:49:10: fatal
> error: 'netpfil/pf/pf.h' file not found
> #include <netpfil/pf/pf.h>
> ^~~~~~~~~~~~~~~~~
> 1 error generated.
> *** [validation.o] Error code 1
>
> make[8]: stopped in /usr/src/tests/sys/netpfil/pf/ioctl
>
>
> My /etc/src.conf (I have PF switched off):
>
> Ah, that’s my fault. I didn’t consider people who’d switch off pf when I added
> the new ioctl tests.
>
> You can work around the issue by removing the new tests yourself, or by
> building pf in anyway (it won’t do anything unless you load the module and
> activate it).
>
> This should be a workaround for you until I can commit a better fix:
>
> diff --git a/tests/sys/netpfil/pf/Makefile b/tests/sys/netpfil/pf/Makefile
> index c055e6840bd..259e1275d9c 100644
> --- a/tests/sys/netpfil/pf/Makefile
> +++ b/tests/sys/netpfil/pf/Makefile
> @@ -3,7 +3,6 @@
> PACKAGE= tests
>
> TESTSDIR= ${TESTSBASE}/sys/netpfil/pf
> -TESTS_SUBDIRS+= ioctl
>
> ATF_TESTS_SH+= pass_block \
> forward \
Thanks. I've applied this fix for now and managed to update.
--
Regards, | "In theory there is no difference between theory
Vladimir Zakharov | and practice. In practice there is."- Yogi Berra
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FC86D837-EEBE-4BF9-BFF0-3FC4BB3AF8D1>
