From owner-freebsd-current@freebsd.org Thu Mar 2 19:40:09 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EBC03CF5188 for ; Thu, 2 Mar 2017 19:40:09 +0000 (UTC) (envelope-from alex.deiter@gmail.com) Received: from mail-lf0-x243.google.com (mail-lf0-x243.google.com [IPv6:2a00:1450:4010:c07::243]) (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 6F2AFCF3; Thu, 2 Mar 2017 19:40:09 +0000 (UTC) (envelope-from alex.deiter@gmail.com) Received: by mail-lf0-x243.google.com with SMTP id g70so5496887lfh.3; Thu, 02 Mar 2017 11:40:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=oCTxOa9493OoJU4JDeZgKBLWK/hz+PQA5NDecxqbCUE=; b=FYuLjuLKA33zIbi8kVgQAQxlpNHsD0cLrroMU7+8zRmE4isiHtaBFRbrTXnaDjj2or SrMmxNoFnRccJAHSxBXAXZ2ly7wW1EKwETRUDqypPqW6DnnwcLQG/uFi9uR/TiwtNFIL bvV3RepOs7RPfwy8ATXLvItU6R5tAJJBEd2dngN68L1z8bGva9/FhGG8OidiqNAeS/wg o8QnY1GOTtytzOKVi9V9U1mZnE11tBwqY6Bz9CmXRWgV0B8xO78JpJPQVxiBgvtkUnpy nBWJkCPaFOnq0JWivq7769f05RwIiJoyrOxOVjTYECuTE1KqfFcO97w74hp9nd0fSDzC VaOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=oCTxOa9493OoJU4JDeZgKBLWK/hz+PQA5NDecxqbCUE=; b=H0JfkDnglXmcwPwTvDyT6xPrZt1kCCW0x0yNTPiPrRk6tUDYwl74blhLXh9VF5HV2K oVKlX5rq7mSuQK/UOEl5dhTcG6qSvm6JeqCwnakWqSl3LoT3VKaag12tRTekcLlKYDOs LNKVPJEzAXG5Y8Bak9xC4rSxaUZ2dnpCaqtKydyf5iaFLx2frwAwP6rqxbJFGGbILUtB 9TEW3fpUXAdfVgokxC5vLesnskq2y/mkzNFZ+32gP8WCuPFJQid3CdiJTvD9Q+F1Smdh X3jeZbxqqcshg2wijVRZfqkVu9VHpjE4sAXxjrRWYf8ItEYJE1UMhQsAmHF0R9ImX+qv hPHw== X-Gm-Message-State: AMke39nBIZZtYwYWtSpn2p/JEWDXJ+YvQNBWQBnSYCDgf+Tyh4vZBBe/dPqFNFiTJC/s4Q== X-Received: by 10.46.15.25 with SMTP id 25mr5103674ljp.64.1488483606979; Thu, 02 Mar 2017 11:40:06 -0800 (PST) Received: from tiamat.deiter.ru ([109.167.157.231]) by smtp.gmail.com with ESMTPSA id p81sm558000lfd.47.2017.03.02.11.40.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Mar 2017 11:40:06 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: Buildworld fails if WITHOUT_INET6=YES defined From: Alex Deiter In-Reply-To: Date: Thu, 2 Mar 2017 22:40:05 +0300 Cc: "Ngie Cooper (yaneurabeya)" , "Oleg V. Nauman" , freebsd-current , Xin Li Content-Transfer-Encoding: quoted-printable Message-Id: <34795ABB-53CB-4C2F-914B-E50276E425B2@gmail.com> References: <6255771.COiSESJxsN@asus.theweb.org.ua> <758FDB4C-C8CA-43B5-B100-CAF871AEA550@gmail.com> To: Bryan Drewery X-Mailer: Apple Mail (2.3259) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Mar 2017 19:40:10 -0000 Hello, Please apply patch from upstream: https://github.com/the-tcpdump-group/libpcap/pull/541 Fix compilation if INET6 isn't defined. Addresses GitHub issue #541, but differently from the pull request (it defines gen_gateway() with a function prototype rather than using a pre-prototype-style definition). = https://github.com/the-tcpdump-group/libpcap/commit/470df104c6f55f6d6f390d= f7448d8eb65c7642b9#diff-021c0dd9e9ed7100b9e31d8d95c930f2 Thank you! Alex Deiter alex.deiter@gmail.com > On 18 Feb 2017, at 00:09, Bryan Drewery wrote: >=20 > On 2/17/2017 1:03 PM, Bryan Drewery wrote: >> On 2/16/2017 10:07 AM, Ngie Cooper (yaneurabeya) wrote: >>>=20 >>>> On Feb 16, 2017, at 07:30, Oleg V. Nauman = wrote: >>>>=20 >>>> cc -target i386-unknown-freebsd12.0 --sysroot=3D/usr/obj/usr/src/tmp = - >>>> B/usr/obj/usr/src/tmp/usr/bin -O2 -pipe -march=3Dcore2 = -DHAVE_CONFIG_H - >>>> I/usr/src/lib/libpcap -I/usr/obj/usr/src/lib/libpcap - >>>> D_U_=3D"__attribute__((unused))" -DHAVE_SNPRINTF -DHAVE_VSNPRINTF - >>>> DBUILDING_PCAP -DHAVE_NET_PFVAR_H -I/usr/src/contrib/libpcap -MD - >>>> MF.depend.fad-getad.o -MTfad-getad.o -std=3Dgnu99 = -fstack-protector-strong -Wno- >>>> pointer-sign -Wno-empty-body -Wno-string-plus-int = -Wno-unused-const-variable - >>>> Wno-tautological-compare -Wno-unused-value = -Wno-parentheses-equality -Wno- >>>> unused-function -Wno-enum-conversion -Wno-unused-local-typedef = -Wno-switch - >>>> Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses = -Qunused- >>>> arguments -c /usr/src/contrib/libpcap/fad-getad.c -o fad-getad.o >>>> cc -target i386-unknown-freebsd12.0 --sysroot=3D/usr/obj/usr/src/tmp = - >>>> B/usr/obj/usr/src/tmp/usr/bin -O2 -pipe -march=3Dcore2 = -DHAVE_CONFIG_H - >>>> I/usr/src/lib/libpcap -I/usr/obj/usr/src/lib/libpcap - >>>> D_U_=3D"__attribute__((unused))" -DHAVE_SNPRINTF -DHAVE_VSNPRINTF - >>>> DBUILDING_PCAP -DHAVE_NET_PFVAR_H -I/usr/src/contrib/libpcap -MD - >>>> MF.depend.gencode.o -MTgencode.o -std=3Dgnu99 = -fstack-protector-strong -Wno- >>>> pointer-sign -Wno-empty-body -Wno-string-plus-int = -Wno-unused-const-variable - >>>> Wno-tautological-compare -Wno-unused-value = -Wno-parentheses-equality -Wno- >>>> unused-function -Wno-enum-conversion -Wno-unused-local-typedef = -Wno-switch - >>>> Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses = -Qunused- >>>> arguments -c /usr/src/contrib/libpcap/gencode.c -o gencode.o >>>> /usr/src/contrib/libpcap/gencode.c:695:9: error: no member named = 'ai' in >>>> 'struct _compiler_state' >>>> cstate.ai =3D NULL; >>>> ~~~~~~ ^ >>>> /usr/src/contrib/libpcap/gencode.c:4916:13: error: use of = undeclared >>>> identifier 'cstate' >>>> bpf_error(cstate, "direction applied to 'gateway'"); >>>> ^ >>>> /usr/src/contrib/libpcap/gencode.c:4923:11: error: use of = undeclared >>>> identifier 'cstate' >>>> switch (cstate->linktype) { >>>> ^ >>>> /usr/src/contrib/libpcap/gencode.c:4961:17: error: use of = undeclared >>>> identifier 'cstate' >>>> b1 =3D gen_host(cstate, **alist++, 0xffffffff, proto, = Q_OR, >>>> Q_HOST); >>>> ^ >>>> /usr/src/contrib/libpcap/gencode.c:4963:19: error: use of = undeclared >>>> identifier 'cstate' >>>> tmp =3D gen_host(cstate, **alist++, = 0xffffffff, proto, >>>> Q_OR, >>>> ^ >>>> /usr/src/contrib/libpcap/gencode.c:4972:12: error: use of = undeclared >>>> identifier 'cstate' >>>> bpf_error(cstate, "illegal modifier of 'gateway'"); >>>> ^ >>>> 6 errors generated. >>>> *** Error code 1 >>>>=20 >>>> Stop. >>>> make[5]: stopped in /usr/src/lib/libpcap >>>> *** Error code 1 >>>=20 >>> CCing Xin, who did the libpcap upgrade. >>> -Ngie >>>=20 >>=20 >> I get an error even with INET6 building grammar.o: >>=20 >>> /root/git/freebsd/contrib/libpcap/grammar.y:348:15: error: use of = undeclared identifier 'cstate'; did you mean 'cstat'? >>> finish_parse(cstate, yystack.l_mark[0].blk.b); = =20 >>> ^~~~~~ = =20 >>> cstat = =20 >>> grammar.c:1291:1: note: 'cstat' declared here = =20 >>> YYPARSE_DECL() = =20 >>> ^ = =20 >>=20 >=20 > Ignore me, my yacc is just outdated. >=20 > --=20 > Regards, > Bryan Drewery >=20