From owner-freebsd-current@FreeBSD.ORG Sat Oct 20 19:34:27 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A00CC16A46C for ; Sat, 20 Oct 2007 19:34:27 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.174]) by mx1.freebsd.org (Postfix) with ESMTP id E6AE113C45A for ; Sat, 20 Oct 2007 19:32:15 +0000 (UTC) (envelope-from max@love2party.net) Received: from amd64.laiers.local (dslb-088-066-041-121.pools.arcor-ip.net [88.66.41.121]) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis) id 0ML31I-1IjJxI0j7q-00081o; Sat, 20 Oct 2007 21:25:52 +0200 From: Max Laier Organization: FreeBSD To: freebsd-current@freebsd.org Date: Sat, 20 Oct 2007 21:25:40 +0200 User-Agent: KMail/1.9.7 References: <20071021033505.48fec4a7.nork@FreeBSD.org> In-Reply-To: <20071021033505.48fec4a7.nork@FreeBSD.org> X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<=?utf-8?q?=25=7D*=5FBD=0A=09U=5For=3D=5CmOZf764=26nYj=3DJYbR1PW0ud?=>|!~,,CPC.1-D$FG@0h3#'5"k{V]a~.<=?utf-8?q?mZ=7D44=23Se=7Em=0A=09Fe=7E=5C=5DX5B=5D=5Fxj?=(ykz9QKMw_l0C2AQ]}Ym8)fU MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart7961610.jzLCfHT4SY"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200710202125.50278.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1+S3Hnes7T9BAVAsFmClcgWGbDRgO+YwMTnoYf 4I5in1Wybd5n9a+nuMgKHCQquOChRySXHWUxsCk9BAjPiQzTog UBV0IJeJZttfc/bM3CCeX5MIXvAnzkHMf36gv0jqpw= Cc: ports@freebsd.org, Norikatsu Shigemura Subject: Re: new imported libpcap has net/bpf.h handling issue X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Sat, 20 Oct 2007 19:34:27 -0000 --nextPart7961610.jzLCfHT4SY Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 20 October 2007, Norikatsu Shigemura wrote: > I tried to install ports/net/pchar on 8-current machine. And > I got following compiling error message:-(. > > c++ -O -fno-strict-aliasing -pipe -march=3Dpentium3 -I. -DSIZEOF_BOOL=3D1 > -DHAVE_SOCKLEN_T=3D1 -DSTDC_HEADERS=3D1 -DHAVE_UNISTD_H=3D1 > -DHAVE_STRINGS_H=3D1 -DHAVE_SOCKADDR_SA_LEN=3D1 -DHAVE_HERROR=3D1 > -DHAVE_SNPRINTF=3D1 -DHAVE_LIBM=3D1 -DHAVE_IPV6=3D1 -DHAVE_PCAP=3D1 > -DHAVE_LIBPCAP=3D1 -DHAVE_BPF=3D1 -c Pctest.cc -o Pctest.o Pctest.cc: In > constructor 'Pctest::Pctest()': > Pctest.cc:103: error: 'BIOCIMMEDIATE' was not declared in this scope > > So I research this issue. As the result, I found a issue which > is that new pcap.h doesn't #include . > > I don't have any idea to fix this issue. Anyone, please fix > this issue:-). I'm somewhat reluctant to apply this as I don't think it's a good idea to=20 have that kind of namespace pollution in the pcap header. If you want to=20 use bpf directly, you should include the header yourself. As this behavior is verbatim from the vendor, code that doesn't include=20 sys/bpf.h when it needs it isn't portable and should be fixed, anyhow. This of course is just my reading of things and you can convince me=20 otherwise. If a ton of ports break, we most certainly should apply the=20 bandaid. > --- src/contrib/libpcap/pcap.h 2006/09/04 19:54:21 1.12 > +++ src/contrib/libpcap/pcap.h 2007/10/16 02:07:55 1.13 > @@ -32,7 +32,7 @@ > * SUCH DAMAGE. > * > * $FreeBSD$ > - * @(#) $Header: /home/ncvs/src/contrib/libpcap/pcap.h,v 1.12 > 2006/09/04 19:54:21 sam Exp $ (LBL) + * @(#) $Header: > /home/ncvs/src/contrib/libpcap/pcap.h,v 1.13 2007/10/16 02:07:55 mlaier > Exp $ (LBL) */ > > #ifndef lib_pcap_h > @@ -41,7 +41,9 @@ > #include > #include > > -#include > +#ifndef PCAP_DONT_INCLUDE_PCAP_BPF_H > +#include > +#endif > > #include =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart7961610.jzLCfHT4SY Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBHGlY+XyyEoT62BG0RAp3nAJ44oZVRE0RDf5mIDo23j4b/mBvxfQCePPhj VI6uDdr3beua2oF4NaS4J3E= =4LsI -----END PGP SIGNATURE----- --nextPart7961610.jzLCfHT4SY--