From owner-freebsd-net@FreeBSD.ORG Tue Mar 4 16:01:37 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B70DDAF9 for ; Tue, 4 Mar 2014 16:01:37 +0000 (UTC) Received: from mail-lb0-x231.google.com (mail-lb0-x231.google.com [IPv6:2a00:1450:4010:c04::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3E0547B7 for ; Tue, 4 Mar 2014 16:01:37 +0000 (UTC) Received: by mail-lb0-f177.google.com with SMTP id z11so5645177lbi.22 for ; Tue, 04 Mar 2014 08:01:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Clj1XHsVsUvRQfgVmEgMsfoTiJtKEmRhVegvwVqZSLs=; b=q+jg2nQlCxsWZMYE33zOjT1EkwU/Nh8c4SL1Dd7rYSuahDik3BpcE9xySg8vEVIeUr VezvPLy390W7OC4AgL8h8Z+DzDqmdqfaHAoqpcEZOOnDNvtGnq6xJ3F76xEBRghhWFo7 +n2Zhmp9rL1KH67qGOjaEzfvIFZFGJ9TzaTSFwI7caVpZGLf0HyqXMtzLd2eaesVW7Ng /ynQ7kc5GItriDFmBxGPd3QMvdu6mYWc3UfSYaT/BjCmN9Qheskhct9CSCOKkAwMMMoY Q5DwvzL6fDZSDQG3EWHoCjLIpfCGgdzZc9lnTaIkAPzLtktfxLwEp3cUUbgrBXljcrla m2iQ== MIME-Version: 1.0 X-Received: by 10.112.24.172 with SMTP id v12mr126433lbf.74.1393948895392; Tue, 04 Mar 2014 08:01:35 -0800 (PST) Sender: rizzo.unipi@gmail.com Received: by 10.115.4.162 with HTTP; Tue, 4 Mar 2014 08:01:35 -0800 (PST) In-Reply-To: References: Date: Tue, 4 Mar 2014 17:01:35 +0100 X-Google-Sender-Auth: 1ie1Av3y_ya6dAk-fdeJ8MZ9LiA Message-ID: Subject: Re: netmap-libpcap doesn't installs under FreeBSD10 From: Luigi Rizzo To: "C. L. Martinez" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2014 16:01:37 -0000 On Tue, Mar 4, 2014 at 1:00 PM, C. L. Martinez wrote: > On Tue, Mar 4, 2014 at 11:45 AM, Luigi Rizzo wrote: > > > > > > > > On Tue, Mar 4, 2014 at 11:27 AM, C. L. Martinez > > wrote: > >> > >> Hi all, > >> > >> When I try to compile netmap-libpcap, these errors appears: > >> > >> root@plzfsiem01:/tmp/j/netmap-libpcap # make > >> cc -fpic -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -g -O2 > >> -c ./pcap-bpf.c > >> cc -fpic -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -g -O2 > >> -c ./pcap-netmap.c > >> ./pcap-netmap.c:117:9: warning: implicit declaration of function > >> 'nm_dispatch' is invalid in C99 [-Wimplicit-function-declaration] > >> ret = nm_dispatch((void *)d, cnt, (void > >> *)pcap_netmap_filter, (void *)p); > > > > > > almost surely you have an old version of netmap.h and netmap_user.h > > in /usr/include/net > > > > You should update to the version in stable/10 (at the very least > > manually copy these two headers) > > > > cheers > > luigi > > Thanks Luigi. Only netmap.h and netmap_user.h?? Can I use default > files provided by FreeBSD 10-RELEASE under sys/dev/netmap or do I need > to update them?? > as i said, you need to update the files. you will also need the updated netmap kernel module so in the end it might be worthwhile upgrading to stable/10 cheers luigi