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

errors compiling #2

Open
v1k0d3n opened this issue Jun 19, 2015 · 3 comments
Open

errors compiling #2

v1k0d3n opened this issue Jun 19, 2015 · 3 comments

Comments

@v1k0d3n
Copy link

v1k0d3n commented Jun 19, 2015

./configure: line 410: test: pcap-bpf.h: integer expression expected
configure: error: pcap.h
./configure: line 299: return: pcap-bpf.h: numeric argument required
./configure: line 309: exit: pcap-bpf.h: numeric argument required

seems like i get this issue too. when i try to brew libpcap it states that it's already included with OSX:

Error: No available formula for libpcap
Apple distributes libpcap with OS X, you can find it in /usr/lib.

if I compile with the /usr/lib directory, i get the error above. has anyone seen this happen on their platform as well? what's the best work around for this issue (i have tried compiling with Xcode's libpcap as well, with same issue)...

@fr3nch13
Copy link

I'm having the same errors. I'm compiling on OS X 10.11

checking for libpcap... /usr/local/opt/libpcap
./configure: line 410: test: pcap-bpf.h: integer expression expected
configure: error: pcap.h
./configure: line 299: return: pcap-bpf.h: numeric argument required
./configure: line 309: exit: pcap-bpf.h: numeric argument required

As v1k0d3n commented about libpcap, I also tried Apple's copy, and to the same error as well:

checking for libpcap... /usr/lib/libpcap.dylib
./configure: line 410: test: pcap-bpf.h: integer expression expected
configure: error: pcap.h
./configure: line 299: return: pcap-bpf.h: numeric argument required
./configure: line 309: exit: pcap-bpf.h: numeric argument required

I was able to get it to compile by dropping the pcap line:
./configure
--with-openssl=/usr/local/opt/openssl
--with-libnet=/usr/local/opt/libnet
--with-libnids=/usr/local/opt/libnids
--without-x

Currently, I'm getting this:
$ ./mailsnarf
libnet_open_raw4(): SOCK_RAW allocation failed: Operation not permitted

mailsnarf: Bad file descriptor

Update: I'm an idiot. Run it with sudo.
https://trac.macports.org/ticket/38049#comment:3

@v1k0d3n
Copy link
Author

v1k0d3n commented Aug 17, 2015

@fr3nch13 so it all works for you now?

@fr3nch13
Copy link

Yeah, I just wanted to share what I did in case others have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants