DanMcInerney / net-creds

Sniffs sensitive data from interface or pcap
GNU General Public License v3.0
1.7k stars 438 forks source link

PyPcap Install Fails on OS X 10.8.5 #7

Closed ajnachakra closed 9 years ago

ajnachakra commented 9 years ago
$ pip install pypcap 

fails with:

clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -DHAVE_PCAP_SETNONBLOCK=1 -DHAVE_PCAP_COMPILE_NOPCAP=1 -DHAVE_PCAP_FILE=1 -I/usr/include/pcap -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pcap.c -o build/temp.macosx-10.8-intel-2.7/pcap.o

clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

clang: note: this will be a hard error (cannot be downgraded to a warning) in the future

error: command 'clang' failed with exit status 1

I tried, to no avail, a suggested workaround:

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install pcap

Any other ideas?

Context:

DanMcInerney commented 9 years ago

I'm thinking the pcap lib isn't necessary. I think I just added it in by mistake. I updated the script without "import pcap".

ajnachakra commented 9 years ago

Thanks for the quick response =) I'll reclone and run again.