如何在 Mac 上构建 Firesheep?找不到“sys/types.h"文件 [英] How to build Firesheep on Mac? 'sys/types.h' file not found

查看:24
本文介绍了如何在 Mac 上构建 Firesheep?找不到“sys/types.h"文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm having problems building this; has anyone got any ideas as to where to find this file / which library to install?

制作

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

ProductName: Mac OS X

产品版本:10.7.3

ProductVersion: 10.7.3

构建版本:11D2001

BuildVersion: 11D2001

推荐答案

问题已由 giblfizgithub:

更改configure.ac中的CFLAGS定义

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆