[Ntop-misc] tcpdump with libpcap PF_RING enabled problemWILLIAMS, Paul Paul.Williams at alcatel-lucent.chFri Dec 8 12:08:44 CET 2006
Hi, I do not know if this will help here are a complete list of steps regarding the compiling of libpcap, from a install doc I writing. I had the same issue as you before. By doing the standard install I can duplicate you problem. By following these steps, the problem is resolved. Some of the steps may not be necessary, but it works when I follow them, and I'm happy with that. Note: step 15-VIII, here I use pfring.o, in my last email I suggested libpfring.a Hope it helps, PBW. 14] Make libpfring I) cd /PF_RING/userland/libpfring II) make 15] Make the libpcap library (Assuming you have downloaded libpcap-0.9.4 Source to /SOURCE) I) cd /PF_RING/userland II) tar xvf /SOURCE/libpcap-0.9.4.tar III) cd libpcap-0.9.4 IV) cp ../libpcap-0.9.4-ring/pcap* . cp ../libpfring/pfring.h . cp ../libpfring/libpfring.a . cp ../libpfring/pfring.h /usr/local/include cp ../libpfring/pfring.h /usr/include V) ./configure CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" VI) vi Makefile VII) Set the following values... VIII) INCLS = -I. LIBS = ../libpfring/pfring.o IX) Find "libpcap.so" and change the line from... ld -shared -o $@.`cat <mailto:$@.`cat> VERSION` $(OBJ) to... ld -shared -o $@.`cat <mailto:$@.`cat> VERSION` $(OBJ) $(LIBS) X) ln -s linux /usr/src/kernels/linux-2.6.18.3/include/linux XI) make XII) make install XIII) make install-shared XIV) make install-shared-so XV) cd /usr/lib XVI) rm libpcap* XVII) cp /usr/local/lib/libpcap* . XVIII) ln -s libpcap.so.0.9.4 libpcap.so XIX) ln -s libpcap.so.0.9.4 libpcap.so.0 XX) ln -s libpcap.so.0.9.4 libpcap.so.0.9 I the cd to the tcpdump source dir and do the following configure... ./configure CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib -lpfring" followed by a make |
|