Hi all,

 Using bro netmap patch provided (), Bro 2.2 doesn't compile under
FreeBSD 10 amd64:

[ 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"

Reply via email to