ďťż
 
 
   p0f - problem z kompilacja
 
 

Tematy

 
    
 

 

 

 

p0f - problem z kompilacja





maq - 18-04-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:
./Build all
Your system type is: Linux

Please help with p0f 2:
  http://lcamtuf.coredump.cx/p0f-help/

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 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



pavbaranov - 18-04-2008 14:42
Sorry, że spytam głupio, ale dlaczego nie chcesz skorzystać z któregoś z tych pakietów:
http://packages.debian.org/search?keywords=p0f&searchon=names&suite=all&section=all ?



maq - 18-04-2008 14:44
Skorzystałem, ale chciałem poznać rozwiązanie tego błędu ;)

Pozatym na shellu nie mam prawd do dpkg a kompilowac i uruchamiac moge.



Yampress - 18-04-2008 18:39
brakuje takiej biblioteki libpcap



Bodzio - 18-04-2008 20:35
konkretnie libpcap-dev - przy ręcznej kompilacji potrzebne sa paczki z końcówką dev (developerskie), inaczej kompilator ich nie zobaczy



maq - 19-04-2008 00:21
ok działą.
teraz został tylko jeden błąd :
GNU make not found; failing back to regular (BSD?) make. gnu make mam wiec o co chodzi ? :)



Bodzio - 19-04-2008 10:49
pmake, ale nie jestem pewien :-?
wklej więcej linijek



maq - 19-04-2008 11:57

pmake, ale nie jestem pewien :-?
wklej więcej linijek
Kiedy zacząłem się bawić kolejny raz na świeżym katalogu przy ./Build wywala: maq@galaz:~/download/p0f$ ./Build
Your system type is: Linux

Please help with p0f 2:
  http://lcamtuf.coredump.cx/p0f-help/

GNU make not found; failing back to regular (BSD?) make.
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
In file included from p0f.c:53:
mtu.h:26: warning: pointer targets in initialization differ in signedness
mtu.h:27: warning: pointer targets in initialization differ in signedness
mtu.h:28: warning: pointer targets in initialization differ in signedness
mtu.h:29: warning: pointer targets in initialization differ in signedness
mtu.h:30: warning: pointer targets in initialization differ in signedness
mtu.h:31: warning: pointer targets in initialization differ in signedness
mtu.h:32: warning: pointer targets in initialization differ in signedness
mtu.h:33: warning: pointer targets in initialization differ in signedness
mtu.h:34: warning: pointer targets in initialization differ in signedness
mtu.h:35: warning: pointer targets in initialization differ in signedness
mtu.h:36: warning: pointer targets in initialization differ in signedness
mtu.h:37: warning: pointer targets in initialization differ in signedness
mtu.h:38: warning: pointer targets in initialization differ in signedness
mtu.h:39: warning: pointer targets in initialization differ in signedness
mtu.h:40: warning: pointer targets in initialization differ in signedness
mtu.h:41: warning: pointer targets in initialization differ in signedness
mtu.h:42: warning: pointer targets in initialization differ in signedness
mtu.h:43: warning: pointer targets in initialization differ in signedness
mtu.h:44: warning: pointer targets in initialization differ in signedness
mtu.h:45: warning: pointer targets in initialization differ in signedness
mtu.h:46: warning: pointer targets in initialization differ in signedness
mtu.h:47: warning: pointer targets in initialization differ in signedness
mtu.h:48: warning: pointer targets in initialization differ in signedness
mtu.h:49: warning: pointer targets in initialization differ in signedness
mtu.h:50: warning: pointer targets in initialization differ in signedness
mtu.h:51: warning: pointer targets in initialization differ in signedness
mtu.h:52: warning: pointer targets in initialization differ in signedness
mtu.h:53: warning: pointer targets in initialization differ in signedness
mtu.h:54: warning: pointer targets in initialization differ in signedness
mtu.h:55: warning: pointer targets in initialization differ in signedness
mtu.h:56: warning: pointer targets in initialization differ in signedness
mtu.h:57: warning: pointer targets in initialization differ in signedness
mtu.h:58: warning: pointer targets in initialization differ in signedness
mtu.h:59: warning: pointer targets in initialization differ in signedness
mtu.h:60: warning: pointer targets in initialization differ in signedness
mtu.h:61: warning: pointer targets in initialization differ in signedness
mtu.h:62: warning: pointer targets in initialization differ in signedness
mtu.h:63: warning: pointer targets in initialization differ in signedness
mtu.h:64: warning: pointer targets in initialization differ in signedness
In file included from p0f.c:54:
tos.h:51: warning: pointer targets in initialization differ in signedness
tos.h:52: warning: pointer targets in initialization differ in signedness
tos.h:53: warning: pointer targets in initialization differ in signedness
tos.h:54: warning: pointer targets in initialization differ in signedness
tos.h:55: warning: pointer targets in initialization differ in signedness
tos.h:56: warning: pointer targets in initialization differ in signedness
tos.h:57: warning: pointer targets in initialization differ in signedness
tos.h:58: warning: pointer targets in initialization differ in signedness
tos.h:59: warning: pointer targets in initialization differ in signedness
tos.h:60: warning: pointer targets in initialization differ in signedness
tos.h:61: warning: pointer targets in initialization differ in signedness
tos.h:62: warning: pointer targets in initialization differ in signedness
tos.h:63: warning: pointer targets in initialization differ in signedness
tos.h:64: warning: pointer targets in initialization differ in signedness
p0f.c:112: warning: pointer targets in initialization differ in signedness
p0f.c: In function ‘collide’:
p0f.c:304: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
p0f.c:304: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
p0f.c:304: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
p0f.c:304: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness
p0f.c:304: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
p0f.c:304: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
p0f.c:304: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness
p0f.c:304: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
p0f.c:304: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
p0f.c:304: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness
p0f.c:304: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
p0f.c:304: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness
p0f.c:305: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
p0f.c:305: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
p0f.c:305: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
p0f.c:305: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness
p0f.c:305: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
p0f.c:305: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
p0f.c:305: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness
p0f.c:305: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
p0f.c:305: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
p0f.c:305: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness
p0f.c:305: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
p0f.c:305: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness
p0f.c: In function ‘load_config’:
p0f.c:510: warning: pointer targets in passing argument 1 of ‘fopen’ differ in signedness
p0f.c:516: warning: pointer targets in passing argument 1 of ‘load_config’ differ in signedness
p0f.c:517: warning: pointer targets in passing argument 1 of ‘perror’ differ in signedness
p0f.c:521: warning: pointer targets in passing argument 1 of ‘fgets’ differ in signedness
p0f.c:521: warning: pointer targets in assignment differ in signedness
p0f.c:530: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
p0f.c:536: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
p0f.c:544: warning: pointer targets in passing argument 1 of ‘sscanf’ differ in signedness
p0f.c:552: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness
p0f.c:564: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
p0f.c:564: warning: pointer targets in passing argument 1 of ‘__strdup’ differ in signedness
p0f.c:564: warning: pointer targets in assignment differ in signedness
p0f.c:565: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
p0f.c:565: warning: pointer targets in passing argument 1 of ‘__strdup’ differ in signedness
p0f.c:565: warning: pointer targets in assignment differ in signedness
p0f.c:576: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness
p0f.c:580: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness
p0f.c:582: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness
p0f.c:585: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness
p0f.c:623: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness
p0f.c:628: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness
p0f.c:636: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness
p0f.c:641: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness
p0f.c:647: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness
p0f.c: In function ‘lookup_link’:
p0f.c:746: warning: pointer targets in return differ in signedness
p0f.c:757: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
p0f.c: In function ‘put_date’:
p0f.c:789: warning: pointer targets in assignment differ in signedness
p0f.c:791: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
p0f.c:791: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
p0f.c: In function ‘grab_name’:
p0f.c:827: warning: pointer targets in return differ in signedness
p0f.c:829: warning: pointer targets in assignment differ in signedness
p0f.c:829: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
p0f.c:829: warning: pointer targets in return differ in signedness
p0f.c:830: warning: pointer targets in return differ in signedness
p0f.c: In function ‘main’:
p0f.c:1519: warning: pointer targets in assignment differ in signedness
p0f.c:1521: warning: pointer targets in assignment differ in signedness
p0f.c:1523: warning: pointer targets in assignment differ in signedness
p0f.c:1525: warning: pointer targets in assignment differ in signedness
p0f.c:1544: warning: pointer targets in assignment differ in signedness
p0f.c:1546: warning: pointer targets in assignment differ in signedness
p0f.c:1566: warning: pointer targets in assignment differ in signedness
p0f.c:1570: warning: pointer targets in assignment differ in signedness
p0f.c:1574: warning: pointer targets in assignment differ in signedness
p0f.c:1598: warning: pointer targets in passing argument 1 of ‘usage’ differ in signedness
p0f.c:1645: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
p0f.c:1650: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
p0f.c:1650: warning: pointer targets in passing argument 1 of ‘__strdup’ differ in signedness
p0f.c:1650: warning: pointer targets in initialization differ in signedness
p0f.c:1651: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
p0f.c:1671: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness
p0f.c:1672: warning: pointer targets in passing argument 1 of ‘unlink’ differ in signedness
p0f.c:1673: warning: pointer targets in passing argument 1 of ‘perror’ differ in signedness
p0f.c:1680: warning: pointer targets in passing argument 1 of ‘pcap_open_offline’ differ in signedness
p0f.c:1680: warning: pointer targets in passing argument 2 of ‘pcap_open_offline’ differ in signedness
p0f.c:1699: warning: pointer targets in passing argument 1 of ‘pcap_lookupdev’ differ in signedness
p0f.c:1699: warning: pointer targets in assignment differ in signedness
p0f.c:1702: warning: pointer targets in assignment differ in signedness
p0f.c:1708: warning: pointer targets in passing argument 1 of ‘pcap_open_live’ differ in signedness
p0f.c:1708: warning: pointer targets in passing argument 5 of ‘pcap_open_live’ differ in signedness
p0f.c:1714: warning: pointer targets in passing argument 3 of ‘pcap_compile’ differ in signedness
p0f.c:1715: warning: pointer targets in passing argument 1 of ‘__builtin_strchr’ differ in signedness
p0f.c:1736: warning: pointer targets in passing argument 2 of ‘pcap_dump_open’ differ in signedness
p0f.c:1757: warning: pointer targets in passing argument 1 of ‘getpwnam’ differ in signedness
p0f.c:1760: warning: pointer targets in passing argument 1 of ‘chown’ differ in signedness
p0f-query.c: In function ‘p0f_addcache’:
p0f-query.c:79: warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness
p0f-query.c:79: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness
p0f-query.c:80: warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness
p0f-query.c:80: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness
p0f-query.c:83: warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness
p0f-query.c:83: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness
p0f-query.c:84: warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness
p0f-query.c:84: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness
p0f-query.c: In function ‘p0f_handlequery’:
p0f-query.c:134: warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness
p0f-query.c: In function ‘p0f_findmasq’:
p0f-query.c:232: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
p0f-query.c:232: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
p0f-query.c:232: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
p0f-query.c:232: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness
p0f-query.c:232: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
p0f-query.c:232: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
p0f-query.c:232: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness
p0f-query.c:232: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
p0f-query.c:232: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
p0f-query.c:232: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness
p0f-query.c:232: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
p0f-query.c:232: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness
strip p0f 2>/dev/null || true
>> You can also try 'make p0fq' to compile a sample query
>> client (see README for more information). Próbowałem też z polecaniem make p0fq i po nim gdy wpisuję ./Build wyświetla tylko krótki komunikat:
galaz:/home/maq/download/p0f# ./Build
Your system type is: Linux

Please help with p0f 2:
  http://lcamtuf.coredump.cx/p0f-help/

GNU make not found; failing back to regular (BSD?) make.
strip p0f 2>/dev/null || true
>> You can also try 'make p0fq' to compile a sample query
>> client (see README for more information). Ponadto próbowałem szukać po googlach rozwiązania dla tych nowych błędów ale wszędzie trzeba wydać polecenia ./configure z jakimiśtam parametrami, a ja ./configure użyć nie mogę.

ps. instalowałem chyba cmake, pmake i tmake - nie podziałało.



psv - 21-04-2008 11:24
Zainstaluj:
apt-get install build-essential
  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • minister.pev.pl

  •  

     


     

     
    Copyright 2003. MĂłj serwis