From owner-freebsd-ports@FreeBSD.ORG Sun Jan 29 11:44:25 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 697BD106566B; Sun, 29 Jan 2012 11:44:25 +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 86DDA8FC13; Sun, 29 Jan 2012 11:44:24 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id NAA02817; Sun, 29 Jan 2012 13:26:57 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1RrSuP-000Jy2-0b; Sun, 29 Jan 2012 13:26:57 +0200 Message-ID: <4F252CFE.3000707@FreeBSD.org> Date: Sun, 29 Jan 2012 13:26:54 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111222 Thunderbird/9.0 MIME-Version: 1.0 To: FreeBSD Ports , Martin Wilke X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=X-VIET-VPS Content-Transfer-Encoding: 7bit Cc: Subject: 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: Sun, 29 Jan 2012 11:44:25 -0000 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