[Fwd: Re: [Rpcap-users] Re: rtdump won't compile...]
Status: Alpha
Brought to you by:
sri_krishnan
|
From: Mattt <ma...@ab...> - 2002-11-03 10:45:03
|
-----Forwarded Message----- > From: Mattt <ma...@ab...> > To: S. Krishnan <sri...@ya...> > Subject: Re: [Rpcap-users] Re: rtdump won't compile... > Date: 03 Nov 2002 19:18:01 +1000 > > On Sun, 2002-11-03 at 08:42, S. Krishnan wrote: > > OK, Matt, > > > > Looks like the problem is with pcap.h. The problem is with Red Hat's > > pcap.h install, which is in /usr/include/pcap/pcap.h, and which I kind > > of accepted by default while building the code. I guess your Debian > > install is elsewhere. The rtdump.c headers look for pcap.h as > > "#include <pcap.h>", and so look for it in only the standard places. > > > > Unfortunately, I have so far built and tested both rpcap and rtdump on > > Red Hat systems only. > > > > Could you please open rtdump.c and replace the "#include <pcap.h>" line > > with something like "#include "/usr/local/include/pcap.h", or whatever > > is appropriate for your pcap install, and see if that fixes things? > > > > In any case, the entire autoconf pcap header detection thing in both > > rpcap and rtdump is broken, and I will look into fixing it this week > > itself. I will mail as soon as I get a proper fix. > > > > Please let me know if this kludge works. > > > Failed again. So I'm starting from scratch, and documenting my steps... > > - run 'apt-get remove libpcap-dev' (to ensure debian's not trying to > make us crazy...) - it wasn't installed... > - remove all rpcap stuff from /usr/local/* > - enter pcap source and run 'make uninstall' > - verify pcap removal, then 'make install' > - untar fresh copies of rpcap and rtdump trees > - enter rpcap tree > - edit rpcap_client.c - uncomment '#include > </usr/local/include/pcap.h>', and comment the if block of pcap > includes below that > - modify rpcap.c so it reads the same way (by removing the if block) > - define have_net_bpf_h in config.h after running ./configure (tried to > find where it does this, but couldn't, so hacked ;-) ) > - run 'make' followed by 'make install'. all looks good. > - enter rtdump tree > - modify '#include <pcap.h>' to read > '#include "/usr/local/include/pcap.h"' > - run './configure'. apart from not finding 'local' rpcap, all is well. > it seems that's normal anyways... > - run 'make'. bang. same failure again. > - edit Makefile - added an '-I/usr/local/include' to INCLS and added > an '-L/usr/local/lib' to LDFLAGS. > - run 'make clean', followed by another 'make', and another failure :-/ > > Sorry I'm no better with my software building skills ;-) > > -- > Cheers, > Mattt. icq : 117539757 > aboveNetworks tel : 0438 749 962 > ma...@ab... (mail/jabber) www : www.above.nq4u.net > > There are only 10 kinds of people. > Those who understand binary, and those who don't. -- Cheers, Mattt. icq : 117539757 aboveNetworks tel : 0438 749 962 ma...@ab... (mail/jabber) www : www.above.nq4u.net There are only 10 kinds of people. Those who understand binary, and those who don't. |