p0f - problem z kompilacja
: 18 kwietnia 2008, 14:26
Próbuję skomplilować ten program ale pojawiają się błędy których nie rozumiem, standardowe ./configure wyświetla - "Nie ma takiego pliku ani katalogu" , make & make install również sypie errorami, w katalogu tego programu znalazłęm skrypt Build który jak mniemam służy do instalacji jednak on też wyświetla mi błędy:
Gnu make posiadam więc nierozumiem o co chodzi, w goglach znalazłem takie coś - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=437728 , ale niepotrafię zastosować podane polecenia ld żeby zadziałało.
Proszę o pomoc.
ps. programik do ściągnięcia stąd - http://lcamtuf.coredump.cx/p0f.tgz
Kod: Zaznacz cały
./Build all
Your system type is: Linux
Please help with p0f 2:
[url]http://lcamtuf.coredump.cx/p0f-help/[/url]
GNU make not found; failing back to regular (BSD?) make.
make[1]: Wej�cie do katalogu `/home/inf_sto_0/maq/p0f/p0f'
gcc -O3 -Wall -fomit-frame-pointer -funroll-loops -DUSE_BPF=\"net/bpf.h\" -I/usr/include/pcap -I/usr/local/include/pcap -I/usr/local/include -o p0f p0f.c p0f-query.c crc32.c -lpcap
p0f.c:36:18: pcap.h: Nie ma takiego pliku ani katalogu
p0f.c:40:17: net/bpf.h: Nie ma takiego pliku ani katalogu
p0f.c:63: error: syntax error before '*' token
p0f.c:63: warning: type defaults to `int' in declaration of `dumper'
p0f.c:63: warning: data definition has no type or storage class
p0f.c:143: error: syntax error before '*' token
p0f.c:143: warning: type defaults to `int' in declaration of `pt'
p0f.c:143: warning: data definition has no type or storage class
p0f.c: In function `die_nicely':
p0f.c:155: warning: implicit declaration of function `pcap_close'
p0f.c:156: warning: implicit declaration of function `pcap_dump_close'
p0f.c: In function `set_header_len':
p0f.c:179: error: `DLT_SLIP' undeclared (first use in this function)
p0f.c:179: error: (Each undeclared identifier is reported only once
p0f.c:179: error: for each function it appears in.)
p0f.c:180: error: `DLT_RAW' undeclared (first use in this function)
p0f.c:186: error: `DLT_NULL' undeclared (first use in this function)
p0f.c:188: error: `DLT_EN10MB' undeclared (first use in this function)
p0f.c:204: error: `DLT_PPP' undeclared (first use in this function)
p0f.c:206: error: `DLT_IEEE802' undeclared (first use in this function)
p0f.c: At top level:
p0f.c:1253: warning: `struct pcap_pkthdr' declared inside parameter list
p0f.c:1253: warning: its scope is only this definition or declaration, which is probably not what you want
p0f.c: In function `parse':
p0f.c:1270: warning: implicit declaration of function `pcap_dump'
p0f.c:1273: error: dereferencing pointer to incomplete type
p0f.c:1273: error: dereferencing pointer to incomplete type
p0f.c:1298: error: dereferencing pointer to incomplete type
p0f.c: In function `main':
p0f.c:1501: error: `PCAP_ERRBUF_SIZE' undeclared (first use in this function)
p0f.c:1680: warning: implicit declaration of function `pcap_open_offline'
p0f.c:1680: warning: assignment makes pointer from integer without a cast
p0f.c:1699: warning: implicit declaration of function `pcap_lookupdev'
p0f.c:1699: warning: assignment makes pointer from integer without a cast
p0f.c:1708: warning: implicit declaration of function `pcap_open_live'
p0f.c:1708: warning: assignment makes pointer from integer without a cast
p0f.c:1712: warning: implicit declaration of function `pcap_datalink'
p0f.c:1714: warning: implicit declaration of function `pcap_compile'
p0f.c:1716: warning: implicit declaration of function `pcap_perror'
p0f.c:1733: warning: implicit declaration of function `pcap_setfilter'
p0f.c:1736: warning: implicit declaration of function `pcap_dump_open'
p0f.c:1736: warning: assignment makes pointer from integer without a cast
p0f.c:1800: warning: implicit declaration of function `gettimeofday'
p0f.c:1818: warning: implicit declaration of function `pcap_fileno'
p0f.c:1841: warning: implicit declaration of function `pcap_dispatch'
p0f.c:1841: error: `pcap_handler' undeclared (first use in this function)
p0f.c:1872: warning: implicit declaration of function `pcap_loop'
p0f.c:1501: warning: unused variable `errbuf'
p0f.c: At top level:
p0f.c:144: error: storage size of `flt' isn't known
make[1]: *** [p0f] B��d 1
make[1]: Opuszczenie katalogu `/home/inf_sto_0/maq/p0f/p0f'
make: *** [all] B��d 2
Proszę o pomoc.
ps. programik do ściągnięcia stąd - http://lcamtuf.coredump.cx/p0f.tgz