tcpdump mailing list archives
Re: TCPDUMP 4.0.1rc1 and LIBPCAP 1.0.1rc1 available for testing
From: "Gianluca Varenni" <gianluca.varenni () cacetech com>
Date: Sun, 21 Dec 2008 01:25:37 -0800
I have some problems using the shared version of libpcap. Environment: fresh installation of a Debian 4.0r5 x86 I compiled the 1.0.1rc1 sources with make shared;make install;make install-shared(BTW, you need to run both "install" and "install-shared" because the latter doesn't install the include files)
After that I successfully compiled the following test app: ---- #include "pcap.h" int main() { pcap_if_t *alldevs; pcap_if_t *d; char errbuf[PCAP_ERRBUF_SIZE+1]; /* Retrieve the device list */ if(pcap_findalldevs(&alldevs, errbuf) == -1) { fprintf(stderr,"Error in pcap_findalldevs: %s\n", errbuf); return -1; } /* Free the device list */ pcap_freealldevs(alldevs); return 1; } ---- with "gcc test.c -lpcap" When I run it, I get./a.out: error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or directory
I'm not an expert about linux shared objects, maybe I'm doing something wrong. Is it my fault or something within the installation of the libpcap shared object?
Thanks GV----- Original Message ----- From: "Ken Bantoft" <ken () netfunctional ca>
To: <tcpdump-workers () lists tcpdump org> Sent: Tuesday, December 02, 2008 12:14 PMSubject: [tcpdump-workers] TCPDUMP 4.0.1rc1 and LIBPCAP 1.0.1rc1 available for testing
Hi -workers,http://www.tcpdump.org/beta/ has the Release Candidates - they contain everything including the dlpisubs.c patch from today.Please give them a test run if you can - provided no bugs, I'm planning to release them for Monday, Dec 8th.Ken - 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:
- dlpisubs.c patches for libpcap-1.0.0 Albert Chin (Dec 01)
- Re: dlpisubs.c patches for libpcap-1.0.0 Guy Harris (Dec 02)
- TCPDUMP 4.0.1rc1 and LIBPCAP 1.0.1rc1 available for testing Ken Bantoft (Dec 02)
- Re: TCPDUMP 4.0.1rc1 and LIBPCAP 1.0.1rc1 available for testing Gianluca Varenni (Dec 21)
- Re: TCPDUMP 4.0.1rc1 and LIBPCAP 1.0.1rc1 available for testing Guy Harris (Dec 21)
- Re: TCPDUMP 4.0.1rc1 and LIBPCAP 1.0.1rc1 available for testing Gianluca Varenni (Dec 21)
- Re: TCPDUMP 4.0.1rc1 and LIBPCAP 1.0.1rc1 Stephen Donnelly (Dec 21)
- TCPDUMP 4.0.1rc1 and LIBPCAP 1.0.1rc1 available for testing Ken Bantoft (Dec 02)
- Re: dlpisubs.c patches for libpcap-1.0.0 Guy Harris (Dec 02)