Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Oct 2013 02:33:35 +0400
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        dt71@gmx.com
Cc:        freebsd-current@freebsd.org
Subject:   Re: buildworld failure: pfvar.h:44 #include <netpfil/pf/pf.h> not found
Message-ID:  <20131028223334.GE52889@FreeBSD.org>
In-Reply-To: <526EE1E1.6090905@gmx.com>
References:  <526EE1E1.6090905@gmx.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--FX+Db2fp7WJhXKrW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Mon, Oct 28, 2013 at 11:14:57PM +0100, dt71@gmx.com wrote:
d> ===> sbin/ifconfig (depend)
d> rm -f .depend
d> CC='/path/to/clang --sysroot=/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin' mkdep -f .depend -a    -DINET -DNDEBUG -std=gnu99   /usr/src/sbin/ifconfig/ifconfig.c /usr/src/sbin/ifconfig/af_link.c /usr/src/sbin/ifconfig/af_inet.c /usr/src/sbin/ifconfig/af_atalk.c /usr/src/sbin/ifconfig/ifclone.c /usr/src/sbin/ifconfig/ifmac.c /usr/src/sbin/ifconfig/ifmedia.c /usr/src/sbin/ifconfig/iffib.c /usr/src/sbin/ifconfig/ifvlan.c /usr/src/sbin/ifconfig/ifgre.c /usr/src/sbin/ifconfig/ifgif.c /usr/src/sbin/ifconfig/ifieee80211.c /usr/src/sbin/ifconfig/regdomain.c /usr/src/sbin/ifconfig/carp.c /usr/src/sbin/ifconfig/ifgroup.c /usr/src/sbin/ifconfig/ifpfsync.c /usr/src/sbin/ifconfig/ifbridge.c /usr/src/sbin/ifconfig/iflagg.c
d> In file included from /usr/src/sbin/ifconfig/ifpfsync.c:35:
d> /usr/obj/usr/src/tmp/usr/include/net/pfvar.h:44:10: fatal error:
d>        'netpfil/pf/pf.h' file not found
d> #include <netpfil/pf/pf.h>
d>           ^
d> 
d> /usr/obj was clean.

See below ...

d> The environment contains, notably:
...
d> WITHOUT_PF=1

This one prevented headers to be installed into temporary build dir.

Can you please test attached patch?

-- 
Totus tuus, Glebius.

--FX+Db2fp7WJhXKrW
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="ifconfig-Makefile.diff"

Index: sbin/ifconfig/Makefile
===================================================================
--- sbin/ifconfig/Makefile	(revision 257269)
+++ sbin/ifconfig/Makefile	(working copy)
@@ -40,7 +40,9 @@ LDADD+=	-lbsdxml -lsbuf
 
 SRCS+=	carp.c			# SIOC[GS]VH support
 SRCS+=	ifgroup.c		# ...
+.if ${MK_PF} != "no"
 SRCS+=	ifpfsync.c		# pfsync(4) support
+.endif
 
 SRCS+=	ifbridge.c		# bridge support
 SRCS+=	iflagg.c		# lagg support

--FX+Db2fp7WJhXKrW--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131028223334.GE52889>