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: Nico Schottelius <nicos-mutt@xxxxxxxxxxxx>
Date: Thu, 21 Mar 2002 13:37:26 +0000
Guy Harris [Thu, Mar 21, 2002 at 12:10:04AM -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.

that's good.

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

Damn! I found the problem! It was just a typo:
I added -I/usr/lib/lib to gcc options, but meant -L/usr/lib/lib , so he 
couldn't find it.

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

in /usr/lib are more or less no libs in my system. I got a different
file system hierachie.
I will release it on linux.schottelius.org/projects/FSH in autumn 2002.

> You said you specified "/usr/lib" as the prefix.

For pcap, yes, for etherreal it was /usr/net.

> Is there also a "/usr/lib/include" directory, with a "pcap.h" header? 

yes.

Thanks for you help!
At the moment etherreal is compiling (although with some pcap problems,
which I had to fix in the Makefile, but it compiles).


Nico

-- 
Nico Schottelius

Please send your messages pgp-signed or pgp-encrypted.
If you don't know what pgp is visit www.gnupg.org.
(public pgp key: ftp.schottelius.org/pub/familiy/nico/pgp-key)

Attachment: pgpc7qB9uqS5m.pgp
Description: PGP signature