tcpdump mailing list archives

Re: libpcap0.9.8 compile error with DAG-enabled


From: Guy Harris <guy () alum mit edu>
Date: Sun, 06 Jan 2008 13:36:27 -0800

lei wei wrote:

When I was compiling libpcap0.9.8 with DAG-enabled, it gave me an error as
follows:

gcc -O2 -I.  -I/usr/local/dag/include -DHAVE_CONFIG_H
-D_U_="__attribute__((unused))" -c ./pcap-dag.c
./pcap-dag.c: In function `dag_open_live':
./pcap-dag.c:721: error: `p' undeclared (first use in this function)
./pcap-dag.c:721: error: (Each undeclared identifier is reported only once
./pcap-dag.c:721: error: for each function it appears in.)
*** Error code 1

I looked into the code and 'p' is not declared. But I'm not sure of what I
should replace it with.

Replace it with 'handle'. I've checked into the main, 1.0, and x.9 branches (in case we do another 0.9.x release) a fix that does that.

Or, alternatively, replace your version of the DAG libraries with a newer version, and recompile. That code is compiled only if HAVE_DAG_STREAMS_API isn't defined, which I think is the case only in older versions of the DAG libraries.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: