Problems with installing pyOpenSSL-0.6 under liunux5

Source: Internet
Author: User
Tags pkcs12 pkcs7
Linux general technology-Linux technology and application information, the following is a detailed reading. Dear friends!

I have encountered a problem. Please give me some advice. The problem is very difficult. I have been doing it for many days. Thank you! Yes. I installed the pyOpenSSL-0.6 under linux5. When I decompress the package, execute python setup. when the command py build_ext-I/usr/kerberos/include-L/usr/kerberos/lib is run, the system prompts:

Running build_ext
Building 'openssl. crypto' extension
Gcc-pthread-fno-strict-aliasing-DNDEBUG-g-O3-Wall-Wstrict-prototypes-fPIC-I/usr/kerberos/include-I/usr/local/include/ python2.4-c src/crypto. c-o build/temp. A linux-i686-2.4/src/crypto. o
In a file that contains src/crypto. h: 17,
From src/crypto. c: 13:
Src/crypto/x509.h: 17: 25: Error: openssl/ssl. h: No file or directory
In file encoded ded from src/crypto. h: 17,
From src/crypto. c: 13:
Src/crypto/x509.h: 27: Error: expected specifier-qualifier-list before 'x509'
In file encoded ded from src/crypto. h: 18,
From src/crypto. c: 13:
Src/crypto/x509name. h: 27: Error: expected specifier-qualifier-list before 'x509 _ name'
In file encoded ded from src/crypto. h: 19,
From src/crypto. c: 13:
Src/crypto/netscape_spki.h: 24: Error: expected specifier-qualifier-list before 'netscape _ spki'
In file encoded ded from src/crypto. h: 20,
From src/crypto. c: 13:
Src/crypto/x509store. h: 25: Error: expected specifier-qualifier-list before 'x509 _ store'
In file encoded ded from src/crypto. h: 21,
From src/crypto. c: 13:
Src/crypto/x509req. h: 25: Error: expected specifier-qualifier-list before 'x509 _ req'
In file encoded ded from src/crypto. h: 22,
From src/crypto. c: 13:
Src/crypto/pkey. h: 22: Error: expected specifier-qualifier-list before 'evp _ pkey'
In a file that contains src/crypto. h: 23,
From src/crypto. c: 13:
Src/crypto/x509ext. h: 16: 28: Error: openssl/x509v3. h: No file or directory
In file encoded ded from src/crypto. h: 23,
From src/crypto. c: 13:
Src/crypto/x509ext. h: 27: Error: expected specifier-qualifier-list before 'x509 _ extension'
In a file that contains src/crypto. h: 24,
From src/crypto. c: 13:
Src/crypto/pkcs7.h: 15: 27: Error: openssl/pkcs7.h: No file or directory
In file encoded ded from src/crypto. h: 24,
From src/crypto. c: 13:
Src/crypto/pkcs7.h: 25: Error: expected specifier-qualifier-list before 'pkcs7'
In a file that contains src/crypto. h: 25,
From src/crypto. c: 13:
Src/crypto/pkcs12.h: 14: 28: Error: openssl/pkcs12.h: No file or directory
Src/crypto/pkcs12.h: 15: 26: Error: openssl/asn1.h: No file or directory
In a file that contains src/crypto. h: 26,
From src/crypto. c: 13:
Src/crypto/../util. h: 17: 25: Error: openssl/err. h: No file or directory
In file encoded ded from src/crypto. c: 13:
Src/crypto. h: 75: Error: expected ') 'before' * 'token
Src/crypto. h: 76: Error: expected ') 'before' * 'token
Src/crypto. h: 77: Error: expected ') 'before' * 'token
Src/crypto. h: 78: Error: expected ') 'before' * 'token
Src/crypto. h: 79: Error: expected ') 'before' * 'token
Src/crypto. h: 81: Error: expected ') 'before' * 'token
Src/crypto. h: 82: Error: expected ') 'before' * 'token
Src/crypto. c: In the 'crypto _ load_privatekey' function:
Src/crypto. c: 66: Error: expected ') 'before' * 'token
Src/crypto. c: 70: Error: 'pem _ password_cb 'not declared (used for the first time in this function)
Src/crypto. c: 70: Error :( even if multiple times appear in a function, each undeclared identifier
Src/crypto. c: 70: Error: only one report is reported in the function .)
Src/crypto. c: 70: Error: 'cb 'is not declared (used for the first time in this function)
Src/crypto. c: 72: Error: 'bio 'is not declared (used for the first time in this function)
Src/crypto. c: 72: Error: 'bio 'is not declared (used for the first time in this function)
Src/crypto. c: 73: Error: 'evp _ pkey' not declared (used for the first time in this function)
Src/crypto. c: 73: Error: 'pkey' is not declared (used for the first time in this function)
Src/crypto. c: 97: Warning: Implicit declaration function 'bio _ new_mem_buf'
Src/crypto. c: 100: Error: 'x509 _ FILETYPE_PEM 'is not declared (used for the first time in this function)
Src/crypto. c: 101: Warning: Implicit declaration function 'pem _ read_bio_privatekey'
Src/crypto. c: 104: Error: 'x509 _ FILETYPE_ASN1 'is not declared (used for the first time in this function)
Src/crypto. c: 105: Warning: Implicit declaration function 'd2i _ PrivateKey_bio'
Src/crypto. c: 110: Warning: Implicit declaration function 'bio _ free'
Src/crypto. c: 121: Warning: Implicit declaration function 'crypto _ PKey_New'
Src/crypto. c: In the 'crypto _ dump_privatekey' function:
Src/crypto. c: 146: Error: expected '=', ';', 'asm 'or' _ attribute _ 'before' * 'token
Src/crypto. c: 146: Error: 'cipher' not declared (used for the first time in this function)
Src/crypto. c: 148: Error: 'pem _ password_cb 'is not declared (used for the first time in this function)
Src/crypto. c: 148: Error: 'cb 'is not declared (used for the first time in this function)
Src/crypto. c: 150: Error: 'bio 'is not declared (used for the first time in this function)
Src/crypto. c: 150: Error: 'bio 'is not declared (used for the first time in this function)
Src/crypto. c: 164: Warning: Implicit declaration function 'evp _ get_cipherbyname'
Src/crypto. c: 187: Warning: Implicit declaration function 'bio _ new'
Src/crypto. c: 187: Warning: Implicit declaration function 'bio _ s_mem'
Src/crypto. c: 190: Error: 'x509 _ FILETYPE_PEM 'is not declared (used for the first time in this function)
Src/crypto. c: 191: Warning: Implicit declaration function 'pem _ write_bio_privatekey'
Src/crypto. c: 191: Error: 'crypto _ PKeyObj 'No member named 'pkey'
Src/crypto. c: 199: Error: 'x509 _ FILETYPE_ASN1 'is not declared (used for the first time in this function)
Src/crypto. c: 200: Warning: Implicit declaration function 'i2d _ PrivateKey_bio'
Src/crypto. c: 200: Error: 'crypto _ PKeyObj 'No member named 'pkey'
Src/crypto. c: 216: Warning: Implicit declaration function 'bio _ get_mem_data'
Src/crypto. c: In the 'crypto _ load_certificate 'function:
Src/crypto. c: 236: Error: expected ') 'before' * 'token
Src/crypto. c: 239: Error: 'bio 'is not declared (used for the first time in this function)
Src/crypto. c: 239: Error: 'bio 'is not declared (used for the first time in this function)
Src/crypto. c: 240: Error: 'x509 'is not declared (used for the first time in this function)
Src/crypto. c: 240: Error: 'cert' not declared (used for the first time in this function)
Src/crypto. c: 248: Error: 'x509 _ FILETYPE_PEM 'is not declared (used for the first time in this function)
Src/crypto. c: 249: Warning: Implicit declaration function 'pem _ read_bio_X509'
Src/crypto. c: 252: Error: 'x509 _ FILETYPE_ASN1 'is not declared (used for the first time in this function)
Src/crypto. c: 253: Warning: Implicit declaration function 'd2i _ X509_bio'
Src/crypto. c: 269: Warning: Implicit declaration function 'crypto _ X509_New'
Src/crypto. c: In the 'crypto _ dump_certificate 'function:
Src/crypto. c: 288: Error: 'bio 'is not declared (used for the first time in this function)
Src/crypto. c: 288: Error: 'bio 'is not declared (used for the first time in this function)
Src/crypto. c: 298: Error: 'x509 _ FILETYPE_PEM 'is not declared (used for the first time in this function)
Src/crypto. c: 299: Warning: Implicit declaration function 'pem _ write_bio_X509'
Src/crypto. c: 299: Error: 'crypto _ X509Obj 'No member named 'x509'
Src/crypto. c: 302: Error: 'x509 _ FILETYPE_ASN1 'is not declared (used for the first time in this function)
Src/crypto. c: 303: Warning: Implicit declaration function 'i2d _ X509_bio'
Src/crypto. c: 303: Error: 'crypto _ X509Obj 'No member named 'x509'
Src/crypto. c: In the 'crypto _ load_certificate_request 'function:
Src/crypto. c: 339: Error: expected ') 'before' * 'token
Src/crypto. c: 342: Error: 'bio 'is not declared (used for the first time in this function)
Src/crypto. c: 342: Error: 'bio 'is not declared (used for the first time in this function)
Src/crypto. c: 343: Error: 'x509 _ req' is not declared (used for the first time in this function)
Src/crypto. c: 343: Error: 'req' is not declared (used for the first time in this function)
Src/crypto. c: 351: Error: 'x509 _ FILETYPE_PEM 'is not declared (used for the first time in this function)
Src/crypto. c: 352: Warning: Implicit declaration function 'pem _ read_bio_X509_REQ'
Src/crypto. c: 355: Error: 'x509 _ FILETYPE_ASN1 'is not declared (used for the first time in this function)
Src/crypto. c: 356: Warning: Implicit declaration function 'd2i _ X509_REQ_bio'
Src/crypto. c: 372: Warning: Implicit declaration function 'crypto _ X509Req_New'
Src/crypto. c: In the 'crypto _ dump_certificate_request 'function:
Src/crypto. c: 391: Error: 'bio 'is not declared (used for the first time in this function)
Src/crypto. c: 391: Error: 'bio 'is not declared (used for the first time in this function)
Src/crypto. c: 401: Error: 'x509 _ FILETYPE_PEM 'is not declared (used for the first time in this function)
Src/crypto. c: 402: Warning: Implicit declaration function 'pem _ write_bio_X509_REQ'
Src/crypto. c: 402: Error: 'crypto _ X509ReqObj 'No member named 'x509 _ req'
Src/crypto. c: 405: Error: 'x509 _ FILETYPE_ASN1 'is not declared (used for the first time in this function)
Src/crypto. c: 406: Warning: Implicit declaration function 'i2d _ X509_REQ_bio'
Src/crypto. c: 406: Error: 'crypto _ X509ReqObj 'No member named 'x509 _ req'
Src/crypto. c: In the 'crypto _ load_pkcs7_data 'function:
Src/crypto. c: 444: Error: 'bio 'is not declared (used for the first time in this function)
Src/crypto. c: 444: Error: 'bio 'is not declared (used for the first time in this function)
Src/crypto. c: 445: Error: 'pkcs7' not declared (used for the first time in this function)
Src/crypto. c: 445: Error: 'pkcs7' not declared (used for the first time in this function)
Src/crypto. c: 456: Error: 'x509 _ FILETYPE_PEM 'is not declared (used for the first time in this function)
Src/crypto. c: 457: Warning: Implicit declaration function 'pem _ read_bio_pkcs7'
Src/crypto. c: 460: Error: 'x509 _ FILETYPE_ASN1 'is not declared (used for the first time in this function)
Src/crypto. c: 461: Warning: Implicit declaration function 'd2i _ PKCS7_bio'
Src/crypto. c: 480: Warning: Implicit declaration function 'crypto _ PKCS7_New'
Src/crypto. c: In the 'crypto _ load_pkcs12 'function:
Src/crypto. c: 496: Error: expected ') 'before' * 'token
Src/crypto. c: 499: Error: 'bio 'is not declared (used for the first time in this function)
Src/crypto. c: 499: Error: 'bio 'is not declared (used for the first time in this function)
Src/crypto. c: 500: Error: 'pkcs12' not declared (used for the first time in this function)
Src/crypto. c: 500: Error: 'p12' not declared (used for the first time in this function)
Src/crypto. c: 506: Warning: Implicit declaration function 'd2i _ PKCS12_bio'
Src/crypto. c: 514: Warning: Implicit declaration function 'crypto _ PKCS12_New'
Src/crypto. c: In the 'crypto _ X509 'function:
Src/crypto. c: 533: Warning: Implicit declaration function 'x509 _ new'
Src/crypto. c: In the 'crypto _ x509name' function:
Src/crypto. c: 554: Warning: Implicit declaration function 'crypto _ X509Name_New'
Src/crypto. c: 554: Warning: Implicit declaration function 'x509 _ name_dup'
Src/crypto. c: 554: Error: 'crypto _ X509NameObj 'No member named 'x509 _ name'
Src/crypto. c: In the 'crypto _ x509req' function:
Src/crypto. c: 572: Warning: Implicit declaration function 'x509 _ REQ_new'
Src/crypto. c: In the 'crypto _ pkey' function:
Src/crypto. c: 590: Warning: Implicit declaration function 'evp _ PKEY_new'
Src/crypto. c: In the 'crypto _ NetscapeSPKI 'function:
Src/crypto. c: 633: Error: 'netscape _ spki' is not declared (used for the first time in this function)
Src/crypto. c: 633: Error: 'spki' is not declared (used for the first time in this function)
Src/crypto. c: 639: Warning: Implicit declaration function 'netscape _ spki_b64_decode'
Src/crypto. c: 641: Warning: Implicit declaration function 'netscape _ SPKI_new'
Src/crypto. c: 647: Warning: Implicit declaration function 'crypto _ NetscapeSPKI_New'
Src/crypto. c: In the 'initcrypto' function:
Src/crypto. c: 684: Warning: Implicit declaration function 'err _ load_crypto_strings'
Src/crypto. c: 685: Warning: Implicit declaration function 'openssl _ add_all_algorithms'
Src/crypto. c: 691: Error: 'crypto _ X509_New 'is not declared (used for the first time in this function)
Src/crypto. c: 692: Error: 'crypto _ X509Name_New 'is not declared (used for the first time in this function)
Src/crypto. c: 693: Error: 'crypto _ X509Req_New 'is not declared (used for the first time in this function)
Src/crypto. c: 694: Error: 'crypto _ X509Store_New 'is not declared (used for the first time in this function)
Src/crypto. c: 695: Error: 'crypto _ PKey_New 'is not declared (used for the first time in this function)
Src/crypto. c: 697: Error: 'crypto _ PKCS7_New 'is not declared (used for the first time in this function)
Src/crypto. c: 698: Error: 'crypto _ NetscapeSPKI_New 'is not declared (used for the first time in this function)
Src/crypto. c: 709: Error: 'x509 _ FILETYPE_PEM 'is not declared (used for the first time in this function)
Src/crypto. c: 710: Error: 'x509 _ FILETYPE_ASN1 'is not declared (used for the first time in this function)
Src/crypto. c: 712: Error: 'evp _ PKEY_RSA 'is not declared (used for the first time in this function)
Src/crypto. c: 713: Error: 'evp _ PKEY_DSA 'is not declared (used for the first time in this function)
Error: command 'gcc 'failed with exit status 1

Where is the error? What should I do !! Thank you!
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.