ntop / PF_RING

High-speed packet processing framework
http://www.ntop.org
GNU Lesser General Public License v2.1
2.67k stars 353 forks source link

Can't compile zcount with #define USE_BURST_API #8

Closed pavel-odintsov closed 9 years ago

pavel-odintsov commented 9 years ago

Hello!

Please fix zcount code looks like you need add i variable definition on line 219.

make
gcc -O2 -Wall -march=corei7 -mtune=corei7  -I../lib -I../../kernel -c zcount.c -o zcount.o
zcount.c: In function ‘packet_consumer_thread’:
zcount.c:238:9: error: ‘n’ undeclared (first use in this function)
     if((n = pfring_zc_recv_pkt_burst(zq, buffers, BURST_LEN, wait_for_packet)) > 0) {
         ^
zcount.c:238:9: note: each undeclared identifier is reported only once for each function it appears in
zcount.c:241:14: error: ‘i’ undeclared (first use in this function)
         for (i = 0; i < n; i++) 
              ^
Makefile:31: recipe for target 'zcount.o' failed
make: *** [zcount.o] Error 1
cardigliano commented 9 years ago

Fixed

On 13 May 2015, at 13:02, Pavel Odintsov notifications@github.com wrote:

Hello!

Please fix zcount code looks like you need add i variable definition on line 219.

make gcc -O2 -Wall -march=corei7 -mtune=corei7 -I../lib -I../../kernel -c zcount.c -o zcount.o zcount.c: In function ‘packet_consumer_thread’: zcount.c:238:9: error: ‘n’ undeclared (first use in this function) if((n = pfring_zc_recv_pkt_burst(zq, buffers, BURST_LEN, wait_for_packet)) > 0) { ^ zcount.c:238:9: note: each undeclared identifier is reported only once for each function it appears in zcount.c:241:14: error: ‘i’ undeclared (first use in this function) for (i = 0; i < n; i++) ^ Makefile:31: recipe for target 'zcount.o' failed make: *\ [zcount.o] Error 1 — Reply to this email directly or view it on GitHub https://github.com/ntop/PF_RING/issues/8.