[openssl-users] [ANN] M2Crypto 0.27.0

Blumenthal, Uri - 0553 - MITLL uri at ll.mit.edu
Tue Oct 10 21:17:29 UTC 2017

I have to report that this M2Crypto release is broken, as it cannot find OpenSSL installed in /opt/local (apologies for spamming multiple lists and people):

/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/private/tmp/pip-build-lqb2R6/M2Crypto/SWIG -c SWIG/_m2crypto_wrap.c -o build/temp.macosx-10.12-x86_64-2.7/SWIG/_m2crypto_wrap.o -Wno-deprecated-declarations
    SWIG/_m2crypto_wrap.c:2894:9: warning: variable 'res' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
        if (PyType_Ready(tp) < 0)
    SWIG/_m2crypto_wrap.c:2918:10: note: uninitialized use occurs here
      return res;
    SWIG/_m2crypto_wrap.c:2894:5: note: remove the 'if' if its condition is always false
        if (PyType_Ready(tp) < 0)
    SWIG/_m2crypto_wrap.c:2875:10: note: initialize the variable 'res' to silence this warning
      int res;
              = 0
    SWIG/_m2crypto_wrap.c:3554:10: fatal error: 'openssl/err.h' file not found
    #include <openssl/err.h>
    1 warning and 1 error generated.
    error: command '/usr/bin/clang' failed with exit status 1
Command "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-lqb2R6/M2Crypto/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-VYOp3p-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-lqb2R6/M2Crypto/

Uri Blumenthal

On 10/5/17, 18:06, "openssl-users on behalf of Matěj Cepl" <openssl-users-bounces at openssl.org on behalf of mcepl at cepl.eu> wrote:

    M2Crypto is the most complete Python wrapper for OpenSSL
    featuring RSA, DSA, DH, EC, HMACs, message digests, symmetric
    ciphers; SSL functionality to implement clients and servers;
    HTTPS extensions to Python’s httplib, urllib, and xmlrpclib;
    unforgeable HMAC’ing AuthCookies for web session management;
    FTP/TLS client and server; S/MIME. M2Crypto can also be used to
    provide SSL for Twisted. Smartcards supported through the Engine
    This is another less earth-shattering release (after 0.26.2 which
    brought us OpenSSL 1.1.0 compatbility), one more step towards
    Python 3 compatibility nirvana, still more cleanups and
    accumulated bug fixes, which could be resolved before the big
    python3 branch is merged.
    The release is available on
    https://pypi.python.org/pypi/M2Crypto/ and all communication with
    the maintainer (that’s me) should go to
    Talking about the python3 branch, ALL TESTS PASS on all Pythons
    from 2.6, 2.7, 3.3 to 3.6!!!
    Now is the time to test, help with review, and complain about
    whatever is wrong! I will still keep API stable, but changes are
    relatively large, so this is your opportunity to suggest whatever
    substantial thing you don't like with M2Crypto. I may not make it
    happen in 0.28 (which I expect to be Py3k-compatible release),
    but for settling the dust down and cleanup I prepare already
    0.29, which should include yet more acummulated merge requests
    and bugfixes, this time ones which should be better served with
    python 3 layer already happening.
    Happy hacking!
    https://matej.ceplovi.cz/blog/, Jabber: mcepl at ceplovi.cz
    GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
    Quod fuimus, estis; quod sumus, vos eritis.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5211 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20171010/c8ab31d6/attachment.bin>

More information about the openssl-users mailing list