Ethereal-users: RE: [Ethereal-users] Compile help question

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "King, John (Greg) (LMIT-HOU)" <Greg.King@xxxxxxxx>
Date: Mon, 24 Apr 2006 10:54:24 -0500
I tried that first (sorry should have mentioned it) and when that
failed, I tried specifying. Also since posting I have tried the
following

./configure CPPFLAGS="-I/usr/local/include/" LDFLAGS="-L/usr/local/lib/"
--disable-ethereal --disable-editcap --disable-mergecap --with-zlib=/usr
--with-ssl=/usr --with-net-snmp=/usr

Same results.

On another system I installed the centos-4.3 libpcap rpm and looked at
the rpm -ql output to see what all is installed. The library and header
files look the same with one difference being that on centos it also
loaded copied the shared object library.

So I looked at the pcap Makfile and saw where I can install it as a
shared library as well (make install-shared).

Same result.

Next I looked at the PF_RING pcount Makefile as this would compile and
run. But it was using a relative path to the pcap library and header
instead and not the one installed via make install (although they are
the same file)

LIBPCAP=../libpcap-0.9.4/libpcap.a
LIBPFRING=../libpfring/libpfring.a

So I pointed LIBPCAP in that makefile to /usr/local/lib/libpcap.a and
recompiled. Pcount still works.

./pcount -i eth1
Capturing from eth1
=========================
Absolute Stats: [7586 pkts rcvd][0 pkts dropped]
Total Pkts=7586/Dropped=0.0 %
7586 pkts [1329.5 pkt/sec] - 1786300 bytes [2.50 Mbit/sec]
=========================
Actual Stats: 7586 pkts [880176.9 ms][8.6 pkt/sec]
=========================


I feel as if I am missing something obvious but I have now run out of
ideas on why I cannot get ethereal to build.

-Greg


> -----Original Message-----
> From: ethereal-users-bounces@xxxxxxxxxxxx 
> [mailto:ethereal-users-bounces@xxxxxxxxxxxx] On Behalf Of Jaap Keuter
> Sent: Monday, April 24, 2006 10:36 AM
> To: Ethereal user support
> Subject: Re: [Ethereal-users] Compile help question
> 
> Hi,
> 
> It seems the be looking in /usr/local anyway so what if you leave out
> all together.
> 
> Thanx,
> Jaap
> 
> On Mon, 24 Apr 2006, King, John (Greg) (LMIT-HOU) wrote:
> 
> > I am trying to compile ethereal .10.14 on a centos 4.3 
> system. I have
> > removed the original ethereal rpm from the load.
> >
> > I then compiled PF_Ring and libpcap manually which copied 
> the data into
> > /usr/local/include and /usr/local/lib
> >
> > /usr/local/lib
> > -rw-r--r--   1 root root 185584 Apr 24 08:10 libpcap.a
> > -rw-r--r--   1 root root  11064 Apr 24 07:43 libpfring.a
> >
> > /usr/local/include
> > -rw-r--r--   1 root root 22433 Apr 24 08:10 pcap-bpf.h
> > -rw-r--r--   1 root root 10523 Apr 24 08:10 pcap.h
> > -rw-r--r--   1 root root  3426 Apr 24 08:10 pcap-namedb.h
> > -rw-r--r--   1 root root  1601 Apr 24 07:44 pfring.h
> >
> > I then try to configure ethereal:
> >
> > ./configure --with-pcap=/usr/local --disable-ethereal 
> --disable-editcap
> > --disable-mergecap --with-zlib=/usr --with-ssl=/usr 
> --with-net-snmp=/usr
> >
> > I keep getting 'configure: error: Library libpcap not 
> found.' although
> > from what I can tell the library is there.
> 
> _______________________________________________
> Ethereal-users mailing list
> Ethereal-users@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-users
>