From owner-freebsd-net@FreeBSD.ORG Tue Mar 4 11:50:31 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 46426B90 for ; Tue, 4 Mar 2014 11:50:31 +0000 (UTC) Received: from mail-lb0-x230.google.com (mail-lb0-x230.google.com [IPv6:2a00:1450:4010:c04::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B0556912 for ; Tue, 4 Mar 2014 11:50:30 +0000 (UTC) Received: by mail-lb0-f176.google.com with SMTP id 10so5460598lbg.21 for ; Tue, 04 Mar 2014 03:50:28 -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=Rhm9xDcYMSnnHGu/gwuV5By9K7AcXlirUrF6vieaFmY=; b=jq7mrVE8y27qHooR1TL7O6KNuNGoICVpIZ/Rf/n4K8TDurvlDAySfppg7nc8GwWaFn qaQs3O2DMD8c2Ut/sEvvB7y6QVg82SyrBMMaXE+Dc9Up4bTEvSXcLC5onS8nUp2JuRDq U34IWZVP2v9RBX0ynH1ibMng02s+g4TA1o9ShRzSk5Pu57rQ5rXhNG2qf0wd6DFN0P8Z MZpqaCqGJ2P+4E7ZdNDJ+hchgzgJ+zC3Q7lof7kLGULlBxbK8QbLJ7q21eLHJF5rCqLO d9LGBH5KXChWHqU8ZWK31VSHK6SF+CqWYnj/p7fvixxfAKyHsKhLyTGK1tJWx2aG1ch2 qAlQ== MIME-Version: 1.0 X-Received: by 10.112.144.35 with SMTP id sj3mr1374347lbb.44.1393933828809; Tue, 04 Mar 2014 03:50:28 -0800 (PST) Sender: rizzo.unipi@gmail.com Received: by 10.115.4.162 with HTTP; Tue, 4 Mar 2014 03:50:28 -0800 (PST) In-Reply-To: References: Date: Tue, 4 Mar 2014 12:50:28 +0100 X-Google-Sender-Auth: 8CCA4retiYOa3XzC7-nFUwNRrmU Message-ID: Subject: Re: Bro doesn't builds using 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 11:50:31 -0000 On Tue, Mar 4, 2014 at 12:11 PM, C. L. Martinez wrote: > Hi all, > > Using bro netmap patch provided (), Bro 2.2 doesn't compile under > FreeBSD 10 amd64: > i am not sure if the bro patch is up to date, but likely you have the same outdated header as when you tried to build netmap-libpcap. This said, for bro you are probably better off just using it on the netmap-libpcap, there is almost no advantage in using the native API just for reading. cheers luigi > [ 77%] Building CXX object src/CMakeFiles/bro.dir/PktSrc.cc.o > /tmp/j/bro-2.2/src/PktSrc.cc:100:6: error: use of undeclared > identifier 'IS_NETMAP_DESC' > if (IS_NETMAP_DESC(pd)) > ^ > /tmp/j/bro-2.2/src/PktSrc.cc:101:22: error: use of undeclared > identifier 'nm_nextpkt' > data = last_data = nm_nextpkt((struct nm_desc *)pd, > ^ > /tmp/j/bro-2.2/src/PktSrc.cc:438:7: error: use of undeclared > identifier 'IS_NETMAP_DESC' > if (IS_NETMAP_DESC(pd)) > ^ > /tmp/j/bro-2.2/src/PktSrc.cc:439:4: error: use of undeclared > identifier 'nm_close'; did you mean 'sem_close'? > nm_close((struct nm_desc *)pd); > ^~~~~~~~ > sem_close > /usr/include/semaphore.h:52:6: note: 'sem_close' declared here > int sem_close(sem_t *); > ^ > /tmp/j/bro-2.2/src/PktSrc.cc:439:13: error: cannot initialize a > parameter of type 'sem_t *' (aka '_sem *') with an rvalue of type > 'struct nm_desc *' > nm_close((struct nm_desc *)pd); > ^~~~~~~~~~~~~~~~~~~~ > /usr/include/semaphore.h:52:23: note: passing argument to parameter here > int sem_close(sem_t *); > ^ > /tmp/j/bro-2.2/src/PktSrc.cc:479:7: error: use of undeclared > identifier 'IS_NETMAP_DESC' > if (IS_NETMAP_DESC(pd)) > ^ > /tmp/j/bro-2.2/src/PktSrc.cc:526:17: error: use of undeclared > identifier 'nm_open' > pd = (pcap_t *)nm_open(interface, getenv("NETMAP_RING_ID"), 0, 0); > ^ > /tmp/j/bro-2.2/src/PktSrc.cc:533:20: error: use of undeclared > identifier 'NETMAP_FD' > selectable_fd = NETMAP_FD(pd); > ^ > 8 errors generated. > *** Error code 1 > > Stop. > make[3]: stopped in /tmp/j/bro-2.2/build > *** Error code 1 > > Stop. > make[2]: stopped in /tmp/j/bro-2.2/build > *** Error code 1 > > Stop. > make[1]: stopped in /tmp/j/bro-2.2/build > *** Error code 1 > > Stop. > make: stopped in /tmp/j/bro-2.2 > > Do I need to add something?? > > Thanks. > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2211611 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+-------------------------------