Wireshark-users: Re: [Wireshark-users] libpcap library usage

From: Faraz Shamim <faraz_shamim@xxxxxxxxx>
Date: Wed, 28 May 2008 11:15:40 -0700 (PDT)
Thanks for the prompt reply. Please bare with me on
this since I have been trying to successfully install
this since many many days with no luck! I checked the
libpcap "make install" and see that it is only putting
files in /usr/local/lib and /usr/local/include:

rtpnmlz-iou-ipv6-b# make install
[ -d /usr/local/lib ] || \
    (mkdir -p /usr/local/lib; chmod 755
/usr/local/lib)
./install-sh -c -m 644 libpcap.a
/usr/local/lib/libpcap.a
ranlib /usr/local/lib/libpcap.a
[ -d /usr/local/include ] || \
    (mkdir -p /usr/local/include; chmod 755
/usr/local/include)
./install-sh -c -m 644 ./pcap.h
/usr/local/include/pcap.h
./install-sh -c -m 644 ./pcap-bpf.h \
    /usr/local/include/pcap-bpf.h
./install-sh -c -m 644 ./pcap-namedb.h \
    /usr/local/include/pcap-namedb.h
[ -d /usr/local/man/man3 ] || \
        (mkdir -p /usr/local/man/man3; chmod 755
/usr/local/man/man3)
./install-sh -c -m 644 ./pcap.3 \
    /usr/local/man/man3/pcap.3
rtpnmlz-iou-ipv6-b# 


 and I have both of these set properly in my .cshrc
file:


setenv LDFLAGS "-L/usr/local/lib"
setenv CPPFLAGS "-I/usr/local/include"

are you saying that I have to replace [DIR] below with
[/usr/local/lib] in my configure file?

 --with-libcap[=DIR]     use libcap (located in
directory DIR, if supplied)for POSIX.1e capabilities
management. [default=yes,if present]

Thanks,

Faraz


--- Jaap Keuter <jaap.keuter@xxxxxxxxx> wrote:

> Hi,
> 
> Grep around in configure and read the notes
> regarding libpcap.
> Basically you can supply a directory on the
> configure command line.
> 
> Thanx,
> Jaap
> 
> Faraz Shamim wrote:
> > Hi All,
> > 
> > I am trying to use libpcap with wireshark. I have
> > compiled libpcap with a special API and it went
> OK. I
> > have libpcap in /usr/local/lib/libpcap.a and it is
> > included in my lib path in my .cshrc
> > 
> > setenv LDFLAGS "-L/usr/local/lib"
> > 
> > but when I run configure why it says at the end
> that 
> > 
> >  Use libcap library : no
> > 
> > Any help will be highly appreciated.
> > 
> > Faraz
> > 
> 
> _______________________________________________
> Wireshark-users mailing list
> Wireshark-users@xxxxxxxxxxxxx
>
http://www.wireshark.org/mailman/listinfo/wireshark-users
>