作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在构建这个时遇到了问题;有没有人知道在哪里可以找到这个文件/要安装哪个库?
制作
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 产生:
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
产品名称:Mac OS X
产品版本:10.7.3
构建版本:11D2001
最佳答案
问题已由 giblfiz 在 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
关于gcc - 如何在 Mac 上构建 Firesheep? 'sys/types.h' 找不到文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10365645/
我是一名优秀的程序员,十分优秀!