From owner-freebsd-current@freebsd.org Wed Mar 29 03:37:28 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 60010D2328E for ; Wed, 29 Mar 2017 03:37:28 +0000 (UTC) (envelope-from delphij@gmail.com) Received: from mail-ot0-x231.google.com (mail-ot0-x231.google.com [IPv6:2607:f8b0:4003:c0f::231]) (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 274A03D45 for ; Wed, 29 Mar 2017 03:37:28 +0000 (UTC) (envelope-from delphij@gmail.com) Received: by mail-ot0-x231.google.com with SMTP id t8so2395257otf.3 for ; Tue, 28 Mar 2017 20:37:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=1EgnTLePRNAcYfrAIV46dPYq1M1mJkFfy090XUn4X+I=; b=gNgNw4aix7z6ElRaboFD7JTU8jgo28f8QYcA3SluH4xW5BaIKlKxtvcXFmZCKsTrC0 0TqyneBBT07QxPE7cxCkQxESMztV5bt6mPmS3WOP93dFlY65UEHjfzf2tnkHge7bg4vp djOnJDG7cjSyExiUxKQ6l5JlsoF2FtiVzP7R39llf3B6G0XvISZdz2q9nBZ4ywf11aTp XzLUyTcBuQe++DcErwC3xMDTnSIqdqZ1UHDK9OZBr3VfR/db7cL68+2xOZVguz60EZ7H 4amhaBE2ktKkK7//dVO2TuJhRIijVJ8YODIKBaVybpnapczURJGl1U6oowrMG6Lxk/5O 8yXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=1EgnTLePRNAcYfrAIV46dPYq1M1mJkFfy090XUn4X+I=; b=HjzqDSyxIjvUyNIfVsPDWiv4W4gVhe0ugo7qeETJqDVnDZE2K1QWl5IQfuawIkTyIG LTS0PaL/Xh5FoovJ++CzEf8CBLg3ZB1uhD03x6qVGx921kLFdZMv3jAwLwOMHgfqDpIe icTiK7c4jN7HwoT8aw6yKahx28Uv/q9Ge1QrVJVh4Ydg+lIiWFM1Zz02XrnRPXuqN1gL HlA5bzLoGdqy+THa/jTTqsCI2KRcH7Gu5KckCu4of86NvESx6TGCkbnPmkmCY+0Cbi2X Op32eKb03p/f+I+r1LT5W/53jf4dNG93dNWBE0NdBXL+967wu2u78QOxub8mf0bKrXQL ITcA== X-Gm-Message-State: AFeK/H23NRisr5vqNNNFv4bMiFx/e2E4fAFSjrKVMj6uDObi6dB8irYkmCBS2nZGR++Fierd7lWQAu/ZEEGrdQ== X-Received: by 10.157.17.40 with SMTP id g37mr2640772ote.259.1490758647314; Tue, 28 Mar 2017 20:37:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.48.102 with HTTP; Tue, 28 Mar 2017 20:37:26 -0700 (PDT) In-Reply-To: <20170328163110.GD78849@gmail.com> References: <20170328163110.GD78849@gmail.com> From: Xin LI Date: Tue, 28 Mar 2017 20:37:26 -0700 Message-ID: Subject: Re: Build fails in libpcap with WITHOUT_INET6 To: Randy Westlund Cc: FreeBSD Current Content-Type: text/plain; charset=UTF-8 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: Wed, 29 Mar 2017 03:37:28 -0000 Thanks for reporting. I have applied a fix as r316125. On Tue, Mar 28, 2017 at 9:31 AM, Randy Westlund wrote: > Building r315872 for the Tegra (arm/armv6) board with WITHOUT_INET6 set fails > in libpcap: > >> --- klm_prot_xdr.pico --- >> cc -target armv6-gnueabihf-freebsd12.0 --sysroot=/usr/home/randy/tegra/freebs >> d-obj/arm.armv6/usr/home/randy/tegra/freebsd/tmp -B/usr/home/randy/tegra/free >> bsd-obj/arm.armv6/usr/home/randy/tegra/freebsd/tmp/usr/bin -fpic -DPIC -g -O >> -pipe -DYP -I/usr/home/randy/tegra/freebsd-obj/arm.armv6/usr/home/randy/teg >> ra/freebsd/tmp/usr/include/rpcsvc -MD -MF.depend.klm_prot_xdr.pico -MTklm_pr >> ot_xdr.pico -std=gnu99 -Wsystem-headers -Werror -Wno-pointer-sign -Wno-empty- >> body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compar >> e -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum- >> conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switc >> h -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -Qunused-arg >> uments -c klm_prot_xdr.c -o klm_prot_xdr.pico >> --- all_subdir_lib/libpcap --- >> /usr/home/randy/tegra/freebsd/contrib/libpcap/gencode.c:695:9: error: no memb >> er named 'ai' in 'struct _compiler_state' >> cstate.ai = NULL; >> ~~~~~~ ^ >> --- all_subdir_lib/librpcsvc --- >> --- mount_xdr.pico --- >> cc -target armv6-gnueabihf-freebsd12.0 --sysroot=/usr/home/randy/tegra/freebs >> d-obj/arm.armv6/usr/home/randy/tegra/freebsd/tmp -B/usr/home/randy/tegra/free >> bsd-obj/arm.armv6/usr/home/randy/tegra/freebsd/tmp/usr/bin -fpic -DPIC -g -O >> -pipe -DYP -I/usr/home/randy/tegra/freebsd-obj/arm.armv6/usr/home/randy/teg >> ra/freebsd/tmp/usr/include/rpcsvc -MD -MF.depend.mount_xdr.pico -MTmount_xdr >> .pico -std=gnu99 -Wsystem-headers -Werror -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-conver >> sion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno >> -switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -Qunused-arguments >> -c mount_xdr.c -o mount_xdr.pico >> --- all_subdir_lib/libpcap --- >> /usr/home/randy/tegra/freebsd/contrib/libpcap/gencode.c:4916:13: error: use o >> f undeclared identifier 'cstate' >> bpf_error(cstate, "direction applied to 'gateway'"); >> ^ >> /usr/home/randy/tegra/freebsd/contrib/libpcap/gencode.c:4923:11: error: use o >> f undeclared identifier 'cstate' >> switch (cstate->linktype) { >> ^ >> /usr/home/randy/tegra/freebsd/contrib/libpcap/gencode.c:4961:17: error: use o >> f undeclared identifier 'cstate' >> b1 = gen_host(cstate, **alist++, 0xffffffff, proto, Q_OR, Q_H >> OST); >> ^ >> /usr/home/randy/tegra/freebsd/contrib/libpcap/gencode.c:4963:19: error: use o >> f undeclared identifier 'cstate' >> tmp = gen_host(cstate, **alist++, 0xffffffff, proto, >> Q_OR, >> ^ >> /usr/home/randy/tegra/freebsd/contrib/libpcap/gencode.c:4972:12: error: use o >> f undeclared identifier 'cstate' >> bpf_error(cstate, "illegal modifier of 'gateway'"); >> ^ >> 6 errors generated. >> *** [gencode.o] Error code 1 >> >> make[5]: stopped in /usr/home/randy/tegra/freebsd/lib/libpcap >> 1 error >> >> make[5]: stopped in /usr/home/randy/tegra/freebsd/lib/libpcap >> *** [all_subdir_lib/libpcap] Error code 2 > >