jolausa

Untitled

Jan 10th, 2018
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. This is one of the compilation errors when executing ./setup.sh in lua-trafficgen repo:
  2.  
  3. /root/lua-trafficgen/MoonGen/libmoon/deps/dpdk/lib/librte_eal/linuxapp/eal/eal_memory.c:1710:3: error: 'size' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  4. munmap(hp, size);
  5. ^~~~~~~~~~~~~~~~
  6.  
  7. Looking at git log of /lua-trafficgen/MoonGen/ it seems that the last commit is from 2016
  8. commit 38d70bbfd457705f334d14089d0338fcdb3c369d (HEAD)
  9. Author: Paul Emmerich <[email protected]>
  10. Date: Wed Nov 2 14:16:03 2016 +0100
  11.  
  12. move software rate control from libmoon to moongen
  13.  
  14.  
  15.  
  16. This is the patch that fixes that bug: http://dpdk.org/dev/patchwork/patch/15922/
  17.  
  18. Looking at MoonGen repo and running the build.sh command, dpdk includes a recent version of eal_memory.c where the line
  19. off_t size = 0;
  20. is included.
Advertisement
Add Comment
Please, Sign In to add comment