tcpdump mailing list archives

Re: tcpdump won't compile


From: Guy Harris <guy () alum mit edu>
Date: Tue, 13 Jan 2004 00:53:45 -0800

On Mon, Jan 12, 2004 at 08:25:30AM -0600, Price, Jason wrote:
Any ideas as to what the problem might be?

The problem is that the automatically-generated Makefile.in that comes
with Phil Wood's version of libpcap is broken - it does *NOT* supply an
argument of "-Dyylval=pcap_lval" when compiling grammar.c into
grammar.o, and therefore grammar.o refers to "yylval" while scanner.o
refers to "pcap_lval", resulting in an unusable libpcap.

That causes the "pcap_lval" errors; the other errors are caused by the
configuration script being screwed up by "pcap_lval" errors.

Try adding the line

        #define yylval pcap_lval

after

        #ifdef HAVE_CONFIG_H
        #include "config.h"
        #endif

in the "grammar.y" in Phil Wood's libpcap and rebuilding libpcap.  Then
go to the tcpdump directory, do "make distclean", re-run the configure
script, and rebuild tcpdump.
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe


Current thread: