NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/46803: Building mongodb fails with error message about redeclaration of bpf_filter and bpf_validate
>Number: 46803
>Category: lib
>Synopsis: Building mongodb fails with error message about redeclaration
>of bpf_filter and bpf_validate
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 15 19:45:00 +0000 2012
>Originator: hmax
>Release: 6.0_BETA2
>Organization:
>Environment:
NetBSD none.localdomain 6.0_BETA2 NetBSD 6.0_BETA2 (GENERIC) amd64
>Description:
While trying to build mongodb-2.0.7 from pkgsrc-wip I get following error:
/usr/pkgsrc/wip/mongodb/work/.wrapper/bin/c++ -o tools/sniffer.o -c
-Wnon-virtual-dtor -O2 -I/usr/pkg/include -I/usr/include -fPIC
-fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas
-Winvalid-pch -O3 -D_SCONS -DMONGO_EXPOSE_MACROS -D__netbsd__
-D_FILE_OFFSET_BITS=64 -DXP_UNIX -DNOEXECINFO -DMONGO_EXPOSE_MACROS -I.
-I/usr/pkg/include tools/sniffer.cpp
In file included from tools/sniffer.cpp:30:0:
/usr/include/pcap/bpf.h:382:8: error: previous declaration of 'u_int
bpf_filter(const bpf_insn*, const u_char*, u_int, u_int)' with 'C++' linkage
/usr/include/pcap.h:354:71: error: conflicts with new declaration with 'C'
linkage
/usr/include/pcap/bpf.h:381:6: error: previous declaration of 'int
bpf_validate(const bpf_insn*, int)' with 'C++' linkage
/usr/include/pcap.h:355:51: error: conflicts with new declaration with 'C'
linkage
Which seems like a problem in NetBSD includes
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index