tcpdump mailing list archives

unable to build current libpcap git


From: Peter Volkov <pva () gentoo org>
Date: Thu, 23 Jul 2009 10:47:51 +0400

Attempt to build recent git libpcap fails with the following error:

i686-pc-linux-gnu-gcc -O2 -fpic -O2 -march=i686 -pipe -mtune=i686 -march=pentium-m -ggdb -U_FORTIFY_SOURCE -I.  
-DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./pcap-linux.c
./pcap-linux.c: In function 'pcap_oneshot_mmap':
./pcap-linux.c:2750: error: dereferencing pointer to incomplete type
./pcap-linux.c:2751: error: dereferencing pointer to incomplete type
./pcap-linux.c:2752: error: dereferencing pointer to incomplete type
./pcap-linux.c:2752: error: dereferencing pointer to incomplete type
make: *** [pcap-linux.o] Error 1

Patch in attachment fixes the issue but I'm unsure how sane it is.

-- 
Peter.

Attachment: libpcap-typo.patch
Description:

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

Current thread: