Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile zcount with #define USE_BURST_API #8

Closed
pavel-odintsov opened this issue May 13, 2015 · 1 comment
Closed

Can't compile zcount with #define USE_BURST_API #8

pavel-odintsov opened this issue May 13, 2015 · 1 comment

Comments

@pavel-odintsov
Copy link

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
Copy link
Member

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 #8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants