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

cannot compile nfpcapd in 1.7.3 #480

Closed
philhagen opened this issue Oct 30, 2023 · 2 comments
Closed

cannot compile nfpcapd in 1.7.3 #480

philhagen opened this issue Oct 30, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@philhagen
Copy link

using the same ./configure statement, compilation works fine with 1.7.2, but in 1.7.3, the following is reported:

checking pcap.h usability... no
checking pcap.h presence... yes
configure: WARNING: pcap.h: present but cannot be compiled
configure: WARNING: pcap.h:     check for missing prerequisite headers?
configure: WARNING: pcap.h: see the Autoconf documentation
configure: WARNING: pcap.h:     section "Present But Cannot Be Compiled"
configure: WARNING: pcap.h: proceeding with the compiler's result
configure: WARNING:     ## ----------------------------------------- ##
configure: WARNING:     ## Report this to peter@people.ops-trust.net ##
configure: WARNING:     ## ----------------------------------------- ##
checking for pcap.h... no
configure: error: Required pcap.h header file not found!

this is on a CentOS 7 system with libpcap-devel 1.5.3.

I've attached config.log from the failed ./configure, but the problem is a lot of errors such as the following:

/usr/include/pcap/bpf.h:91:1: error: unknown type name 'u_int'
 typedef u_int bpf_u_int32;
 ^

If I omit --enable-nfpcapd, ./configure exits cleanly.

@philhagen philhagen changed the title cannot compile --enable-nfpcapd in 1.7.3 cannot compile nfpcapd in 1.7.3 Oct 30, 2023
@phaag
Copy link
Owner

phaag commented Nov 1, 2023

Hmm .. CentOS headers seem not to be compatible with c99, which is the fallback.

@phaag phaag self-assigned this Nov 1, 2023
@phaag phaag added the bug Something isn't working label Nov 1, 2023
@phaag phaag closed this as completed in cbc617f Nov 1, 2023
@phaag
Copy link
Owner

phaag commented Nov 1, 2023

It is fixed in latest master repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants