{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/8044","repository_url":"https://api.github.com/repos/Homebrew/homebrew-core","labels_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/8044/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/8044/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/8044/events","html_url":"https://github.com/Homebrew/homebrew-core/issues/8044","id":196524600,"number":8044,"title":"fabric run-time linking problem on 10.11 (_getentropy)","user":{"login":"ploxiln","id":649835,"avatar_url":"https://avatars.githubusercontent.com/u/649835?v=3","gravatar_id":"","url":"https://api.github.com/users/ploxiln","html_url":"https://github.com/ploxiln","followers_url":"https://api.github.com/users/ploxiln/followers","following_url":"https://api.github.com/users/ploxiln/following{/other_user}","gists_url":"https://api.github.com/users/ploxiln/gists{/gist_id}","starred_url":"https://api.github.com/users/ploxiln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ploxiln/subscriptions","organizations_url":"https://api.github.com/users/ploxiln/orgs","repos_url":"https://api.github.com/users/ploxiln/repos","events_url":"https://api.github.com/users/ploxiln/events{/privacy}","received_events_url":"https://api.github.com/users/ploxiln/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-19T21:26:37Z","updated_at":"2016-12-20T23:36:28Z","closed_at":null,"body":"@stxml reported that fabric failed to connect to remote hosts on his system (macOS 10.11.6), with this backtrace:\r\n\r\n```\r\nFile \"/usr/local/Cellar/fabric/1.13.1/libexec/vendor/lib/python2.7/site-packages/paramiko/hostkeys.py\", line 101, in load\r\n    e = HostKeyEntry.from_line(line, lineno)\r\nFile \"/usr/local/Cellar/fabric/1.13.1/libexec/vendor/lib/python2.7/site-packages/paramiko/hostkeys.py\", line 335, in from_line\r\n    key = ECDSAKey(data=decodebytes(key), validate_point=False)\r\nFile \"/usr/local/Cellar/fabric/1.13.1/libexec/vendor/lib/python2.7/site-packages/paramiko/ecdsakey.py\", line 138, in __init__\r\n    self.verifying_key = numbers.public_key(backend=default_backend())\r\nFile \"/usr/local/Cellar/fabric/1.13.1/libexec/vendor/lib/python2.7/site-packages/cryptography/hazmat/backends/__init__.py\", line 71, in default_backend\r\n    _default_backend = MultiBackend(_available_backends())\r\nFile \"/usr/local/Cellar/fabric/1.13.1/libexec/vendor/lib/python2.7/site-packages/cryptography/hazmat/backends/__init__.py\", line 28, in _available_backends\r\n    \"cryptography.backends\"\r\nFile \"/usr/local/Cellar/fabric/1.13.1/libexec/vendor/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 2297, in resolve\r\n    module = __import__(self.module_name, fromlist=['__name__'], level=0)\r\nFile \"/usr/local/Cellar/fabric/1.13.1/libexec/vendor/lib/python2.7/site-packages/cryptography/hazmat/backends/openssl/__init__.py\", line 7, in <module>\r\n    from cryptography.hazmat.backends.openssl.backend import backend\r\nFile \"/usr/local/Cellar/fabric/1.13.1/libexec/vendor/lib/python2.7/site-packages/cryptography/hazmat/backends/openssl/backend.py\", line 51, in <module>\r\n    from cryptography.hazmat.bindings._openssl import ffi as _ffi\r\n    ImportError: dlopen(/usr/local/Cellar/fabric/1.13.1/libexec/vendor/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so, 2): Symbol not found: _getentropy\r\n    Referenced from: /usr/local/Cellar/fabric/1.13.1/libexec/vendor/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so\r\n    Expected in: /usr/lib/libSystem.B.dylib in /usr/local/Cellar/fabric/1.13.1/libexec/vendor/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so\r\n```\r\n\r\nThis looks like the problem described here: https://gitlab.com/gnutls/gnutls/issues/142\r\n\r\n> So it's defined but not actually available on 10.11, and you won't find that out at build time unless you pass -no_weak_imports in LDFLAGS. (Note that you can't easily do that because that flag is not supported on earlier versions of Xcode, including the CLT 7.3.1 which is the latest available for 10.11. So even if Xcode 8 is installed, using -no_weak_imports can still fail, which is a case you have to be prepared to handle if you use that flag.)\r\n\r\n> But assuming you don't pass -no_weak_imports it will find getentropy is defined in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/random.h and compile, but then crash at run time.\r\n\r\nBut strangely, I do not experience this problem myself, though I also use macOS 10.11.6.\r\n\r\nThis was pointed out and discussed in #8006 but I've broken it out into a separate issue to hopefully get some more tips for solving this problem.\r\n\r\nRight now I guess the best solution may be to downgrade the vendored paramiko dependency to the latest 1.x (instead of the just-upgraded-to 2.x which is what uses the \"cryptography\" module which causes this problem), and wait for a build fix upstream in \"cryptography\"?"},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/comments/268390779","html_url":"https://github.com/Homebrew/homebrew-core/issues/8044#issuecomment-268390779","issue_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/8044","id":268390779,"user":{"login":"stxml","id":17411464,"avatar_url":"https://avatars.githubusercontent.com/u/17411464?v=3","gravatar_id":"","url":"https://api.github.com/users/stxml","html_url":"https://github.com/stxml","followers_url":"https://api.github.com/users/stxml/followers","following_url":"https://api.github.com/users/stxml/following{/other_user}","gists_url":"https://api.github.com/users/stxml/gists{/gist_id}","starred_url":"https://api.github.com/users/stxml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stxml/subscriptions","organizations_url":"https://api.github.com/users/stxml/orgs","repos_url":"https://api.github.com/users/stxml/repos","events_url":"https://api.github.com/users/stxml/events{/privacy}","received_events_url":"https://api.github.com/users/stxml/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T23:36:28Z","updated_at":"2016-12-20T23:36:28Z","body":"I have Xcode 8.2 installed. I had not launched it yet, so it had to install components. I tried building from source again, but no change.\r\n\r\n```\r\nHOMEBREW_VERSION: 1.1.5\r\nORIGIN: https://github.com/Homebrew/brew.git\r\nHEAD: 9cd5a21b473f0271b162bbe7f77f7d1468c0cfa1\r\nLast commit: 7 days ago\r\nCore tap ORIGIN: https://github.com/Homebrew/homebrew-core\r\nCore tap HEAD: 3977167695b3cc0e917370191c44a42046e61a40\r\nCore tap last commit: 29 hours ago\r\nHOMEBREW_PREFIX: /usr/local\r\nHOMEBREW_REPOSITORY: /usr/local/Homebrew\r\nHOMEBREW_CELLAR: /usr/local/Cellar\r\nHOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com\r\nCPU: dual-core 64-bit penryn\r\nHomebrew Ruby: 2.0.0-p648\r\nClang: 8.0 build 800\r\nGit: 2.11.0 => /usr/local/bin/git\r\nPerl: /usr/bin/perl\r\nPython: /usr/local/bin/python => /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/bin/python2.7\r\nRuby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby\r\nJava: N/A\r\nmacOS: 10.11.6-x86_64\r\nXcode: 8.2\r\nCLT: 8.2.0.0.1.1480973914\r\nX11: N/A\r\n```\r\n\r\nAs a temp workaround, I installed Fabric with `pip` instead of `homebrew` and it doesn't have the error."}}
{"actor":{"display_login":"stxml"}}