Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Feb 2017 13:03:04 -0800
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        "Ngie Cooper (yaneurabeya)" <yaneurabeya@gmail.com>, "Oleg V. Nauman" <oleg@opentransfer.com>
Cc:        freebsd-current <freebsd-current@freebsd.org>, Xin Li <delphij@delphij.net>
Subject:   Re: Buildworld fails if WITHOUT_INET6=YES defined
Message-ID:  <c8205732-1b79-a3e7-b9e9-0f67655e3583@FreeBSD.org>
In-Reply-To: <758FDB4C-C8CA-43B5-B100-CAF871AEA550@gmail.com>
References:  <6255771.COiSESJxsN@asus.theweb.org.ua> <758FDB4C-C8CA-43B5-B100-CAF871AEA550@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--sHuBx4o6B788SKJ4tAgd9DnaGAPM5GCGH
Content-Type: multipart/mixed; boundary="ksecVCrMVtNBS00C64O6M9EUJ19beFAg2";
 protected-headers="v1"
From: Bryan Drewery <bdrewery@FreeBSD.org>
To: "Ngie Cooper (yaneurabeya)" <yaneurabeya@gmail.com>,
 "Oleg V. Nauman" <oleg@opentransfer.com>
Cc: freebsd-current <freebsd-current@freebsd.org>,
 Xin Li <delphij@delphij.net>
Message-ID: <c8205732-1b79-a3e7-b9e9-0f67655e3583@FreeBSD.org>
Subject: Re: Buildworld fails if WITHOUT_INET6=YES defined
References: <6255771.COiSESJxsN@asus.theweb.org.ua>
 <758FDB4C-C8CA-43B5-B100-CAF871AEA550@gmail.com>
In-Reply-To: <758FDB4C-C8CA-43B5-B100-CAF871AEA550@gmail.com>

--ksecVCrMVtNBS00C64O6M9EUJ19beFAg2
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 2/16/2017 10:07 AM, Ngie Cooper (yaneurabeya) wrote:
>=20
>> On Feb 16, 2017, at 07:30, Oleg V. Nauman <oleg@opentransfer.com> wrot=
e:
>>
>> 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-st=
rong -Wno-
>> pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-va=
riable -
>> Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -=
Wno-
>> unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-sw=
itch -
>> 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-va=
riable -
>> Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -=
Wno-
>> unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-sw=
itch -
>> 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
>>
>> Stop.
>> make[5]: stopped in /usr/src/lib/libpcap
>> *** Error code 1
>=20
> CCing Xin, who did the libpcap upgrade.
> -Ngie
>=20

I get an error even with INET6 building grammar.o:

> /root/git/freebsd/contrib/libpcap/grammar.y:348:15: error: use of undec=
lared 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
Regards,
Bryan Drewery



--ksecVCrMVtNBS00C64O6M9EUJ19beFAg2--

--sHuBx4o6B788SKJ4tAgd9DnaGAPM5GCGH
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJYp2UIAAoJEDXXcbtuRpfPFzkIAKDtTQzo+HIok+L9bGU1K4L0
sn9WMGL7jzpRAA1tcrkd1GRIY0tQB8vzylL/49KkQfXHDaxdal6bJ7DeAkIQuViD
bz3KHpDE7w4M+0V6X/DSmZi4vCkholwTzlNBQZOIfF/7KCeWr2zFeYamdbHCM4Yc
3KfyA/V/F2gZPvNsKtkzOGDAyMs2zdH4M+GKUVOBZPGvosNeh4bBaXiYhPOEyk66
j6j8lO5aJnxs1PHovOFS8QRd1mGSx+yKWKo3MTKIdQNqU24Z/qtIkzmfGKZOVMsQ
OBrT7fK2wVFj5HHOvuhn3uMwrwFqvawFTlKl7+8NKt1vyuwYO2rnnZ5ABOhNkPs=
=gbN9
-----END PGP SIGNATURE-----

--sHuBx4o6B788SKJ4tAgd9DnaGAPM5GCGH--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c8205732-1b79-a3e7-b9e9-0f67655e3583>