<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">And it is not installable via PIP, though to me being placed on pypi site suggested that it should be (that's how I tried to install it).<br><br><div id="AppleMailSignature">Regards,<div>Uri</div><div><br></div><div>Sent from my iPhone</div></div><div><br>On Oct 11, 2017, at 06:55, Richard Levitte <<a href="mailto:levitte@openssl.org">levitte@openssl.org</a>> wrote:<br><br></div><blockquote type="cite"><div><span>I got curious and decided to take a look, and well, it appears</span><br><span>setup.py has issues.  I posted an issue in gitlab about it:</span><br><span></span><br><span><a href="https://gitlab.com/m2crypto/m2crypto/issues/184">https://gitlab.com/m2crypto/m2crypto/issues/184</a></span><br><span></span><br><span>In message <<a href="mailto:slrnotrdim.lq.mcepl@mitmanek.ceplovi.cz">slrnotrdim.lq.mcepl@mitmanek.ceplovi.cz</a>> on Wed, 11 Oct 2017 08:12:38 +0200, Matěj Cepl <<a href="mailto:mcepl@cepl.eu">mcepl@cepl.eu</a>> said:</span><br><span></span><br><span>mcepl> On 2017-10-10, 21:17 GMT, Blumenthal, Uri - 0553 - MITLL wrote:</span><br><span>mcepl> > I have to report that this M2Crypto release is broken, as it </span><br><span>mcepl> > cannot find OpenSSL installed in /opt/local (apologies for </span><br><span>mcepl> > spamming multiple lists and people):</span><br><span>mcepl> </span><br><span>mcepl> Feel free to file a ticket on </span><br><span>mcepl> <a href="https://gitlab.com/m2crypto/m2crypto/issues">https://gitlab.com/m2crypto/m2crypto/issues</a> , no need to use </span><br><span>mcepl> mailing lists for issue tracker, when we have a proper one.  </span><br><span>mcepl> I work on M2Crypto right now, so I see them immediately.</span><br><span>mcepl> </span><br><span>mcepl> To your real problem: does --openssl set to /opt/local help? If </span><br><span>mcepl> you run</span><br><span>mcepl> </span><br><span>mcepl> python setup.py clean build --openssl /opt/local</span><br><span>mcepl> </span><br><span>mcepl> what happens? What is the generated swig line (which version you </span><br><span>mcepl> use?), and what are the two compiler lines (one for compilation, </span><br><span>mcepl> other for linking)?</span><br><span>mcepl> </span><br><span>mcepl> > /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe </span><br><span>mcepl> </span><br><span>mcepl> I have made so far all my testing with GCC (on Linux, there are </span><br><span>mcepl> some users on Mac OS X, so I guess CLang should work as well, </span><br><span>mcepl> but I have never tested it myself).</span><br><span>mcepl> </span><br><span>mcepl> >     -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes </span><br><span>mcepl> >     -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 </span><br><span>mcepl> >     -I/private/tmp/pip-build-lqb2R6/M2Crypto/SWIG -c </span><br><span>mcepl> >     SWIG/_m2crypto_wrap.c -o </span><br><span>mcepl> >     build/temp.macosx-10.12-x86_64-2.7/SWIG/_m2crypto_wrap.o </span><br><span>mcepl> >     -Wno-deprecated-declarations</span><br><span>mcepl> >     SWIG/_m2crypto_wrap.c:2894:9: warning: variable 'res' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]</span><br><span>mcepl> >         if (PyType_Ready(tp) < 0)</span><br><span>mcepl> >             ^~~~~~~~~~~~~~~~~~~~</span><br><span>mcepl> >     SWIG/_m2crypto_wrap.c:2918:10: note: uninitialized use occurs here</span><br><span>mcepl> >       return res;</span><br><span>mcepl> >              ^~~</span><br><span>mcepl> >     SWIG/_m2crypto_wrap.c:2894:5: note: remove the 'if' if its condition is always false</span><br><span>mcepl> >         if (PyType_Ready(tp) < 0)</span><br><span>mcepl> >         ^~~~~~~~~~~~~~~~~~~~~~~~~</span><br><span>mcepl> >     SWIG/_m2crypto_wrap.c:2875:10: note: initialize the variable 'res' to silence this warning</span><br><span>mcepl> >       int res;</span><br><span>mcepl> >              ^</span><br><span>mcepl> >               = 0</span><br><span>mcepl> </span><br><span>mcepl> Just to note that this particular piece of code is generated </span><br><span>mcepl> completely by swig, I have nothing to do with it.</span><br><span>mcepl> </span><br><span>mcepl> >     SWIG/_m2crypto_wrap.c:3554:10: fatal error: 'openssl/err.h' file not found</span><br><span>mcepl> >     #include <openssl/err.h></span><br><span>mcepl> >              ^~~~~~~~~~~~~~~</span><br><span>mcepl> >     1 warning and 1 error generated.</span><br><span>mcepl> >     error: command '/usr/bin/clang' failed with exit status 1</span><br><span>mcepl> </span><br><span>mcepl> Where do you actually have err.h? Manually settings CFLAGS and </span><br><span>mcepl> LDFLAGS should be followed by seutp.py, it can help as </span><br><span>mcepl> a workaround, but my dream is that plain settings of --openssl </span><br><span>mcepl> parameter should be sufficient.</span><br><span>mcepl> </span><br><span>mcepl> Feel free to continue here, on on the issue tracker.</span><br><span>mcepl> </span><br><span>mcepl> Best,</span><br><span>mcepl> </span><br><span>mcepl> Matěj Cepl</span><br><span>mcepl> -- </span><br><span>mcepl> <a href="http://matej.ceplovi.cz/blog/">http://matej.ceplovi.cz/blog/</a>, Jabber: mcepl<at><a href="http://ceplovi.cz">ceplovi.cz</a></span><br><span>mcepl> GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8</span><br><span>mcepl>  </span><br><span>mcepl> Love doesn't just sit there, like a stone; it has to be made,</span><br><span>mcepl> like bread, remade all the time, made new.</span><br><span>mcepl>   -- Ursula K. LeGuin</span><br><span>mcepl> </span><br><span>mcepl> </span><br><span>-- </span><br><span>openssl-users mailing list</span><br><span>To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-users">https://mta.openssl.org/mailman/listinfo/openssl-users</a></span><br></div></blockquote></body></html>