gpt4 book ai didi

gcc - 如何在 Mac 上构建 Firesheep? 'sys/types.h' 找不到文件

转载 作者:行者123 更新时间:2023-12-02 22:43:42 24 4
gpt4 key购买 nike

我在构建这个时遇到了问题;有没有人知道在哪里可以找到这个文件/要安装哪个库?

制作

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

最佳答案

问题已由 giblfizgithub 上解决:

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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com