plz i want your help in installing groovenet simulator, this is the website of
program: www.seas.upenn.edu/~rahulm/Research/GrooveNet/
and contain also PDF file explain steps of installation,
i use ubuntu 7.10 and i follow the steps of installion and appear to me alot of
problems,the last problem that i can't solve it is "when i build the program
with make command":
WAVEapi.cpp:30:18: error: pcap.h: No such file or directory
WAVEapi.cpp:31:22: error: pcap-int.h: No such file or directory
WAVEapi.cpp:115: error: expected constructor, destructor, or type conversion
before '*' token
WAVEapi.cpp:248: error: 'Txconn' was not declared in this scope
WAVEapi.cpp:427: error: 'pcap_t' was not declared in this scope
WAVEapi.cpp:427: error: expected primary-expression before ')' token
WAVEapi.cpp:427: error: 'pcap_sendpacket' was not declared in this scope
WAVEapi.cpp:575: error: 'Rxconn' was not declared in this scope
WAVEapi.cpp:575: error: 'pcap_next_ex' was not declared in this scope
WAVEapi.cpp:581: error: invalid use of undefined type 'struct pcap_pkthdr'
WAVEapi.cpp:572: error: forward declaration of 'struct pcap_pkthdr'
WAVEapi.cpp:785: error: 'pcap_close' was not declared in this scope
WAVEapi.cpp:1014: error: 'PCAP_ERRBUF_SIZE' was not declared in this scope
WAVEapi.cpp:1016: error: 'Txconn' was not declared in this scope
WAVEapi.cpp:1016: error: 'Rxconn' was not declared in this scope
WAVEapi.cpp:1022: error: 'errbuf' was not declared in this scope
WAVEapi.cpp:1022: error: 'pcap_open_live' was not declared in this scope
WAVEapi.cpp:1029: error: 'pcap_setnonblock' was not declared in this scope
make: *** [WAVEapi.o] Error 1
MY Solution:
is to install install libpcap by using the following 2 commands:
sudo wget www.tcpdump.org/release/libpcap-0.9.8.tar.gz "to download this
file from internet"
sudo tar zxvf libpcap-0.9.8.tar.gz "to extract the file"
and have the following errors and i ignore warnings:
WAVEapi.cpp:31:22: error: pcap-int.h: No such file or directory
"although i have pcap-int.h when i extract libpcap file, where appear the
following when extract (libpcap-0.9.8/./pcap-int.h)
WAVEapi.cpp:427: error: 'pcap_sendpacket' was not declared in this scope
WAVEapi.cpp:575: error: 'pcap_next_ex' was not declared in this scope
WAVEapi.cpp:1022: error: invalid conversion from 'const char*' to 'char*'
WAVEapi.cpp:1022: error: initializing argument 1 of 'pcap_t*
pcap_open_live(char*, int, int, int, char*)'
make: *** [WAVEapi.o] Error 1
PLZ i want your helps i need this program very much, i wait your helps and
solutions