{"action":"created","issue":{"url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/609","labels_url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/609/labels{/name}","comments_url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/609/comments","events_url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/609/events","html_url":"https://github.com/mitmproxy/mitmproxy/issues/609","id":85407035,"number":609,"title":"can't build mitmproxy 0.12.1 on pfSense 2.2.2/FreeBSD 10.1 -- can't build cffi dep, can't find limits.h","user":{"login":"creedflan738","id":1227027,"avatar_url":"https://avatars.githubusercontent.com/u/1227027?v=3","gravatar_id":"","url":"https://api.github.com/users/creedflan738","html_url":"https://github.com/creedflan738","followers_url":"https://api.github.com/users/creedflan738/followers","following_url":"https://api.github.com/users/creedflan738/following{/other_user}","gists_url":"https://api.github.com/users/creedflan738/gists{/gist_id}","starred_url":"https://api.github.com/users/creedflan738/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creedflan738/subscriptions","organizations_url":"https://api.github.com/users/creedflan738/orgs","repos_url":"https://api.github.com/users/creedflan738/repos","events_url":"https://api.github.com/users/creedflan738/events{/privacy}","received_events_url":"https://api.github.com/users/creedflan738/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-05T03:48:40Z","updated_at":"2015-06-05T13:20:40Z","closed_at":"2015-06-05T13:20:40Z","body":"pfSense 2.2.x is now based on FreeBSD 10.1, so I have the luxury of using some more modern software. Unfortunately FreeBSD ports still includes mitmproxy-0.10.1, where Transparent mode isn't supported. I understand this was fixed in mitmproxy-0.11.\r\n\r\nI'm a noob at massaging build dependencies manually so I may well be missing some obvious -devel library.\r\n\r\nAll attempts to either 'pip install mitmproxy' or to build from source fail at the same point.\r\n\r\nHere's netlib failing to build.\r\n\r\n    running build_ext\r\n    building '_cffi__x88a8fd90x94e38fe2' extension\r\n    creating /tmp/pip-build-SrTHd4/netlib/netlib/__pycache__/netlib\r\n    creating /tmp/pip-build-SrTHd4/netlib/netlib/__pycache__/netlib/__pycache__\r\n    cc -fno-strict-aliasing -O2 -pipe -fstack-protector -fno-strict-aliasing -DNDEBUG -fPIC -I/usr/local/include/python2.7 -c netlib/__pycache__/_cffi__x88a8fd90x94e38fe2.c -o /tmp/pip-build-SrTHd4/netlib/netlib/__pycache__/netlib/__pycache__/_cffi__x88a8fd90x94e38fe2.o -w\r\n    In file included from /usr/local/lib/gcc5/gcc/x86_64-portbld-freebsd10.1/5.1.0/include-fixed/syslimits.h:7:0,\r\n                     from /usr/local/lib/gcc5/gcc/x86_64-portbld-freebsd10.1/5.1.0/include-fixed/limits.h:34,\r\n                     from /usr/local/include/python2.7/Python.h:19,\r\n                     from netlib/__pycache__/_cffi__x88a8fd90x94e38fe2.c:2:\r\n    /usr/local/lib/gcc5/gcc/x86_64-portbld-freebsd10.1/5.1.0/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory\r\n    compilation terminated.\r\n\r\nFull log: http://pastebin.com/YYzz9qCX\r\n\r\n(I've also tried with gcc-4.8.4 and gcc49-4.9.3, it didn't make a difference.)\r\n\r\nHere's cffi failing to build:\r\nhttp://pastebin.com/PRaDaFM1\r\n\r\nHere's the dump of all the packages I currently have installed.\r\nhttp://pastebin.com/Czt0F8cH\r\n\r\nedit: here's what I have installed via pip  http://pastebin.com/yiZ9jWVx\r\n\r\nAlthough I have py27-cffi-0.8.6_3 and libffi-3.2.1 installed, but neither seems to satisfy the dependency.\r\n\r\nYou can grab current pfSense here: https://www.pfsense.org/download/mirror.php?section=downloads\r\n\r\nThanks in advance for any pointers on getting 0.12 installed."},"comment":{"url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/comments/109291257","html_url":"https://github.com/mitmproxy/mitmproxy/issues/609#issuecomment-109291257","issue_url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/609","id":109291257,"user":{"login":"mhils","id":1019198,"avatar_url":"https://avatars.githubusercontent.com/u/1019198?v=3","gravatar_id":"","url":"https://api.github.com/users/mhils","html_url":"https://github.com/mhils","followers_url":"https://api.github.com/users/mhils/followers","following_url":"https://api.github.com/users/mhils/following{/other_user}","gists_url":"https://api.github.com/users/mhils/gists{/gist_id}","starred_url":"https://api.github.com/users/mhils/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhils/subscriptions","organizations_url":"https://api.github.com/users/mhils/orgs","repos_url":"https://api.github.com/users/mhils/repos","events_url":"https://api.github.com/users/mhils/events{/privacy}","received_events_url":"https://api.github.com/users/mhils/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T13:20:40Z","updated_at":"2015-06-05T13:20:40Z","body":"This is apparently answered in https://forum.pfsense.org/index.php?topic=94838.0. Once you get cffi installed successfully, mitmproxy should follow trivially."}}