tcpdump mailing list archives
Re: SCO libpcap
From: "sufei7099" <sufei7099 () gmail com>
Date: Mon, 23 Jun 2008 09:04:41 +0800
After replacing file <sys/dlpi.h> with <sys/attdlpi.h>, I have install libpcap on SCO OpenServer successfully. Then, I want to write a small program to test it. However, when I compile the c file,which includes pcap_findalldevs,pcap_lookupdev and so on, the result is wrong as follows: # cmdpcap undefined first referenced symbol in file pcap_findalldevs mypcap.o i386ld fatal: Symbol referencing errors. No output written to mypcap So, I don't know why? Is it something I havn't config? With discussing with a system engineer, we thought that the libpcap.a is wrong. It means that program don't recognize the lib. I don't know where is the reason, waitting for your help! sufei7099 2008-06-23 发件人: Guy Harris 发送时间: 2008-06-14 02:22:14 收件人: tcpdump-workers () lists tcpdump org 抄送: 主题: Re: [tcpdump-workers] SCO libpcap sufei7099 wrote:
I add the #incude <sys/types.h > in file.h,
I.e., you changed /usr/include/sys/file.h to include <sys/types.h >? Does /usr/include/sys/param.h include <sys/types.h > on your system?
then i make successfully. After i run make install, the result is : # make install
...
rm -f /usr/local/include/pcap-bpf.h rm -f /usr/local/include/pcap.h rm -f /usr/local/include/pcap-namedb.h cp pcap.h /usr/local/include cp pcap-bpf.h /usr/local/include cp pcap-namedb.h /usr/local/include
...
It meana i install the libpcap successfully. right?
Yes.
But when I run ./configure in snort directory, the result is :
...
checking for pcap_datalink in -lpcap... no checking pfring.h usability... no checking pfring.h presence... no checking for pfring.h... no checking for pfring_open in -lpfring... no checking for pfring_open in -lpcap... no ERROR! Libpcap library/headers (libpcap.a (or .so)/pcap.h) not found, go get it from http://www.tcpdump.org or use the --with-libpcap-* options, if you have it installed in unusual place. Also check if your libpcap depends on another shared library that may be installed in an unusual place
Presumably snort wrote out a config.log file; what are the contents of that file? - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe. - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- Re: SCO libpcap, (continued)
- Re: SCO libpcap sufei7099 (Jun 12)
- Re: SCO libpcap Guy Harris (Jun 13)
- Re: SCO libpcap sufei7099 (Jun 13)
- Re: SCO libpcap Guy Harris (Jun 13)
- Re: SCO libpcap sufei7099 (Jun 16)
- Re: SCO libpcap sufei7099 (Jun 13)
- Re: SCO libpcap Guy Harris (Jun 13)
- Re: SCO libpcap sufei7099 (Jun 16)
- Re: SCO libpcap sufei7099 (Jun 16)
- Re: SCO libpcap sufei7099 (Jun 17)
- Re: SCO libpcap sufei7099 (Jun 22)
- Re: SCO libpcap sufei7099 (Jun 13)
- Re: SCO libpcap sufei7099 (Jun 17)