[dpdk-dev] pktgen wr_cksum error

Wiles, Keith keith.wiles at intel.com
Mon Jul 11 20:30:03 CEST 2016


the line is using C99 option of ‘for (int i = 0; i < X; i++) need to move the declare of the int i out to the function instead of in the for loop.
I have fixed his already, but will make a special patch to update this problem when i can.

> On Jul 11, 2016, at 9:09 AM, Posadas, Emerson <emerson.posadas at intel.com> wrote:
> 
> Hello
> 
> I'm trying to build pktgen-v3.0.05 with dpdk 16.04 for with RTE_TARGET x86_64-native-linuxapp-gcc. Seemts that the build is failing due to an error on wr_cksum.c. Is something I can try to fix this error and build pktgen successfully? Not sure if others have had this error before.
> 
> # make
> == lib
> == common
>  CC wr_cksum.o
> In file included from /root/pktgen-v3.0.05/lib/common/wr_cksum.c:102:0:
> /root/pktgen-v3.0.05/lib/common/wr_mbuf.h: In function '__pktmbuf_alloc_noreset':
> /root/pktgen-v3.0.05/lib/common/wr_mbuf.h:47:2: error: 'for' loop initial declarations are only allowed in C99 mode
> /root/pktgen-v3.0.05/lib/common/wr_mbuf.h:47:2: note: use option -std=c99 or -std=gnu99 to compile your code
> make[3]: *** [wr_cksum.o] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [common] Error 2
> make: *** [lib] Error 2
> root at pktgen:~
> 
> 
> EP
> 



More information about the dev mailing list