Skip to content

Instantly share code, notes, and snippets.

@archey
Created May 12, 2017 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save archey/07a79b85d446c2d2532ff46bb5e5c4f0 to your computer and use it in GitHub Desktop.
Save archey/07a79b85d446c2d2532ff46bb5e5c4f0 to your computer and use it in GitHub Desktop.
Building trafgen:
LEX trafgen_lexer.l
YAAC trafgen_parser.y
CC xmalloc.c
CC die.c
CC ioops.c
CC privs.c
CC proc.c
CC dev.c
CC irq.c
CC link.c
CC str.c
CC sig.c
CC sock.c
CC ring_tx.c
CC ring.c
CC timer.c
CC sysctl.c
CC cpp.c
CC pcap_sg.c
CC pcap_rw.c
CC pcap_mm.c
CC iosched.c
CC trafgen_proto.c
CC trafgen_l2.c
CC trafgen_l3.c
CC trafgen_l4.c
CC trafgen/trafgen_lexer.yy.c
CC trafgen/trafgen_parser.tab.c
CC trafgen.c
In file included from pcap_io.h:19:0,
from trafgen.c:59:
/usr/include/linux/if_arp.h:113:8: error: redefinition of 'struct arpreq'
struct arpreq {
^~~~~~
In file included from /usr/include/netinet/if_ether.h:108:0,
from /usr/include/net/ethernet.h:10,
from trafgen.c:23:
/usr/include/net/if_arp.h:99:8: note: originally defined here
struct arpreq {
^~~~~~
In file included from pcap_io.h:19:0,
from trafgen.c:59:
/usr/include/linux/if_arp.h:121:8: error: redefinition of 'struct arpreq_old'
struct arpreq_old {
^~~~~~~~~~
In file included from /usr/include/netinet/if_ether.h:108:0,
from /usr/include/net/ethernet.h:10,
from trafgen.c:23:
/usr/include/net/if_arp.h:107:8: note: originally defined here
struct arpreq_old {
^~~~~~~~~~
In file included from pcap_io.h:19:0,
from trafgen.c:59:
/usr/include/linux/if_arp.h:141:8: error: redefinition of 'struct arphdr'
struct arphdr {
^~~~~~
In file included from /usr/include/netinet/if_ether.h:108:0,
from /usr/include/net/ethernet.h:10,
from trafgen.c:23:
/usr/include/net/if_arp.h:22:8: note: originally defined here
struct arphdr {
^~~~~~
make: *** [Makefile:185: trafgen/trafgen.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment