tcpdump mailing list archives

Re: SCO libpcap


From: "sufei7099" <sufei7099 () gmail com>
Date: Mon, 16 Jun 2008 09:16:23 +0800

and the content of makefile is :

# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am

# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

#  Copyright (c) 1993, 1994, 1995, 1996
#       The Regents of the University of California.  All rights reserved.
#
#  Redistribution and use in source and binary forms, with or without
#  modification, are permitted provided that: (1) source code distributions
#  retain the above copyright notice and this paragraph in its entirety, (2)
#  distributions including binary code include the above copyright notice and
#  this paragraph in its entirety in the documentation or other materials
#  provided with the distribution, and (3) all advertising materials mentioning
#  features or use of this software display the following acknowledgement:
#  ``This product includes software developed by the University of California,
#  Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
#  the University nor the names of its contributors may be used to endorse
#  or promote products derived from this software without specific prior
#  written permission.
#  THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
#  $Header: /n/CVS/sirt/libpcap/Makefile.am,v 0.8.3.1 2004/10/01 22:21:31 cpw Exp $

#
#


SHELL = /bin/ksh

srcdir = .
top_srcdir = .

prefix = /usr/local
exec_prefix = ${prefix}

bindir = ${exec_prefix}/bin
sbindir = ${exec_prefix}/sbin
libexecdir = ${exec_prefix}/libexec
datadir = ${prefix}/share
sysconfdir = ${prefix}/etc
sharedstatedir = ${prefix}/com
localstatedir = ${prefix}/var
libdir = ${exec_prefix}/lib
infodir = ${prefix}/info
mandir = ${prefix}/man
includedir = ${prefix}/include
oldincludedir = /usr/include

DESTDIR =

pkgdatadir = $(datadir)/libpcap
pkglibdir = $(libdir)/libpcap
pkgincludedir = $(includedir)/libpcap

top_builddir = .

ACLOCAL = /Tools/libpcap-1.0.20050129/config/missing aclocal-1.4
AUTOCONF = /Tools/libpcap-1.0.20050129/config/missing autoconf
AUTOMAKE = /Tools/libpcap-1.0.20050129/config/missing automake-1.4
AUTOHEADER = /Tools/libpcap-1.0.20050129/config/missing autoheader

INSTALL = config/install-sh -c
INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL}
transform = s,x,x,

NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = 
host_triplet = i686-pc-sco3.2v5.0.7
AR = ar
AS = @AS@
AWK = nawk
CC = cc
CXX = CC
CXXCPP = CC -E
DLLTOOL = @DLLTOOL@
ECHO = print -r
EGREP = grep -E
EXEEXT = 
F77 = 
GCJ = @GCJ@
GCJFLAGS = @GCJFLAGS@
HAVE_LIB = @HAVE_LIB@
LIB = @LIB@
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LN_S = ln -s
LTLIB = @LTLIB@
MAKEINFO = /Tools/libpcap-1.0.20050129/config/missing makeinfo
OBJDUMP = @OBJDUMP@
OBJEXT = o
PACKAGE = libpcap
RANLIB = :
RC = @RC@
SHLICC2 = 
STRIP = strip
VERSION = 1.0.20050129
V_CCOPT = -O
V_DEFS =  -D_U_=""
V_FADS = fad-getad.c fad-glifc.c fad-null.c fad-win32.c 
V_FINDALLDEVS = gifc
V_INCLS = -I$(srcdir) -I/usr/local/include
V_LEX = lex
V_LIBS = 
V_OTHERS = pcap-bpf.c pcap-pf.c pcap-enet.c pcap-snit.c pcap-nit.c pcap-linux.c pcap-snoop.c pcap-enet.c pcap-null.c 
pcap-dag.c pcap-win32.c 
V_PCAP = dlpi
V_RANLIB = 
V_RING_SRC = 
V_YACC = yacc

AUTOMAKE_OPTIONS = foreign no-dependencies

# library versioning 
VCURRENT = 1
VREVISION = 0
VAGE = 0
RMAJOR = 0
RMINOR = 8
RREVISION = 3

LTRELEASE = $(RMAJOR).$(RMINOR).$(RREVISION)
LTVERSION = $(VCURRENT):$(VREVISION):$(VAGE)

PCAP = dlpi
PSRC = pcap-dlpi.c
FSRC = fad-gifc.c
FADS = fad-getad.c fad-glifc.c fad-null.c fad-win32.c 

LEX = lex
YACC = yacc
OTHERS = pcap-bpf.c pcap-pf.c pcap-enet.c pcap-snit.c pcap-nit.c pcap-linux.c pcap-snoop.c pcap-enet.c pcap-null.c 
pcap-dag.c pcap-win32.c 
DEFS = -DHAVE_CONFIG_H  -D_U_=""
INCLUDES = -I$(srcdir) -I/usr/local/include

EXTRA_DIST = LICENSE Makefile.am INSTALL.txt FILES TODO CHANGES      CREDITS README README.Win32 README.aix README.hpux 
     README.linux README.ring README.tru64 pcap.3      VERSION REVISION configure.ac acinclude.m4      FADDERS PCAPPERS 
SUNOS4 bpf lbl packaging .warrantee      scanner.l grammar.y bootstrap config Win32      pcap-ring.c pcap-dag.c 
$(OTHERS) $(FADS)


MAINTAINERCLEANFILES = Makefile.in Makefile.am.bak configure.ac.bak aclocal.m4 configure config.h.in

MOSTLYCLEANFILES = bpf_filter.c scanner.c grammar.c version.c lex.yy.c                           tokdefs.h version.h net


HDR = arcnet.h atmuni31.h config.h ethertype.h gencode.h      llc.h nlpid.h pcap-bpf.h pcap-int.h pcap-namedb.h      
pcap-nit.h pcap-pf.h pcap-ring.h pcap-stdinc.h      pcap.h ppp.h sll.h sunatmpos.h pf.h


GENSRC = bpf_filter.c scanner.c grammar.c version.c
CSRC = pcap.c inet.c gencode.c optimize.c  nametoaddr.c                           etherent.c savefile.c bpf_image.c 
bpf_dump.c


PCAPSRC = $(GENSRC) $(PSRC) $(FSRC) $(CSRC) $(FADS)

lib_LTLIBRARIES = libpcap.la

libpcap_la_LDFLAGS = -release $(LTRELEASE)
#libpcap_la_SOURCES = $(PCAPSRC) $(HDR) pcap-ring.c
#libpcap_la_SOURCES = $(PCAPSRC) $(HDR) pcap-dag.c
libpcap_la_SOURCES = $(PCAPSRC) $(HDR)
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES = 
LTLIBRARIES =  $(lib_LTLIBRARIES)

CPPFLAGS = 
LDFLAGS =  -L/usr/local/lib
LIBS = 
libpcap_la_LIBADD = 
libpcap_la_OBJECTS =  bpf_filter.lo \
scanner.lo grammar.lo version.lo \
pcap-dlpi.lo fad-gifc.lo \
pcap.lo inet.lo gencode.lo optimize.lo \
nametoaddr.lo etherent.lo savefile.lo \
bpf_image.lo bpf_dump.lo
#libpcap_la_OBJECTS =  bpf_filter.lo scanner.lo grammar.lo \
#version.lo pcap-dlpi.lo fad-gifc.lo \
#pcap.lo inet.lo gencode.lo optimize.lo nametoaddr.lo \
#etherent.lo savefile.lo bpf_image.lo bpf_dump.lo \
#pcap-ring.lo
#libpcap_la_OBJECTS =  bpf_filter.lo \
#scanner.lo grammar.lo version.lo \
#pcap-dlpi.lo fad-gifc.lo \
#pcap.lo inet.lo gencode.lo optimize.lo \
#nametoaddr.lo etherent.lo savefile.lo \
#bpf_image.lo bpf_dump.lo pcap-dag.lo
CFLAGS = -g -belf
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
DIST_COMMON =  README ./stamp-h.in AUTHORS COPYING Makefile.am \
Makefile.in TODO acinclude.m4 aclocal.m4 config.h.in configure \
configure.ac


DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)

TAR = tar
GZIP_ENV = --best
SOURCES = $(libpcap_la_SOURCES)
OBJECTS = $(libpcap_la_OBJECTS)

all: all-redirect
.SUFFIXES:
.SUFFIXES: .S .c .lo .o .obj .s
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4) 
 cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile

Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
 cd $(top_builddir) \
   && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

$(ACLOCAL_M4):  configure.ac  acinclude.m4
 cd $(srcdir) && $(ACLOCAL)

config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
 $(SHELL) ./config.status --recheck
$(srcdir)/configure: $(srcdir)/configure.ac $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
 cd $(srcdir) && $(AUTOCONF)

config.h: stamp-h
 @if test ! -f $@; then \
  rm -f stamp-h; \
  $(MAKE) stamp-h; \
 else :; fi
stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
 cd $(top_builddir) \
   && CONFIG_FILES= CONFIG_HEADERS=config.h \
      $(SHELL) ./config.status
 @echo timestamp > stamp-h 2> /dev/null
$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
 @if test ! -f $@; then \
  rm -f $(srcdir)/stamp-h.in; \
  $(MAKE) $(srcdir)/stamp-h.in; \
 else :; fi
$(srcdir)/stamp-h.in: $(top_srcdir)/configure.ac $(ACLOCAL_M4) 
 cd $(top_srcdir) && $(AUTOHEADER)
 @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null

mostlyclean-hdr:

clean-hdr:

distclean-hdr:
 -rm -f config.h

maintainer-clean-hdr:

mostlyclean-libLTLIBRARIES:

clean-libLTLIBRARIES:
 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)

distclean-libLTLIBRARIES:

maintainer-clean-libLTLIBRARIES:

install-libLTLIBRARIES: $(lib_LTLIBRARIES)
 @$(NORMAL_INSTALL)
 $(mkinstalldirs) $(DESTDIR)$(libdir)
 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
   if test -f $$p; then \
     echo "$(LIBTOOL)  --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \
     $(LIBTOOL)  --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \
   else :; fi; \
 done

uninstall-libLTLIBRARIES:
 @$(NORMAL_UNINSTALL)
 list='$(lib_LTLIBRARIES)'; for p in $$list; do \
   $(LIBTOOL)  --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
 done

.c.o:
 $(COMPILE) -c $<

# FIXME: We should only use cygpath when building on Windows,
# and only if it is available.
.c.obj:
 $(COMPILE) -c `cygpath -w $<`

.s.o:
 $(COMPILE) -c $<

.S.o:
 $(COMPILE) -c $<

mostlyclean-compile:
 -rm -f *.o core *.core
 -rm -f *.$(OBJEXT)

clean-compile:

distclean-compile:
 -rm -f *.tab.c

maintainer-clean-compile:

.c.lo:
 $(LIBTOOL) --mode=compile $(COMPILE) -c $<

.s.lo:
 $(LIBTOOL) --mode=compile $(COMPILE) -c $<

.S.lo:
 $(LIBTOOL) --mode=compile $(COMPILE) -c $<

mostlyclean-libtool:
 -rm -f *.lo

clean-libtool:
 -rm -rf .libs _libs

distclean-libtool:

maintainer-clean-libtool:

libpcap.la: $(libpcap_la_OBJECTS) $(libpcap_la_DEPENDENCIES)
 $(LINK) -rpath $(libdir) $(libpcap_la_LDFLAGS) $(libpcap_la_OBJECTS) $(libpcap_la_LIBADD) $(LIBS)

tags: TAGS

ID: $(HEADERS) $(SOURCES) $(LISP)
 list='$(SOURCES) $(HEADERS)'; \
 unique=`for i in $$list; do echo $$i; done | \
   awk '    { files[$$0] = 1; } \
        END { for (i in files) print i; }'`; \
 here=`pwd` && cd $(srcdir) \
   && mkid -f$$here/ID $$unique $(LISP)

TAGS:  $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
 tags=; \
 here=`pwd`; \
 list='$(SOURCES) $(HEADERS)'; \
 unique=`for i in $$list; do echo $$i; done | \
   awk '    { files[$$0] = 1; } \
        END { for (i in files) print i; }'`; \
 test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
   || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP))

mostlyclean-tags:

clean-tags:

distclean-tags:
 -rm -f TAGS ID

maintainer-clean-tags:

distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)

# This target untars the dist file and tries a VPATH configuration.  Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
 -rm -rf $(distdir)
 GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
 mkdir $(distdir)/=build
 mkdir $(distdir)/=inst
 dc_install_base=`cd $(distdir)/=inst && pwd`; \
 cd $(distdir)/=build \
   && ../configure --srcdir=.. --prefix=$$dc_install_base \
   && $(MAKE) $(AM_MAKEFLAGS) \
   && $(MAKE) $(AM_MAKEFLAGS) dvi \
   && $(MAKE) $(AM_MAKEFLAGS) check \
   && $(MAKE) $(AM_MAKEFLAGS) install \
   && $(MAKE) $(AM_MAKEFLAGS) installcheck \
   && $(MAKE) $(AM_MAKEFLAGS) dist
 -rm -rf $(distdir)
 @banner="$(distdir).tar.gz is ready for distribution"; \
 dashes=`echo "$$banner" | sed s/./=/g`; \
 echo "$$dashes"; \
 echo "$$banner"; \
 echo "$$dashes"
dist: distdir
 -chmod -R a+r $(distdir)
 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
 -rm -rf $(distdir)
dist-all: distdir
 -chmod -R a+r $(distdir)
 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
 -rm -rf $(distdir)
distdir: $(DISTFILES)
 -rm -rf $(distdir)
 mkdir $(distdir)
 -chmod 777 $(distdir)
 @for file in $(DISTFILES); do \
   d=$(srcdir); \
   if test -d $$d/$$file; then \
     cp -pr $$d/$$file $(distdir)/$$file; \
   else \
     test -f $(distdir)/$$file \
     || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
     || cp -p $$d/$$file $(distdir)/$$file || :; \
   fi; \
 done
info-am:
info: info-am
dvi-am:
dvi: dvi-am
check-am: all-am
check: check-am
installcheck-am:
installcheck: installcheck-am
all-recursive-am: config.h
 $(MAKE) $(AM_MAKEFLAGS) all-recursive

install-exec-am: install-libLTLIBRARIES
install-exec: install-exec-am

install-data-am: install-data-local
install-data: install-data-am

install-am: all-am
 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-am
uninstall-am: uninstall-libLTLIBRARIES
uninstall: uninstall-am
all-am: Makefile $(LTLIBRARIES) config.h all-local
all-redirect: all-am
install-strip:
 $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
installdirs:
 $(mkinstalldirs)  $(DESTDIR)$(libdir)


mostlyclean-generic:
 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)

clean-generic:

distclean-generic:
 -rm -f Makefile $(CONFIG_CLEAN_FILES)
 -rm -f config.cache config.log stamp-h stamp-h[0-9]*

maintainer-clean-generic:
 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
mostlyclean-am:  mostlyclean-hdr mostlyclean-libLTLIBRARIES \
  mostlyclean-compile mostlyclean-libtool \
  mostlyclean-tags mostlyclean-generic

mostlyclean: mostlyclean-am

clean-am:  clean-hdr clean-libLTLIBRARIES clean-compile clean-libtool \
  clean-tags clean-generic mostlyclean-am clean-local

clean: clean-am

distclean-am:  distclean-hdr distclean-libLTLIBRARIES distclean-compile \
  distclean-libtool distclean-tags distclean-generic \
  clean-am
 -rm -f libtool

distclean: distclean-am
 -rm -f config.status

maintainer-clean-am:  maintainer-clean-hdr \
  maintainer-clean-libLTLIBRARIES \
  maintainer-clean-compile maintainer-clean-libtool \
  maintainer-clean-tags maintainer-clean-generic \
  distclean-am
 @echo "This command is intended for maintainers to use;"
 @echo "it deletes files that may require special tools to rebuild."

maintainer-clean: maintainer-clean-am
 -rm -f config.status

.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \
clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \
uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \
distclean-compile clean-compile maintainer-clean-compile \
mostlyclean-libtool distclean-libtool clean-libtool \
maintainer-clean-libtool tags mostlyclean-tags distclean-tags \
clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
check-am installcheck-am installcheck all-recursive-am install-exec-am \
install-exec install-data-local install-data-am install-data install-am \
install uninstall-am uninstall all-local all-redirect all-am all \
installdirs mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean


clean-local:
 rm -f libpcap.a

#all-local:
# rm -f libpcap.a; ln -s .libs/libpcap.a libpcap.a
all-local: libpcap.a

libpcap.a:
 ln -s .libs/libpcap.a libpcap.a

install-data-local:
 rm -f $(DESTDIR)$(includedir)/pcap-bpf.h
 rm -f $(DESTDIR)$(includedir)/pcap.h
 rm -f $(DESTDIR)$(includedir)/pcap-namedb.h
 cp pcap.h $(DESTDIR)$(includedir)
 cp pcap-bpf.h $(DESTDIR)$(includedir)
 cp pcap-namedb.h $(DESTDIR)$(includedir)
 rm -f $(DESTDIR)$(libdir)/libpcap.la
 rm -f $(DESTDIR)$(libdir)/libpcap.so*
 (cd $(DESTDIR)$(libdir); ln -s libpcap-0.$(RMINOR).$(RREVISION).so libpcap.so)
 (cd $(DESTDIR)$(libdir); ln -s libpcap-0.$(RMINOR).$(RREVISION).so libpcap.so.0.$(RMINOR).$(RREVISION))
 (cd $(DESTDIR)$(libdir); ln -s libpcap-0.$(RMINOR).$(RREVISION).so libpcap.so.0.$(RMINOR))
 (cd $(DESTDIR)$(libdir); ln -s libpcap-0.$(RMINOR).$(RREVISION).so libpcap.so.0.7)
 (cd $(DESTDIR)$(libdir); ln -s libpcap-0.$(RMINOR).$(RREVISION).so libpcap.so.0)

# generated source

bpf_filter.c: bpf/net/bpf_filter.c
 rm -f bpf_filter.c
 ln -s bpf/net/bpf_filter.c bpf_filter.c

scanner.o: scanner.c tokdefs.h

scanner.c: scanner.l tokdefs.h
 @rm -f $@
 $(V_LEX) -t scanner.l > $$$$.$@; mv $$$$.$@ $@

tokdefs.h:
 rm -f grammar.c
 make grammar.o

grammar.o: grammar.c

grammar.c: grammar.y
 @rm -f grammar.c tokdefs.h
 $(YACC) -d grammar.y
 mv y.tab.c grammar.c
 mv y.tab.h tokdefs.h

version.o: version.c

version.c: REVISION version.h
 @rm -f $@
 echo `cat VERSION` | \
          sed -e 's/.*/char pcap_version[] = "&";/' > version.c

version.h: $(srcdir)/VERSION
 @rm -f $@
 sed -n -e 's/.*/static const char pcap_version_string[] = "libpcap version &";/p' $(srcdir)/VERSION > $@

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:





sufei7099
2008-06-16



发件人: Guy Harris
发送时间: 2008-06-14 02:22:14
收件人: tcpdump-workers () lists tcpdump org
抄送: 
主题: Re: [tcpdump-workers] SCO libpcap

sufei7099 wrote:
I add the #incude <sys/types.h > in file.h,

I.e., you changed /usr/include/sys/file.h to include  <sys/types.h >?

Does /usr/include/sys/param.h include  <sys/types.h > on your system?

then i make successfully. After i run make install, the result is :

# make install

...

        rm -f /usr/local/include/pcap-bpf.h
        rm -f /usr/local/include/pcap.h
        rm -f /usr/local/include/pcap-namedb.h
        cp pcap.h /usr/local/include
        cp pcap-bpf.h /usr/local/include
        cp pcap-namedb.h /usr/local/include

...

It meana i install the libpcap successfully. right?

Yes.

But when I run ./configure in snort directory, the result is :

...

checking for pcap_datalink in -lpcap... no
checking pfring.h usability... no
checking pfring.h presence... no
checking for pfring.h... no
checking for pfring_open in -lpfring... no
checking for pfring_open in -lpcap... no

   ERROR!  Libpcap library/headers (libpcap.a (or .so)/pcap.h)
   not found, go get it from http://www.tcpdump.org
   or use the --with-libpcap-* options, if you have it installed
   in unusual place.  Also check if your libpcap depends on another
   shared library that may be installed in an unusual place

Presumably snort wrote out a config.log file; what are the contents of 
that file?
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.

Current thread: