bonjour,
j'aimerai installer lanmap, ce prog qui crée image png du réseau
je dois le compiler faute de rpm ou de package avec yum
voici le resultat
./configure
checking for gcc... gcc
checking for C compiler default output file name... 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 for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking for main in -lm... yes
checking for main in -lpcap... no
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... 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 limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for atexit... yes
checking for getcwd... yes
checking for memset... yes
checking for select... yes
checking for sqrt... yes
checking for strchr... yes
checking for strdup... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
[root@serval_gael lanmap]# make
cd ./src && make LANMAP_DATADIR="/usr/local/share/lanmap/"
make[1]: Entering directory `/home/gael/lanmap/src'
cc -W -Wall -Wno-unused -DLINUX -DLANMAP_DATADIR=/usr/local/share/lanmap/ -c -o lanmap.o lanmap.c
lanmap.c:57:32: error: pcap.h: No such file or directory
lanmap.c:95: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Dev_Mask'
lanmap.c:96: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Dev_Net'
lanmap.c:110: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
lanmap.c: In function 'device_list_and_exit':
lanmap.c:199: error: 'pcap_if_t' undeclared (first use in this function)
lanmap.c:199: error: (Each undeclared identifier is reported only once
lanmap.c:199: error: for each function it appears in.)
lanmap.c:199: error: 'alldevs' undeclared (first use in this function)
lanmap.c:199: error: 'dev' undeclared (first use in this function)
lanmap.c:201: error: 'PCAP_ERRBUF_SIZE' undeclared (first use in this function)
lanmap.c:203: warning: implicit declaration of function 'pcap_findalldevs'
lanmap.c:224: warning: implicit declaration of function 'pcap_freealldevs'
lanmap.c: In function 'device_find_or_exit':
lanmap.c:236: error: 'pcap_if_t' undeclared (first use in this function)
lanmap.c:236: error: 'alldevs' undeclared (first use in this function)
lanmap.c:236: error: 'dev' undeclared (first use in this function)
lanmap.c:238: error: 'PCAP_ERRBUF_SIZE' undeclared (first use in this function)
lanmap.c: In function 'listen_and_learn':
lanmap.c:458: error: 'PCAP_ERRBUF_SIZE' undeclared (first use in this function)
lanmap.c:460: error: storage size of 'filter' isn't known
lanmap.c:468: warning: implicit declaration of function 'pcap_lookupdev'
lanmap.c:468: warning: assignment makes pointer from integer without a cast
lanmap.c:488: error: 'Pcap' undeclared (first use in this function)
lanmap.c:488: warning: implicit declaration of function 'pcap_open_live'
lanmap.c:494: warning: implicit declaration of function 'pcap_lookupnet'
lanmap.c:494: error: 'Dev_Net' undeclared (first use in this function)
lanmap.c:494: error: 'Dev_Mask' undeclared (first use in this function)
lanmap.c:522: warning: implicit declaration of function 'pcap_compile'
lanmap.c:524: warning: implicit declaration of function 'pcap_geterr'
lanmap.c:528: warning: implicit declaration of function 'pcap_setfilter'
lanmap.c:562: warning: implicit declaration of function 'pcap_get_selectable_fd'
lanmap.c:609: warning: implicit declaration of function 'pcap_next_ex'
lanmap.c:618: error: dereferencing pointer to incomplete type
lanmap.c:618: warning: implicit declaration of function 'pcap_datalink'
lanmap.c:622: error: dereferencing pointer to incomplete type
lanmap.c:623: error: dereferencing pointer to incomplete type
lanmap.c:624: error: dereferencing pointer to incomplete type
make[1]: *** [lanmap.o] Error 1
make[1]: Leaving directory `/home/xxxx/lanmap/src'
make: *** [all] Error 2
a votre avis d'ou peut venir l'erreur?
l'url des sources
http://www.parseerror.com/lanmap/rev/