Date: Tue, 4 Mar 2014 12:50:28 +0100 From: Luigi Rizzo <rizzo@iet.unipi.it> To: "C. L. Martinez" <carlopmart@gmail.com> Cc: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: Re: Bro doesn't builds using Message-ID: <CA%2BhQ2%2Bjn_exFd-XV7Arwvd%2Bu5zMkxjOD1M904yYkhi7h6yckJA@mail.gmail.com> In-Reply-To: <CAEjQA5JitvoCvkVMwjFXe5C89ssjoAp57RZ8L4akT9%2BmDTikBw@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
On Tue, Mar 4, 2014 at 12:11 PM, C. L. Martinez <carlopmart@gmail.com>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)
-----------------------------------------+-------------------------------
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BhQ2%2Bjn_exFd-XV7Arwvd%2Bu5zMkxjOD1M904yYkhi7h6yckJA>
