Hi,
while trying to compile libpcap-2005.04.11 on NetBSD-1.6.2, I got this error:
------------------------
$ make
gcc -O2 -I. -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./pcap-bpf.c
./pcap-bpf.c: In function `pcap_open_live':
./pcap-bpf.c:732: parse error before `:'
*** Error code 1

Stop.
make: stopped in /tmp/aaa/libpcap-2005.04.11
------------------------

to solve this error, apply the following patch.
------------------------
diff -ur libpcap-2005.04.11.orig/pcap-bpf.c libpcap-2005.04.11/pcap-bpf.c
--- libpcap-2005.04.11.orig/pcap-bpf.c  Sun Feb 27 06:58:05 2005
+++ libpcap-2005.04.11/pcap-bpf.c       Mon Apr 11 22:12:18 2005
@@ -729,7 +729,7 @@
 #endif
 #ifdef PCAP_FDDIPAD
        if (v == DLT_FDDI)
-               p->fddipad = PCAP_FDDIPAD:
+               p->fddipad = PCAP_FDDIPAD;
        else
                p->fddipad = 0;
 #endif
------------------------




-----------------------------------------------
2GBまでメールや画像など貯め放題!さらに特典いっぱい♪
livedoor ギガメーラープラス 【新登場】
http://gigamailerplus.livedoor.com/

-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.

Reply via email to