DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] pktgen wr_cksum error
@ 2016-07-11 16:09 Posadas, Emerson
  2016-07-11 18:30 ` Wiles, Keith
  0 siblings, 1 reply; 2+ messages in thread
From: Posadas, Emerson @ 2016-07-11 16:09 UTC (permalink / raw)
  To: dev

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@pktgen:~


EP

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] pktgen wr_cksum error
  2016-07-11 16:09 [dpdk-dev] pktgen wr_cksum error Posadas, Emerson
@ 2016-07-11 18:30 ` Wiles, Keith
  0 siblings, 0 replies; 2+ messages in thread
From: Wiles, Keith @ 2016-07-11 18:30 UTC (permalink / raw)
  To: Posadas, Emerson; +Cc: dev

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@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@pktgen:~
> 
> 
> EP
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-11 18:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-11 16:09 [dpdk-dev] pktgen wr_cksum error Posadas, Emerson
2016-07-11 18:30 ` Wiles, Keith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).