[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Errore durante la compilazione del programma ArpAlert



Ciao,
ho trovato su una rivista la descrizione del programma arpalert e me lo sono scaricato.
Ho lanciato il comando ./configure ed è andato tutto bene quando invece lancio "make" il programma mi va in errore.
Ecco cosa esce:

debian:/home/simone/ArpAlert/arpalert-0.4.14# ./configure
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking sys/syslog.h usability... yes
checking sys/syslog.h presence... yes
checking for sys/syslog.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking pcap.h usability... no
checking pcap.h presence... no
checking for pcap.h... no
dont found pcap.h

debian:/home/simone/ArpAlert/arpalert-0.4.14# make
gcc -Wall -O2 -DCONFIG_FILE=\"/home/thierry/Documents/creation/langages_compiles/ARPALERT/install/etc/arpalert/arpalert.conf\" -DPID_FILE=\"/home/thierry/Documents/creation/langages_compiles/ARPALERT/install/var/run/arpalert.pid\" -c -o capture.o ./capture.c
capture.c:1:18: pcap.h: No such file or directory
capture.c:50: error: syntax error before '*' token
capture.c:50: warning: type defaults to `int' in declaration of `idcap'
capture.c:50: warning: data definition has no type or storage class
capture.c:52: warning: `struct pcap_pkthdr' declared inside parameter list
capture.c:52: warning: its scope is only this definition or declaration, which is probably not what you want
capture.c: In function `cap_init':
capture.c:55: error: `PCAP_ERRBUF_SIZE' undeclared (first use in this function)
capture.c:55: error: (Each undeclared identifier is reported only once
capture.c:55: error: for each function it appears in.)
capture.c:59: error: storage size of `bp' isn't known
capture.c:83: warning: implicit declaration of function `pcap_lookupdev'
capture.c:83: warning: assignment makes pointer from integer without a cast
capture.c:162: warning: implicit declaration of function `pcap_open_live'
capture.c:162: warning: assignment makes pointer from integer without a cast
capture.c:167: warning: implicit declaration of function `pcap_datalink'
capture.c:167: error: `DLT_EN10MB' undeclared (first use in this function)
capture.c:173: warning: implicit declaration of function `pcap_compile'
capture.c:174: warning: implicit declaration of function `pcap_geterr'
capture.c:179: warning: implicit declaration of function `pcap_setfilter'
capture.c:55: warning: unused variable `err'
capture.c:59: warning: unused variable `bp'
capture.c: In function `cap_sniff':
capture.c:191: warning: implicit declaration of function `pcap_loop'
capture.c: At top level:
capture.c:199: warning: `struct pcap_pkthdr' declared inside parameter list
capture.c:199: error: conflicting types for `callback'
capture.c:52: error: previous declaration of `callback'
make: *** [capture.o] Error 1
debian:/home/simone/ArpAlert/arpalert-0.4.14#

Come posso risolvere il problema?
ciao



Reply to: