tcpdump mailing list archives
Re: Cannot find -lpcap when statically compiling a C project
From: Jamie Bainbridge <jamie.bainbridge () gmail com>
Date: Sat, 21 Nov 2015 09:06:48 +1000
On 21 November 2015 at 08:15, liu wen <caonimagongling () gmail com> wrote:
thank you very much! then how to compile the source codes to make a libpcap.a from the libpcap source codes?
$ tar xf libpcap-1.7.4.tar.gz $ cd libpcap-1.7.4/ $ ./configure $ make $ find . -name libpcap.a ./libpcap.a You may have to install some additional stuff like flex and bison. It's been a while since I used Fedora but yum groupinstall "Development tools" brings in a lot of useful things.
On Fri, Nov 20, 2015 at 6:58 PM, Guy Harris <guy () alum mit edu> wrote:On Nov 20, 2015, at 12:32 AM, Jamie Bainbridge <jamie.bainbridge () gmail com> wrote:Fedora has glibc-static, but no libpcap-static.Then he'll have to build libpcap from source. I would suggest building with the *latest* version of libpcap from tcpdump.org, currently 1.7.4: http://www.tcpdump.org/#latest-release to see whether it's better than either the 1.3.0 on the machines where it wasn't having problems of the 1.5.3 on the machines where it was.
_______________________________________________ tcpdump-workers mailing list tcpdump-workers () lists tcpdump org https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers
Current thread:
- Cannot find -lpcap when statically compiling a C project liu wen (Nov 19)
- Re: Cannot find -lpcap when statically compiling a C project Guy Harris (Nov 19)
- Re: Cannot find -lpcap when statically compiling a C project liu wen (Nov 19)
- Re: Cannot find -lpcap when statically compiling a C project Guy Harris (Nov 19)
- Re: Cannot find -lpcap when statically compiling a C project Jamie Bainbridge (Nov 20)
- Re: Cannot find -lpcap when statically compiling a C project Guy Harris (Nov 20)
- Re: Cannot find -lpcap when statically compiling a C project liu wen (Nov 20)
- Re: Cannot find -lpcap when statically compiling a C project Jamie Bainbridge (Nov 20)
- Re: Cannot find -lpcap when statically compiling a C project liu wen (Nov 19)
- Re: Cannot find -lpcap when statically compiling a C project Guy Harris (Nov 19)