如何在Mac上建立Firesheep? “SYS / types.h中'文件未找到 [英] How to build Firesheep on Mac? 'sys/types.h' file not found
本文介绍了如何在Mac上建立Firesheep? “SYS / types.h中'文件未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在建立这个问题;有没有人有任何想法,在哪里可以找到这个文件/安装哪些库?
让
使所有的后端
/ bin / sh的../libtool --tag = CC --mode =编译铛-DPACKAGE_NAME = \\Firesheep \\-DPACKAGE_TARNAME = \\firesheep \\-DPACKAGE_VERSION = \\0.1 \\-DPACKAGE_STRING = \\Firesheep \\ 0.1 \\-DPACKAGE_BUGREPORT = \\eric@$c$cbutler.com \\-DPACKAGE_URL = \\的http://$c$cbutler.github.com/firesheep \\-DPACKAGE = \\firesheep \\-DVERSION = \\0.1 \\-DSTDC_HEADERS = 1 -DHAVE_SYS_TYPES_H = 1 -DHAVE_SYS_STAT_H = 1 -DHAVE_STDLIB_H = 1 -DHAVE_STRING_H = 1 -DHAVE_MEMORY_H = 1 -DHAVE_STRINGS_H = 1 -DHAVE_INTTYPES_H = 1 -DHAVE_STDINT_H = 1 -DHAVE_UNISTD_H = 1 -DHAVE_DLFCN_H = 1 - DLT_OBJDIR = \\。库/ \\-DHAVE_BOOST = 1 -DHAVE_BOOST_FORMAT_HPP = 1 -DHAVE_BOOST_ALGORITHM_STRING_HPP = 1 -I。 -I DEPS / -I DEPS / HTTP分析器-I DEPS / json_spirit -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx版本分钟= 10.6 -Wall -g -O0 -DPLATFORM_OSX -arch i386的-arch x86_64的-MT libfiresheep_la-http_parser.lo -MD -MP -MF .deps / libfiresheep_la-http_parser.Tpo -c -o libfiresheep_la-http_parser.lo`测试-fDEPS / HTTP解析器/ http_parser.c'||回声./'`deps/http-parser/http_parser.c
libtool的:编译:铿锵-DPACKAGE_NAME = \\Firesheep \\-DPACKAGE_TARNAME = \\firesheep \\-DPACKAGE_VERSION = \\0.1 \\-DPACKAGE_STRING = \\Firesheep 0.1 \\-DPACKAGE_BUGREPORT = \\埃里克@ codebutler.com \\-DPACKAGE_URL = \\的http://$c$cbutler.github.com/firesheep \\-DPACKAGE = \\firesheep \\-DVERSION = \\0.1 \\-DSTDC_HEADERS = 1 -DHAVE_SYS_TYPES_H = 1 -DHAVE_SYS_STAT_H = 1 -DHAVE_STDLIB_H = 1 -DHAVE_STRING_H = 1 -DHAVE_MEMORY_H = 1 -DHAVE_STRINGS_H = 1 -DHAVE_INTTYPES_H = 1 -DHAVE_STDINT_H = 1 -DHAVE_UNISTD_H = 1 -DHAVE_DLFCN_H = 1 -DLT_OBJDIR = \\。库/ \\-DHAVE_BOOST = 1 -DHAVE_BOOST_FORMAT_HPP = 1 -DHAVE_BOOST_ALGORITHM_STRING_HPP = 1 -I。 -I DEPS / -I DEPS / HTTP分析器-I DEPS / json_spirit -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx版本分钟= 10.6 -Wall -g -O0 -DPLATFORM_OSX -arch i386的-arch x86_64的-MT libfiresheep_la-http_parser.lo -MD -MP -MF .deps / libfiresheep_la-http_parser.Tpo -c DEPS / HTTP解析器/ http_parser.c -fno常见-DPIC -o的.libs / libfiresheep_la-http_parser.o
在文件从DEPS包含/ HTTP的解析器/ http_parser.c:21:
DEPS / HTTP的解析器/ http_parser.h:28:10:致命错误:'SYS / types.h中'文件未找到
#包括LT&; SYS / types.h中>
^
产生1个错误。
使[1]:*** [libfiresheep_la-http_parser.lo]错误1
使:*** [所有递归]错误1
的gcc --version 生产:
的i686-苹果darwin11-LLVM-GCC-4.2(GCC)4.2.1(基于苹果公司建立5658)(LLVM建2336.9.00)
的/ usr / bin中/ sw_vers
产品名称:Mac OS X的
的ProductVersion:10.7.3
BuildVersion:11D2001
解决方案
问题已经通过的 giblfiz 上的 github上:
在configure.ac改变CFLAGS DEF
块引用>CFLAGS = -isysroot /Applications/X$c$c.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx版本-min = 10.7
I'm having problems building this; has anyone got any ideas as to where to find this file / which library to install?
make
Making all in backend /bin/sh ../libtool --tag=CC --mode=compile clang -DPACKAGE_NAME=\"Firesheep\" -DPACKAGE_TARNAME=\"firesheep\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"Firesheep\ 0.1\" -DPACKAGE_BUGREPORT=\"eric@codebutler.com\" -DPACKAGE_URL=\"http://codebutler.github.com/firesheep\" -DPACKAGE=\"firesheep\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_BOOST=1 -DHAVE_BOOST_FORMAT_HPP=1 -DHAVE_BOOST_ALGORITHM_STRING_HPP=1 -I. -I deps/ -I deps/http-parser -I deps/json_spirit -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -Wall -g -O0 -DPLATFORM_OSX -arch i386 -arch x86_64 -MT libfiresheep_la-http_parser.lo -MD -MP -MF .deps/libfiresheep_la-http_parser.Tpo -c -o libfiresheep_la-http_parser.lo `test -f 'deps/http-parser/http_parser.c' || echo './'`deps/http-parser/http_parser.c libtool: compile: clang -DPACKAGE_NAME=\"Firesheep\" -DPACKAGE_TARNAME=\"firesheep\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"Firesheep 0.1\"" -DPACKAGE_BUGREPORT=\"eric@codebutler.com\" -DPACKAGE_URL=\"http://codebutler.github.com/firesheep\" -DPACKAGE=\"firesheep\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_BOOST=1 -DHAVE_BOOST_FORMAT_HPP=1 -DHAVE_BOOST_ALGORITHM_STRING_HPP=1 -I. -I deps/ -I deps/http-parser -I deps/json_spirit -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -Wall -g -O0 -DPLATFORM_OSX -arch i386 -arch x86_64 -MT libfiresheep_la-http_parser.lo -MD -MP -MF .deps/libfiresheep_la-http_parser.Tpo -c deps/http-parser/http_parser.c -fno-common -DPIC -o .libs/libfiresheep_la-http_parser.o In file included from deps/http-parser/http_parser.c:21: deps/http-parser/http_parser.h:28:10: fatal error: 'sys/types.h' file not found #include <sys/types.h> ^ 1 error generated. make[1]: *** [libfiresheep_la-http_parser.lo] Error 1 make: *** [all-recursive] Error 1
gcc --version produces:
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
/usr/bin/sw_vers
ProductName: Mac OS X
ProductVersion: 10.7.3
BuildVersion: 11D2001
解决方案Issue has been solved by giblfiz on github:
change the CFLAGS def in configure.ac
CFLAGS = -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.7
这篇关于如何在Mac上建立Firesheep? “SYS / types.h中'文件未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文