[openssl-users] OpenSSL on side

Richard Levitte levitte at openssl.org
Wed Oct 11 10:54:04 UTC 2017

I got curious and decided to take a look, and well, it appears
setup.py has issues.  I posted an issue in gitlab about it:


In message <slrnotrdim.lq.mcepl at mitmanek.ceplovi.cz> on Wed, 11 Oct 2017 08:12:38 +0200, Matěj Cepl <mcepl at cepl.eu> said:

mcepl> On 2017-10-10, 21:17 GMT, Blumenthal, Uri - 0553 - MITLL wrote:
mcepl> > I have to report that this M2Crypto release is broken, as it 
mcepl> > cannot find OpenSSL installed in /opt/local (apologies for 
mcepl> > spamming multiple lists and people):
mcepl> Feel free to file a ticket on 
mcepl> https://gitlab.com/m2crypto/m2crypto/issues , no need to use 
mcepl> mailing lists for issue tracker, when we have a proper one.  
mcepl> I work on M2Crypto right now, so I see them immediately.
mcepl> To your real problem: does --openssl set to /opt/local help? If 
mcepl> you run
mcepl> python setup.py clean build --openssl /opt/local
mcepl> what happens? What is the generated swig line (which version you 
mcepl> use?), and what are the two compiler lines (one for compilation, 
mcepl> other for linking)?
mcepl> > /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe 
mcepl> I have made so far all my testing with GCC (on Linux, there are 
mcepl> some users on Mac OS X, so I guess CLang should work as well, 
mcepl> but I have never tested it myself).
mcepl> >     -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes 
mcepl> >     -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 
mcepl> >     -I/private/tmp/pip-build-lqb2R6/M2Crypto/SWIG -c 
mcepl> >     SWIG/_m2crypto_wrap.c -o 
mcepl> >     build/temp.macosx-10.12-x86_64-2.7/SWIG/_m2crypto_wrap.o 
mcepl> >     -Wno-deprecated-declarations
mcepl> >     SWIG/_m2crypto_wrap.c:2894:9: warning: variable 'res' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
mcepl> >         if (PyType_Ready(tp) < 0)
mcepl> >             ^~~~~~~~~~~~~~~~~~~~
mcepl> >     SWIG/_m2crypto_wrap.c:2918:10: note: uninitialized use occurs here
mcepl> >       return res;
mcepl> >              ^~~
mcepl> >     SWIG/_m2crypto_wrap.c:2894:5: note: remove the 'if' if its condition is always false
mcepl> >         if (PyType_Ready(tp) < 0)
mcepl> >         ^~~~~~~~~~~~~~~~~~~~~~~~~
mcepl> >     SWIG/_m2crypto_wrap.c:2875:10: note: initialize the variable 'res' to silence this warning
mcepl> >       int res;
mcepl> >              ^
mcepl> >               = 0
mcepl> Just to note that this particular piece of code is generated 
mcepl> completely by swig, I have nothing to do with it.
mcepl> >     SWIG/_m2crypto_wrap.c:3554:10: fatal error: 'openssl/err.h' file not found
mcepl> >     #include <openssl/err.h>
mcepl> >              ^~~~~~~~~~~~~~~
mcepl> >     1 warning and 1 error generated.
mcepl> >     error: command '/usr/bin/clang' failed with exit status 1
mcepl> Where do you actually have err.h? Manually settings CFLAGS and 
mcepl> LDFLAGS should be followed by seutp.py, it can help as 
mcepl> a workaround, but my dream is that plain settings of --openssl 
mcepl> parameter should be sufficient.
mcepl> Feel free to continue here, on on the issue tracker.
mcepl> Best,
mcepl> Matěj Cepl
mcepl> -- 
mcepl> http://matej.ceplovi.cz/blog/, Jabber: mcepl<at>ceplovi.cz
mcepl> GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
mcepl> Love doesn't just sit there, like a stone; it has to be made,
mcepl> like bread, remade all the time, made new.
mcepl>   -- Ursula K. LeGuin

More information about the openssl-users mailing list