From owner-freebsd-ports@FreeBSD.ORG Mon Feb 6 12:36:27 2012 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA95D1065677; Mon, 6 Feb 2012 12:36:27 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id E5F6F8FC14; Mon, 6 Feb 2012 12:36:26 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA29223; Mon, 06 Feb 2012 14:36:24 +0200 (EET) (envelope-from avg@FreeBSD.org) Message-ID: <4F2FC948.9050807@FreeBSD.org> Date: Mon, 06 Feb 2012 14:36:24 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20120111 Thunderbird/9.0 MIME-Version: 1.0 To: FreeBSD Ports , Martin Wilke References: <4F252CFE.3000707@FreeBSD.org> In-Reply-To: <4F252CFE.3000707@FreeBSD.org> X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: Re: net/vde2: freebsd10 and gcc 4.6 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Feb 2012 12:36:27 -0000 This seems to still be an issue. on 29/01/2012 13:26 Andriy Gapon said the following: > > At least on FreeBSD 10 with gcc 4.6 as a ports compiler I need the following > patch to compile net/vde2: > --- src/vde_pcapplug.c.orig 2012-01-29 13:06:10.495087022 +0200 > +++ src/vde_pcapplug.c 2012-01-29 13:11:03.344097090 +0200 > @@ -32,7 +32,6 @@ > #include > #define _GNU_SOURCE > #include > -#include > #include > > #include > @@ -41,8 +40,9 @@ > #include > > #ifdef VDE_FREEBSD > -#include > +#include > #endif > +#include > > #if defined(VDE_DARWIN) || defined(VDE_FREEBSD) > # if defined HAVE_SYSLIMITS_H > > > Explanation: > - without including net/bpf.h I get compiler errors for BIOCSHDRCMPLT, > BIOCIMMEDIATE and BIOCFEEDBACK > - we don't need sys/socket.h under VDE_FREEBSD, because it is already included > unconditionally earlier in the file > - pcap.h inclusion has to be after net/bpf.h, because otherwise pcap/bpf.h > redefines some definitions from net/bpf.h > > P.S. my pcap.h comes from libpcap-1.2.1 -- Andriy Gapon