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: Sat, 16 Mar 2002 22:50:03 +0000
Guy Harris [Sat, Mar 16, 2002 at 02:43:18PM -0800]:
> On Sat, Mar 16, 2002 at 10:17:36PM +0000, Nico Schottelius wrote:
> > I just installed libpcap some seconds ago, so there must be something wrong
> > with etherreal...
> 
> Or perhaps there's something wrong with your installation of libpcap.
> 
> For example, you might not have installed a "developer's package"; you
> might just have installed a package containing libpcap's shared library,
> but not its header files.  If you're going to compile Ethereal, you need
> the header files, not just the shared library.

the headers are there:

flapp:~ # ls -l /usr/lib/include/pcap
pcap-namedb.h  pcap.h
flapp:~ # ls -l /usr/lib/include/pcap*
-rw-r--r--    1 root     root         3326 Mar 16 16:59 /usr/lib/include/pcap-namedb.h
-rw-r--r--    1 root     root         7319 Mar 16 16:59 /usr/lib/include/pcap.h
flapp:~ # ls -l /usr/lib/include/net/bpf.h
-rw-r--r--    1 root     root        13586 Mar 16 16:59 /usr/lib/include/net/bpf.h

so there should be no problem, but even linking fails:
configure:3488: gcc -o conftest -D_U_="__attribute__((unused))" -Wall -W -Wno-un/usr/old-files/bin/ld: cannot find -lpcap
collect2: ld returned 1 exit status
configure: failed program was:
#line 3477 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    char pcap_open_live();

    int main() {
    pcap_open_live()
    ; return 0; }

And I don't know why, because pcap seems to be installed correctly..or what 
did i do wrong ?

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: pgpAWuS1QbQCw.pgp
Description: PGP signature