From owner-freebsd-ports@FreeBSD.ORG Wed Jun 13 14:11:59 2012 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8D9171065676 for ; Wed, 13 Jun 2012 14:11:59 +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 DBE758FC16 for ; Wed, 13 Jun 2012 14:11:58 +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 RAA26348 for ; Wed, 13 Jun 2012 17:11:57 +0300 (EEST) (envelope-from avg@FreeBSD.org) Message-ID: <4FD89FAD.2090007@FreeBSD.org> Date: Wed, 13 Jun 2012 17:11:57 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120610 Thunderbird/13.0 MIME-Version: 1.0 To: FreeBSD Ports References: <4F252CFE.3000707@FreeBSD.org> <4F2FC948.9050807@FreeBSD.org> In-Reply-To: <4F2FC948.9050807@FreeBSD.org> X-Enigmail-Version: 1.4.2 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: Wed, 13 Jun 2012 14:11:59 -0000 on 06/02/2012 14:36 Andriy Gapon said the following: > > This seems to still be an issue. This is still 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