Hi,
I did the following...
1] Modify the libpcap-0.9 Makefile
here I edited the INCLS & LIBS...
CC = gcc
CCOPT = -O2
INCLS = -I. -I ../libpfring
DEFS = -DHAVE_CONFIG_H -D_U_="__attribute__((unused))"
LIBS = ../libpfring/libpfring.a
DYEXT = so
and further doen in the 'shared' section I added $(LIBS)...
shared: libpcap.$(DYEXT)
#
# XXX - this works with GNU ld, but won't necessarily work with native
# ld on, for example, various SVR4-flavored platforms, or Digital UNIX.
#
libpcap.so: $(OBJ)
@rm -f $@
ld -shared -o [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> VERSION`
$(OBJ) $(LIBS)
2] Recompiled libpcap-0.9.
3] Copy the libpcap files from /usr/local/lib to /usr/lib (otherwise tcpdump
complains when you try to run it).
4] Compile tcpdump
This solves the compile errors that you are seeing.
I have used this method on two other machines and it worked fine, but currently
on the server that I am
trying to configure at the moment, the data packets are all scrambled. I do not
know if this is due to
my hack-a-round here, or some other problem.
If this method works for you, then I would be interested to hear if you can
capture data correctly, or if it is scrambled.
Cheers,
PBW.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of yannis
ymark
Sent: Donnerstag, 7. Dezember 2006 14:57
To: [email protected]
Subject: [Ntop-misc] tcpdump with libpcap PF_RING enabled problem
Dear all
I have a little problem trying to compile tcpdump.
i've allready compiled libpcap (0.9.4.) with PF_RING enabled and
everything is ok with that.
When compiling tcpdump (3.8.4) i'm writting
./configure CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib
-lpfring"
everything ok.
after that
make
and the problem is:
./../libpcap-0.9.4/libpcap.a(pcap-linux.o): In function
`pcap_close_linux':
pcap-linux.c:(.text+0x5f0): undefined reference to `pfring_close'
./../libpcap-0.9.4/libpcap.a(pcap-linux.o): In function
`pcap_open_live':
pcap-linux.c:(.text+0x799): undefined reference to `pfring_open'
./../libpcap-0.9.4/libpcap.a(pcap-linux.o): In function
`pcap_read_linux':
pcap-linux.c:(.text+0x160b): undefined reference to `pfring_recv'
./../libpcap-0.9.4/libpcap.a(pcap-linux.o): In function
`pcap_set_reflector':
pcap-linux.c:(.text+0x5): undefined reference to
`pfring_set_reflector'
./../libpcap-0.9.4/libpcap.a(pcap-linux.o): In function
`pcap_remove_from_cluster':
pcap-linux.c:(.text+0x15): undefined reference to
`pfring_remove_from_cluster'
./../libpcap-0.9.4/libpcap.a(pcap-linux.o): In function
`pcap_set_cluster':
pcap-linux.c:(.text+0x25): undefined reference to `pfring_set_cluster'
collect2: ld returned 1 exit status
make: *** [tcpdump] Error 1
any ideas?
________________________________
×ñçóéìïðïéåßôå Yahoo!
ÂáñåèÞêáôå ôá åíï÷ëçôéêÜ ìçíý ìáôá (spam); Ôï Yahoo! Mail äéáèÝôåé ôçí
êáëýôåñç äõíáôÞ ðñïóôáóßá êáôÜ ôùí åíï÷ëçôéêþí ìçíõìÜôùí
http://login.yahoo.com/config/mail?.intl=gr
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc