Ethereal-dev: Re: [Ethereal-dev] trying to compile fails (although it shouldn't...)

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Thu, 21 Mar 2002 00:10:04 -0800
On Thu, Mar 21, 2002 at 08:03:54AM +0000, Nico Schottelius wrote:
> flapp:/usr/lib/lib # ls /usr/lib/lib/*pcap*
> /usr/lib/lib/libpcap.a
> 
> Or can't gcc handle archives ?

GCC (or, rather, the GNU linker, run by GCC) *can* handle archives.

However, it expects them to be in "/usr/lib", not "/usr/lib/lib".

Try moving "libpcap.a" to "/usr/lib", and getting rid of "/usr/lib/lib".

You said you specified "/usr/lib" as the prefix.  If you mean that you
specified "--prefix=/usr/lib" when you ran the configure script when
building libpcap from source, or otherwise told it to install files in
subdirectories of "/usr/lib", that was a mistake - you should've just
specified "/usr", so it'll install it in subdirectories of "/usr".

Is there also a "/usr/lib/include" directory, with a "pcap.h" header? 
If so, move that header to "/usr/include", and get rid of
"/usr/lib/include".