Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyopenssl==0.13 build error on Mac #155

Closed
hubert3 opened this issue May 18, 2015 · 7 comments
Closed

pyopenssl==0.13 build error on Mac #155

hubert3 opened this issue May 18, 2015 · 7 comments

Comments

@hubert3
Copy link

hubert3 commented May 18, 2015

Attempting to install pyopenssl==0.13 on Mac OS X Yosemite with current Xcode, you run into the following cc error:

OpenSSL/crypto/crl.c:6:23: error: static declaration of 'X509_REVOKED_dup' follows non-static declaration

Changing the requirement to pyopenssl==0.14 fixes this.

@cacophonix
Copy link

How did you change the requirement ?

@ken5scal
Copy link

ken5scal commented Sep 9, 2015

change following line, then do 'python setup.py install '

  • before
install_requires = ["protobuf==2.4.1", "pyopenssl==0.13"],
  • after
install_requires = ["protobuf==2.4.1", "pyopenssl==0.15"],

@HenryHoggard
Copy link
Contributor

Fixed in #182

@zbuc
Copy link

zbuc commented May 9, 2016

Issue still happens in the distributed .egg I downloaded from https://labs.mwrinfosecurity.com/system/assets/933/original/drozer-2.3.4.tar.gz still tries to use pyopenssl-0.13

@nixawk
Copy link
Contributor

nixawk commented Dec 13, 2016

Is a new release package for pyopenssl-0.1x ? It's better to put drozer into https://pypi.python.org/

root@sh:~/andriod_security# easy_install drozer-2.3.4-py2.7.egg
Processing drozer-2.3.4-py2.7.egg
creating /usr/local/lib/python2.7/dist-packages/drozer-2.3.4-py2.7.egg
Extracting drozer-2.3.4-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding drozer 2.3.4 to easy-install.pth file
Installing drozer-complete script to /usr/local/bin
Installing drozer script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/drozer-2.3.4-py2.7.egg
Processing dependencies for drozer==2.3.4
Searching for pyopenssl==0.13
Reading https://pypi.python.org/simple/pyopenssl/
Downloading https://pypi.python.org/packages/8b/20/8f4230b281a2a9d0ee9e24fd89aeded0b25d40c84b3d61100a96438e1626/pyOpenSSL-0.13.tar.gz#md5=767bca18a71178ca353dff9e10941929
Best match: pyOpenSSL 0.13
Processing pyOpenSSL-0.13.tar.gz
Writing /tmp/easy_install-PvoNSh/pyOpenSSL-0.13/setup.cfg
Running pyOpenSSL-0.13/setup.py -q bdist_egg --dist-dir /tmp/easy_install-PvoNSh/pyOpenSSL-0.13/egg-dist-tmp-apQ3Q5
warning: no previously-included files matching '*.pyc' found anywhere in distribution
OpenSSL/crypto/crl.c:6:23: error: static declaration of 'X509_REVOKED_dup' follows non-static declaration
 static X509_REVOKED * X509_REVOKED_dup(X509_REVOKED *orig) {
                       ^~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/ssl.h:156:0,
                 from OpenSSL/crypto/x509.h:17,
                 from OpenSSL/crypto/crypto.h:30,
                 from OpenSSL/crypto/crl.c:3:
/usr/include/openssl/x509.h:751:15: note: previous declaration of 'X509_REVOKED_dup' was here
 X509_REVOKED *X509_REVOKED_dup(X509_REVOKED *rev);
               ^~~~~~~~~~~~~~~~
error: Setup script exited with error: command 'i686-linux-gnu-gcc' failed with exit status 1
root@sh:~/andriod_security# uname -a
Linux sh 4.6.0-kali1-686-pae #1 SMP Debian 4.6.4-1kali1 (2016-07-21) i686 GNU/Linux

@HenryHoggard
Copy link
Contributor

You are trying to install 2.3.4 which doesn't have the fix, please install a newer version.

@nixawk
Copy link
Contributor

nixawk commented Dec 13, 2016

Thanks @HenryHoggard. The newer version is ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants