Skip to content

Instantly share code, notes, and snippets.

@Strazzom
Created July 4, 2018 08:38
Show Gist options
  • Save Strazzom/e0bc259c0dbceb94597338bd063d4601 to your computer and use it in GitHub Desktop.
Save Strazzom/e0bc259c0dbceb94597338bd063d4601 to your computer and use it in GitHub Desktop.
Without libssl-dev:
================
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -I/tmp/pip-build-e9BBp4/M2Crypto/SWIG -c SWIG/_m2crypto_wrap.c -o build/temp.linux-x86_64-2.7/SWIG/_m2crypto_wrap.o -Wno-deprecated-declarations -DTHREADING
SWIG/_m2crypto_wrap.c:3557:25: fatal error: openssl/err.h: No such file or directory
#include <openssl/err.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for M2Crypto
Running setup.py clean for M2Crypto
Failed to build M2Crypto
Installing collected packages: plumbum, rpyc, pycryptodome, future, pefile, pyyaml, pyasn1, rsa, netaddr, ecdsa, six, pycparser, cffi, enum34, idna, asn1crypto, ipaddress, cryptography, paramiko, tinyec, psutil, netifaces, pylzma, colorama, mss, pyOpenSSL, scapy, ldap3, pycrypto, click, Werkzeug, itsdangerous, MarkupSafe, Jinja2, flask, dnspython, ldapdomaindump, impacket, pyuv, dnslib, http-parser, cerberus, logutils, secretstorage, pygments, urllib3, chardet, certifi, requests, singledispatch, futures, backports-abc, tornado, keyboard, poster, win-inet-pton, scandir, msgpack, hexdump, typing, M2Crypto, fusepy, KCP
Running setup.py install for M2Crypto: started
Running setup.py install for M2Crypto: finished with status 'error'
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-e9BBp4/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-aSPhWj-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-e9BBp4/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-aSPhWj-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code -11 in /tmp/pip-build-e9BBp4/M2Crypto/
================
With libssl-dev:
================
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -I/tmp/pip-build-gEf7Cg/M2Crypto/SWIG -c SWIG/_m2crypto_wrap.c -o build/temp.linux-x86_64-2.7/SWIG/_m2crypto_wrap.o -Wno-deprecated-declarations -DTHREADING
SWIG/_m2crypto_wrap.c: In function ‘_wrap__STACK_num_set’:
SWIG/_m2crypto_wrap.c:9493:19: error: dereferencing pointer to incomplete type ‘struct stack_st’
if (arg1) (arg1)->num = arg2;
^~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_new__STACK’:
SWIG/_m2crypto_wrap.c:9720:48: error: invalid application of ‘sizeof’ to incomplete type ‘struct stack_st’
result = (struct stack_st *)calloc(1, sizeof(struct stack_st));
^~~~~~
SWIG/_m2crypto_wrap.c:9723:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_sk_new_null’:
SWIG/_m2crypto_wrap.c:9866:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_sk_deep_copy’:
SWIG/_m2crypto_wrap.c:9951:40: warning: passing argument 2 of ‘OPENSSL_sk_deep_copy’ from incompatible pointer type [-Wincompatible-pointer-types]
result = (_STACK *)sk_deep_copy(arg1,arg2,arg3);
^~~~
In file included from /usr/include/openssl/crypto.h:28:0,
from /usr/include/openssl/bio.h:20,
from /usr/include/openssl/err.h:21,
from SWIG/_m2crypto_wrap.c:3557:
/usr/include/openssl/stack.h:32:16: note: expected ‘OPENSSL_sk_copyfunc {aka void * (*)(const void *)}’ but argument is of type ‘void * (*)(void *)’
OPENSSL_STACK *OPENSSL_sk_deep_copy(const OPENSSL_STACK *, OPENSSL_sk_copyfunc c, OPENSSL_sk_freefunc f);
^~~~~~~~~~~~~~~~~~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_stack_st_OPENSSL_STRING_stack_set’:
SWIG/_m2crypto_wrap.c:10354:19: error: dereferencing pointer to incomplete type ‘struct stack_st_OPENSSL_STRING’
if (arg1) (arg1)->stack = *arg2;
^~
SWIG/_m2crypto_wrap.c:10354:29: error: dereferencing pointer to incomplete type ‘OPENSSL_STACK {aka struct stack_st}’
if (arg1) (arg1)->stack = *arg2;
^~~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_new_stack_st_OPENSSL_STRING’:
SWIG/_m2crypto_wrap.c:10386:63: error: invalid application of ‘sizeof’ to incomplete type ‘struct stack_st_OPENSSL_STRING’
result = (struct stack_st_OPENSSL_STRING *)calloc(1, sizeof(struct stack_st_OPENSSL_STRING));
^~~~~~
SWIG/_m2crypto_wrap.c:10389:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_stack_st_OPENSSL_BLOCK_stack_set’:
SWIG/_m2crypto_wrap.c:10434:19: error: dereferencing pointer to incomplete type ‘struct stack_st_OPENSSL_BLOCK’
if (arg1) (arg1)->stack = *arg2;
^~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_new_stack_st_OPENSSL_BLOCK’:
SWIG/_m2crypto_wrap.c:10466:62: error: invalid application of ‘sizeof’ to incomplete type ‘struct stack_st_OPENSSL_BLOCK’
result = (struct stack_st_OPENSSL_BLOCK *)calloc(1, sizeof(struct stack_st_OPENSSL_BLOCK));
^~~~~~
SWIG/_m2crypto_wrap.c:10469:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_threading_init’:
SWIG/_m2crypto_wrap.c:10499:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_threading_cleanup’:
SWIG/_m2crypto_wrap.c:10510:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_lib_init’:
SWIG/_m2crypto_wrap.c:10521:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_err_get_error’:
SWIG/_m2crypto_wrap.c:10688:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_err_peek_error’:
SWIG/_m2crypto_wrap.c:10700:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_bio_s_bio’:
SWIG/_m2crypto_wrap.c:10778:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_bio_s_mem’:
SWIG/_m2crypto_wrap.c:10790:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_bio_s_socket’:
SWIG/_m2crypto_wrap.c:10802:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_bio_f_ssl’:
SWIG/_m2crypto_wrap.c:10814:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_bio_f_buffer’:
SWIG/_m2crypto_wrap.c:10826:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_bio_f_cipher’:
SWIG/_m2crypto_wrap.c:10838:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_pyfd_init’:
SWIG/_m2crypto_wrap.c:11087:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_new_BIO_PYFD_CTX’:
SWIG/_m2crypto_wrap.c:12054:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_rand_cleanup’:
SWIG/_m2crypto_wrap.c:12638:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_rand_file_name__SWIG_1’:
SWIG/_m2crypto_wrap.c:12791:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_rand_screen’:
SWIG/_m2crypto_wrap.c:12839:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_md5’:
SWIG/_m2crypto_wrap.c:12894:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_sha1’:
SWIG/_m2crypto_wrap.c:12906:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_ripemd160’:
SWIG/_m2crypto_wrap.c:12918:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_sha224’:
SWIG/_m2crypto_wrap.c:12930:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_sha256’:
SWIG/_m2crypto_wrap.c:12942:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_sha384’:
SWIG/_m2crypto_wrap.c:12954:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_sha512’:
SWIG/_m2crypto_wrap.c:12966:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_des_ecb’:
SWIG/_m2crypto_wrap.c:13022:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_des_ede_ecb’:
SWIG/_m2crypto_wrap.c:13034:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_des_ede3_ecb’:
SWIG/_m2crypto_wrap.c:13046:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_des_cbc’:
SWIG/_m2crypto_wrap.c:13058:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_des_ede_cbc’:
SWIG/_m2crypto_wrap.c:13070:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_des_ede3_cbc’:
SWIG/_m2crypto_wrap.c:13082:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_des_cfb’:
SWIG/_m2crypto_wrap.c:13094:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_des_ede_cfb’:
SWIG/_m2crypto_wrap.c:13106:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_des_ede3_cfb’:
SWIG/_m2crypto_wrap.c:13118:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_des_ofb’:
SWIG/_m2crypto_wrap.c:13130:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_des_ede_ofb’:
SWIG/_m2crypto_wrap.c:13142:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_des_ede3_ofb’:
SWIG/_m2crypto_wrap.c:13154:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_bf_ecb’:
SWIG/_m2crypto_wrap.c:13166:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_bf_cbc’:
SWIG/_m2crypto_wrap.c:13178:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_bf_cfb’:
SWIG/_m2crypto_wrap.c:13190:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_bf_ofb’:
SWIG/_m2crypto_wrap.c:13202:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_cast5_ecb’:
SWIG/_m2crypto_wrap.c:13214:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_cast5_cbc’:
SWIG/_m2crypto_wrap.c:13226:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_cast5_cfb’:
SWIG/_m2crypto_wrap.c:13238:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_cast5_ofb’:
SWIG/_m2crypto_wrap.c:13250:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_rc4’:
SWIG/_m2crypto_wrap.c:13262:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_rc2_40_cbc’:
SWIG/_m2crypto_wrap.c:13274:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_aes_128_ecb’:
SWIG/_m2crypto_wrap.c:13286:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_aes_128_cbc’:
SWIG/_m2crypto_wrap.c:13298:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_aes_128_cfb’:
SWIG/_m2crypto_wrap.c:13310:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_aes_128_ofb’:
SWIG/_m2crypto_wrap.c:13322:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_aes_128_ctr’:
SWIG/_m2crypto_wrap.c:13334:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_aes_192_ecb’:
SWIG/_m2crypto_wrap.c:13346:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_aes_192_cbc’:
SWIG/_m2crypto_wrap.c:13358:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_aes_192_cfb’:
SWIG/_m2crypto_wrap.c:13370:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_aes_192_ofb’:
SWIG/_m2crypto_wrap.c:13382:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_aes_192_ctr’:
SWIG/_m2crypto_wrap.c:13394:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_aes_256_ecb’:
SWIG/_m2crypto_wrap.c:13406:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_aes_256_cbc’:
SWIG/_m2crypto_wrap.c:13418:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_aes_256_cfb’:
SWIG/_m2crypto_wrap.c:13430:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_aes_256_ofb’:
SWIG/_m2crypto_wrap.c:13442:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_aes_256_ctr’:
SWIG/_m2crypto_wrap.c:13454:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_md_ctx_new’:
SWIG/_m2crypto_wrap.c:13903:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_hmac_ctx_new’:
SWIG/_m2crypto_wrap.c:14005:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_cipher_ctx_new’:
SWIG/_m2crypto_wrap.c:14193:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_pkey_new’:
SWIG/_m2crypto_wrap.c:14745:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_aes_new’:
SWIG/_m2crypto_wrap.c:14947:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_rc4_new’:
SWIG/_m2crypto_wrap.c:15119:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_dh_new’:
SWIG/_m2crypto_wrap.c:15255:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_rsa_new’:
SWIG/_m2crypto_wrap.c:15793:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_dsa_new’:
SWIG/_m2crypto_wrap.c:16914:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_sslv23_method’:
SWIG/_m2crypto_wrap.c:18202:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_tlsv1_method’:
SWIG/_m2crypto_wrap.c:19858:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_x509_new’:
SWIG/_m2crypto_wrap.c:21536:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_x509_crl_new’:
SWIG/_m2crypto_wrap.c:21627:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_x509_name_new’:
SWIG/_m2crypto_wrap.c:22463:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_x509_name_entry_new’:
SWIG/_m2crypto_wrap.c:23031:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_x509_req_new’:
SWIG/_m2crypto_wrap.c:23280:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_x509_store_new’:
SWIG/_m2crypto_wrap.c:23679:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_x509v3_set_nconf’:
SWIG/_m2crypto_wrap.c:25159:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_sk_x509_extension_new_null’:
SWIG/_m2crypto_wrap.c:25278:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_sk_x509_new_null’:
SWIG/_m2crypto_wrap.c:25591:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_asn1_object_new’:
SWIG/_m2crypto_wrap.c:25663:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_asn1_bit_string_new’:
SWIG/_m2crypto_wrap.c:25844:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_asn1_string_new’:
SWIG/_m2crypto_wrap.c:25856:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_asn1_time_new’:
SWIG/_m2crypto_wrap.c:26050:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_asn1_integer_new’:
SWIG/_m2crypto_wrap.c:26244:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_pkcs7_new’:
SWIG/_m2crypto_wrap.c:26420:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_ec_key_new’:
SWIG/_m2crypto_wrap.c:27627:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_ec_get_builtin_curves’:
SWIG/_m2crypto_wrap.c:27799:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_engine_load_builtin_engines’:
SWIG/_m2crypto_wrap.c:28489:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_engine_load_dynamic’:
SWIG/_m2crypto_wrap.c:28500:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_engine_load_openssl’:
SWIG/_m2crypto_wrap.c:28511:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_engine_cleanup’:
SWIG/_m2crypto_wrap.c:28522:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_engine_new’:
SWIG/_m2crypto_wrap.c:28534:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_ui_openssl’:
SWIG/_m2crypto_wrap.c:28783:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
SWIG/_m2crypto_wrap.c: In function ‘_wrap_new__cbd_t’:
SWIG/_m2crypto_wrap.c:28911:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for M2Crypto
Running setup.py clean for M2Crypto
Failed to build M2Crypto
Installing collected packages: plumbum, rpyc, pycryptodome, future, pefile, pyyaml, pyasn1, rsa, netaddr, ecdsa, six, pycparser, cffi, enum34, idna, asn1crypto, ipaddress, cryptography, paramiko, tinyec, psutil, netifaces, pylzma, colorama, mss, pyOpenSSL, scapy, ldap3, pycrypto, click, Werkzeug, itsdangerous, MarkupSafe, Jinja2, flask, dnspython, ldapdomaindump, impacket, pyuv, dnslib, http-parser, cerberus, logutils, secretstorage, pygments, urllib3, chardet, certifi, requests, singledispatch, futures, backports-abc, tornado, keyboard, poster, win-inet-pton, scandir, msgpack, hexdump, typing, M2Crypto, fusepy, KCP
Running setup.py install for M2Crypto: started
Running setup.py install for M2Crypto: finished with status 'error'
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-gEf7Cg/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-F94mVH-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-gEf7Cg/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-F94mVH-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code -11 in /tmp/pip-build-gEf7Cg/M2Crypto/
@microidea
Copy link

I've got the second "With libssl-dev" error, how can I fix it?

@microidea
Copy link

I've got the second "With libssl-dev" error, how can I fix it?

After installing swig everything is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment