Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: redefinition of 'struct bpf_insn' using pcapplusplus #23

Open
navarrothiago opened this issue Sep 21, 2020 · 0 comments
Open

Error: redefinition of 'struct bpf_insn' using pcapplusplus #23

navarrothiago opened this issue Sep 21, 2020 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@navarrothiago
Copy link
Owner

navarrothiago commented Sep 21, 2020

linux/bpf.h:65:8: error: redefinition of 'struct bpf_insn'
 struct bpf_insn {
        ^~~~~~~~
In file included from /usr/include/pcap/pcap.h:51:0,
                 from /usr/include/pcap.h:43,
                 from /usr/local/include/pcapplusplus/PcapDevice.h:17,
                 from /usr/local/include/pcapplusplus/PcapLiveDevice.h:5,
                 from /usr/local/include/pcapplusplus/PcapLiveDeviceList.h:5,
                 from /workspaces/openair-cn-cups/test/integration/spgwu_tests.cpp:12:
/usr/include/pcap/bpf.h:238:8: note: previous definition of 'struct bpf_insn'
 struct bpf_insn {

here suggest to define PCAP_DONT_INCLUDE_PCAP_BPF_H, but here suggest avoiding this approach.

@navarrothiago navarrothiago added the help wanted Extra attention is needed label Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant