[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

pyOpenSSL-0.6



Sto cercando di eseguire pyOpenSSL-0.6 al fine di configurare GMailFS. Di seguito lo standard error che non riesco ad interpretare:

debian:/home/giuseppe/pyOpenSSL-0.6# python setup.py build
running build
running build_py
running build_ext
building 'OpenSSL.crypto' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.4 -c src/crypto/crypto.c -o build/temp.linux-i686-2.4/src/crypto/crypto.o
src/crypto/crypto.c:11:20: error: Python.h: No such file or directory
In file included from src/crypto/crypto.h:17,
from src/crypto/crypto.c:13:
src/crypto/x509.h:17:25: error: openssl/ssl.h: No such file or directory
In file included from src/crypto/crypto.h:17,
from src/crypto/crypto.c:13:
src/crypto/x509.h:19: error: expected ‘)’ before ‘*’ token
src/crypto/x509.h:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_X509_Type’ src/crypto/x509.h:26: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
In file included from src/crypto/crypto.h:18,
from src/crypto/crypto.c:13:
src/crypto/x509name.h:19: error: expected ‘)’ before ‘*’ token
src/crypto/x509name.h:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_X509Name_Type’ src/crypto/x509name.h:26: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
In file included from src/crypto/crypto.h:19,
from src/crypto/crypto.c:13:
src/crypto/netscape_spki.h:16: error: expected ‘)’ before ‘*’ token
src/crypto/netscape_spki.h:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_NetscapeSPKI_Type’ src/crypto/netscape_spki.h:23: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
In file included from src/crypto/crypto.h:20,
from src/crypto/crypto.c:13:
src/crypto/x509store.h:17: error: expected ‘)’ before ‘*’ token
src/crypto/x509store.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_X509Store_Type’ src/crypto/x509store.h:24: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
In file included from src/crypto/crypto.h:21,
from src/crypto/crypto.c:13:
src/crypto/x509req.h:17: error: expected ‘)’ before ‘*’ token
src/crypto/x509req.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_X509Req_Type’ src/crypto/x509req.h:24: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
In file included from src/crypto/crypto.h:22,
from src/crypto/crypto.c:13:
src/crypto/pkey.h:14: error: expected ‘)’ before ‘*’ token
src/crypto/pkey.h:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_PKey_Type’ src/crypto/pkey.h:21: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
In file included from src/crypto/crypto.h:23,
from src/crypto/crypto.c:13:
src/crypto/x509ext.h:16:28: error: openssl/x509v3.h: No such file or directory
In file included from src/crypto/crypto.h:23,
from src/crypto/crypto.c:13:
src/crypto/x509ext.h:18: error: expected ‘)’ before ‘*’ token
src/crypto/x509ext.h:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_X509Extension_Type’ src/crypto/x509ext.h:26: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
In file included from src/crypto/crypto.h:24,
from src/crypto/crypto.c:13:
src/crypto/pkcs7.h:15:27: error: openssl/pkcs7.h: No such file or directory
In file included from src/crypto/crypto.h:24,
from src/crypto/crypto.c:13:
src/crypto/pkcs7.h:17: error: expected ‘)’ before ‘*’ token
src/crypto/pkcs7.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_PKCS7_Type’ src/crypto/pkcs7.h:24: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
In file included from src/crypto/crypto.h:25,
from src/crypto/crypto.c:13:
src/crypto/pkcs12.h:14:28: error: openssl/pkcs12.h: No such file or directory
src/crypto/pkcs12.h:15:26: error: openssl/asn1.h: No such file or directory
In file included from src/crypto/crypto.h:25,
from src/crypto/crypto.c:13:
src/crypto/pkcs12.h:17: error: expected ‘)’ before ‘*’ token
src/crypto/pkcs12.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_PKCS12_Type’ src/crypto/pkcs12.h:24: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
In file included from src/crypto/crypto.h:26,
from src/crypto/crypto.c:13:
src/crypto/../util.h:17:25: error: openssl/err.h: No such file or directory
In file included from src/crypto/crypto.h:26,
from src/crypto/crypto.c:13:
src/crypto/../util.h:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/crypto/../util.h:44: error: expected ‘)’ before ‘*’ token
src/crypto/../util.h:59: error: expected ‘)’ before ‘*’ token
src/crypto/../util.h:64: error: expected ‘)’ before ‘*’ token
In file included from src/crypto/crypto.c:13:
src/crypto/crypto.h:28: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/crypto/crypto.h:75: error: expected ‘)’ before ‘*’ token
src/crypto/crypto.h:76: error: expected ‘)’ before ‘*’ token
src/crypto/crypto.h:77: error: expected ‘)’ before ‘*’ token
src/crypto/crypto.h:78: error: expected ‘)’ before ‘*’ token
src/crypto/crypto.h:79: error: expected ‘)’ before ‘*’ token
src/crypto/crypto.h:81: error: expected ‘)’ before ‘*’ token
src/crypto/crypto.h:82: error: expected ‘)’ before ‘*’ token
src/crypto/crypto.c:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/crypto/crypto.c: In function ‘global_passphrase_callback’:
src/crypto/crypto.c:29: error: ‘PyObject’ undeclared (first use in this function) src/crypto/crypto.c:29: error: (Each undeclared identifier is reported only once
src/crypto/crypto.c:29: error: for each function it appears in.)
src/crypto/crypto.c:29: error: ‘func’ undeclared (first use in this function) src/crypto/crypto.c:29: error: ‘argv’ undeclared (first use in this function) src/crypto/crypto.c:29: warning: left-hand operand of comma expression has no effect
src/crypto/crypto.c:29: error: ‘ret’ undeclared (first use in this function)
src/crypto/crypto.c:29: warning: left-hand operand of comma expression has no effect
src/crypto/crypto.c:32: error: expected expression before ‘)’ token
src/crypto/crypto.c:33: warning: implicit declaration of function ‘Py_BuildValue’ src/crypto/crypto.c:34: warning: implicit declaration of function ‘PyEval_CallObject’ src/crypto/crypto.c:35: warning: implicit declaration of function ‘Py_DECREF’ src/crypto/crypto.c:36: error: ‘NULL’ undeclared (first use in this function) src/crypto/crypto.c:38: warning: implicit declaration of function ‘PyString_Check’ src/crypto/crypto.c:40: warning: implicit declaration of function ‘PyErr_SetString’ src/crypto/crypto.c:40: error: ‘PyExc_ValueError’ undeclared (first use in this function) src/crypto/crypto.c:43: warning: implicit declaration of function ‘PyString_Size’
src/crypto/crypto.c:46: warning: implicit declaration of function ‘strncpy’
src/crypto/crypto.c:46: warning: incompatible implicit declaration of built-in function ‘strncpy’ src/crypto/crypto.c:46: warning: implicit declaration of function ‘PyString_AsString’ src/crypto/crypto.c:46: warning: passing argument 2 of ‘strncpy’ makes pointer from integer without a cast
src/crypto/crypto.c: At top level:
src/crypto/crypto.c:63: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token src/crypto/crypto.c:139: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token src/crypto/crypto.c:233: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token src/crypto/crypto.c:282: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token src/crypto/crypto.c:336: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token src/crypto/crypto.c:385: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token src/crypto/crypto.c:439: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token src/crypto/crypto.c:493: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token src/crypto/crypto.c:527: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token src/crypto/crypto.c:546: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token src/crypto/crypto.c:566: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token src/crypto/crypto.c:584: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token src/crypto/crypto.c:605: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token src/crypto/crypto.c:628: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token src/crypto/crypto.c:651: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_methods’
src/crypto/crypto.c: In function ‘initcrypto’:
src/crypto/crypto.c:681: error: ‘PyObject’ undeclared (first use in this function) src/crypto/crypto.c:681: error: ‘c_api_object’ undeclared (first use in this function) src/crypto/crypto.c:682: error: ‘module’ undeclared (first use in this function) src/crypto/crypto.c:682: error: ‘dict’ undeclared (first use in this function) src/crypto/crypto.c:682: warning: left-hand operand of comma expression has no effect src/crypto/crypto.c:684: warning: implicit declaration of function ‘ERR_load_crypto_strings’ src/crypto/crypto.c:685: warning: implicit declaration of function ‘OpenSSL_add_all_algorithms’ src/crypto/crypto.c:687: warning: implicit declaration of function ‘Py_InitModule3’ src/crypto/crypto.c:687: error: ‘crypto_methods’ undeclared (first use in this function) src/crypto/crypto.c:687: error: ‘NULL’ undeclared (first use in this function) src/crypto/crypto.c:691: error: ‘crypto_X509_New’ undeclared (first use in this function) src/crypto/crypto.c:692: error: ‘crypto_X509Name_New’ undeclared (first use in this function) src/crypto/crypto.c:693: error: ‘crypto_X509Req_New’ undeclared (first use in this function) src/crypto/crypto.c:694: error: ‘crypto_X509Store_New’ undeclared (first use in this function) src/crypto/crypto.c:695: error: ‘crypto_PKey_New’ undeclared (first use in this function) src/crypto/crypto.c:697: error: ‘crypto_PKCS7_New’ undeclared (first use in this function) src/crypto/crypto.c:698: error: ‘crypto_NetscapeSPKI_New’ undeclared (first use in this function) src/crypto/crypto.c:699: warning: implicit declaration of function ‘PyCObject_FromVoidPtr’ src/crypto/crypto.c:701: warning: implicit declaration of function ‘PyModule_AddObject’ src/crypto/crypto.c:703: error: ‘crypto_Error’ undeclared (first use in this function) src/crypto/crypto.c:703: warning: implicit declaration of function ‘PyErr_NewException’ src/crypto/crypto.c:709: warning: implicit declaration of function ‘PyModule_AddIntConstant’ src/crypto/crypto.c:709: error: ‘X509_FILETYPE_PEM’ undeclared (first use in this function) src/crypto/crypto.c:710: error: ‘X509_FILETYPE_ASN1’ undeclared (first use in this function) src/crypto/crypto.c:712: error: ‘EVP_PKEY_RSA’ undeclared (first use in this function) src/crypto/crypto.c:713: error: ‘EVP_PKEY_DSA’ undeclared (first use in this function) src/crypto/crypto.c:715: warning: implicit declaration of function ‘PyModule_GetDict’ src/crypto/crypto.c:716: warning: implicit declaration of function ‘init_crypto_x509’ src/crypto/crypto.c:718: warning: implicit declaration of function ‘init_crypto_x509name’ src/crypto/crypto.c:720: warning: implicit declaration of function ‘init_crypto_x509store’ src/crypto/crypto.c:722: warning: implicit declaration of function ‘init_crypto_x509req’ src/crypto/crypto.c:724: warning: implicit declaration of function ‘init_crypto_pkey’ src/crypto/crypto.c:726: warning: implicit declaration of function ‘init_crypto_x509extension’ src/crypto/crypto.c:728: warning: implicit declaration of function ‘init_crypto_pkcs7’ src/crypto/crypto.c:730: warning: implicit declaration of function ‘init_crypto_pkcs12’ src/crypto/crypto.c:732: warning: implicit declaration of function ‘init_crypto_netscape_spki’
error: command 'gcc' failed with exit status 1



Reply to: