On 2017-10-10, 21:17 GMT, Blumenthal, Uri - 0553 - MITLL wrote: > 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): Feel free to file a ticket on https://gitlab.com/m2crypto/m2crypto/issues , no need to use mailing lists for issue tracker, when we have a proper one. I work on M2Crypto right now, so I see them immediately. To your real problem: does --openssl set to /opt/local help? If you run python setup.py clean build --openssl /opt/local what happens? What is the generated swig line (which version you use?), and what are the two compiler lines (one for compilation, other for linking)? > /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe I have made so far all my testing with GCC (on Linux, there are some users on Mac OS X, so I guess CLang should work as well, but I have never tested it myself). > -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 Just to note that this particular piece of code is generated completely by swig, I have nothing to do with it. > 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 Where do you actually have err.h? Manually settings CFLAGS and LDFLAGS should be followed by seutp.py, it can help as a workaround, but my dream is that plain settings of --openssl parameter should be sufficient. Feel free to continue here, on on the issue tracker. Best, Matěj Cepl -- http://matej.ceplovi.cz/blog/, Jabber: mcepl<at>ceplovi.cz GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8 Love doesn't just sit there, like a stone; it has to be made, like bread, remade all the time, made new. -- Ursula K. LeGuin -- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users