[Snort-users] Libpcap-0.4 on Redhat 9.0

Yu Wang yu.wang at ...12392...
Sun Sep 5 06:28:01 EDT 2004


Hi everyone, 
i have been trying install Libpcap-0.4 on Redhat9.0 for days, but ...
 i customized the Makefile.in pathes as below:
----------------------------------------------------------
# Top level hierarchy
prefix = /usr/local
exec_prefix = /usr/local
# Pathname of directory to install the include files
INCLDEST = /usr/local/include
# Pathname of directory to install the library
LIBDEST =  /usr/local/lib
# Pathname of directory to install the man page
MANDEST = /usr/local/man

# VPATH
srcdir =/root/ussrback/shared/libpcap-0.4
VPATH = /root/ussrback/shared/libpcap-0.4
------------------------------------------------------------------------------
nothing wrong with ./configure  
but when i make, errors are reported as below
------------------------------------------------------------------------------
[root at ...274... libpcap-0.4]# make
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c /usr/src/libpcap-0.4/pcap-linux.c
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c /usr/src/libpcap-0.4/pcap.c
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c /usr/src/libpcap-0.4/inet.c
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c /usr/src/libpcap-0.4/gencode.c
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c /usr/src/libpcap-0.4/optimize.c
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c /usr/src/libpcap-0.4/nametoaddr.c
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c /usr/src/libpcap-0.4/etherent.c
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c /usr/src/libpcap-0.4/savefile.c
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c /usr/src/libpcap-0.4/bpf_filter.c
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c /usr/src/libpcap-0.4/bpf_image.c
flex -Ppcap_ -t /usr/src/libpcap-0.4/scanner.l > $$.scanner.c; mv $$.scanner.c scanner.c
bison -y -p pcap_ -d /usr/src/libpcap-0.4/grammar.y
mv y.tab.c grammar.c
mv y.tab.h tokdefs.h
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c /usr/src/libpcap-0.4/scanner.c
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -Dyylval=pcap_lval -c grammar.c
sed -e 's/.*/char pcap_version[] = "&";/' /usr/src/libpcap-0.4/VERSION > version.c
gcc -O2 -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c /usr/src/libpcap-0.4/version.c
ar rc libpcap.a pcap-linux.o pcap.o inet.o gencode.o optimize.o nametoaddr.o etherent.o savefile.o bpf_filter.o bpf_image.o scanner.o grammar.o version.o
ranlib libpcap.
-----------------------------------------------------------------------------
Can someone tell me what's the problem?





More information about the Snort-users mailing list