Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Mar 2014 11:11:59 +0000
From:      "C. L. Martinez" <carlopmart@gmail.com>
To:        freebsd-net@freebsd.org
Subject:   Bro doesn't builds using
Message-ID:  <CAEjQA5JitvoCvkVMwjFXe5C89ssjoAp57RZ8L4akT9%2BmDTikBw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEjQA5JitvoCvkVMwjFXe5C89ssjoAp57RZ8L4akT9%2BmDTikBw>