On Tue, Mar 4, 2014 at 12:11 PM, C. L. Martinez <carlopm...@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-unsubscr...@freebsd.org" > -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, ri...@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) -----------------------------------------+------------------------------- _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"