Forum Programmation.php PHP 4 et OpenSSL

Posté par .
Tags : aucun
0
29
fév.
2008
Bonjour,

j'ai besoin du module openssl pour php. Je suis sous une fedora 5 avec apache 1.3.37, php 4.4.2 et openssl 0.9.8g.
Le problème est que je n'arrive pas à compiler php avec le module openssl, j'ai essayer différentes version d'openssl mais toujours la même erreur :

make
/bin/sh /home/sources/php-4.4.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/openssl/ -I/home/sources/php-4.4.2/ext/openssl/ -DPHP_ATOM_INC -I/home/sources/php-4.4.2/include -I/home/sources/php-4.4.2/main -I/home/sources/php-4.4.2 -I/usr/kerberos/include -I/home/sources/curl-7.12.3/include -I/usr/local/include -I/usr/local/include/freetype2 -I/home/sources/php-4.4.2/ext/xml/expat -I/home/sources/php-4.4.2/TSRM -I/home/sources/php-4.4.2/Zend -g -O2 -prefer-non-pic -c /home/sources/php-4.4.2/ext/openssl/openssl.c -o ext/openssl/openssl.lo
/home/sources/php-4.4.2/ext/openssl/openssl.c:66: error: 'zif_openssl_pkey_free' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:67: error: 'zif_openssl_pkey_new' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:68: error: 'zif_openssl_pkey_export' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:69: error: 'zif_openssl_pkey_export_to_file' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:70: error: 'zif_openssl_pkey_get_private' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:71: error: 'zif_openssl_pkey_get_public' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:78: error: 'zif_openssl_x509_read' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:79: error: 'zif_openssl_x509_free' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:80: error: 'zif_openssl_x509_parse' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:81: error: 'zif_openssl_x509_checkpurpose' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:82: error: 'zif_openssl_x509_check_private_key' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:83: error: 'zif_openssl_x509_export' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:84: error: 'zif_openssl_x509_export_to_file' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:87: error: 'zif_openssl_csr_new' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:88: error: 'zif_openssl_csr_export' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:89: error: 'zif_openssl_csr_export_to_file' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:90: error: 'zif_openssl_csr_sign' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:93: error: 'zif_openssl_sign' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:94: error: 'zif_openssl_verify' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:95: error: 'zif_openssl_seal' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:96: error: 'zif_openssl_open' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:99: error: 'zif_openssl_pkcs7_verify' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:100: error: 'zif_openssl_pkcs7_decrypt' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:101: error: 'zif_openssl_pkcs7_sign' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:102: error: 'zif_openssl_pkcs7_encrypt' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:104: error: 'zif_openssl_private_encrypt' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:105: error: 'zif_openssl_private_decrypt' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:106: error: 'zif_openssl_public_encrypt' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:107: error: 'zif_openssl_public_decrypt' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:109: error: 'zif_openssl_error_string' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:120: error: 'zm_startup_openssl' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:120: error: initializer element is not constant
/home/sources/php-4.4.2/ext/openssl/openssl.c:120: error: (near initialization for 'openssl_module_entry.module_startup_func')
/home/sources/php-4.4.2/ext/openssl/openssl.c:121: error: 'zm_shutdown_openssl' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:121: error: initializer element is not constant
/home/sources/php-4.4.2/ext/openssl/openssl.c:121: error: (near initialization for 'openssl_module_entry.module_shutdown_func')
/home/sources/php-4.4.2/ext/openssl/openssl.c:124: error: 'zm_info_openssl' undeclared here (not in a function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:124: error: initializer element is not constant
/home/sources/php-4.4.2/ext/openssl/openssl.c:124: error: (near initialization for 'openssl_module_entry.info_func')
/home/sources/php-4.4.2/ext/openssl/openssl.c: In function 'php_openssl_x509_from_zval':
/home/sources/php-4.4.2/ext/openssl/openssl.c:724: warning: passing argument 1 of 'PEM_ASN1_read_bio' from incompatible pointer type
/home/sources/php-4.4.2/ext/openssl/openssl.c: In function 'verify_callback':
/home/sources/php-4.4.2/ext/openssl/openssl.c:3015: error: 'SSL' undeclared (first use in this function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:3015: error: (Each undeclared identifier is reported only once
/home/sources/php-4.4.2/ext/openssl/openssl.c:3015: error: for each function it appears in.)
/home/sources/php-4.4.2/ext/openssl/openssl.c:3015: error: 'ssl' undeclared (first use in this function)
/home/sources/php-4.4.2/ext/openssl/openssl.c:3015: error: invalid operands to binary *
/home/sources/php-4.4.2/ext/openssl/openssl.c: At top level:
/home/sources/php-4.4.2/ext/openssl/openssl.c:3051: error: expected ')' before '*' token
/home/sources/php-4.4.2/ext/openssl/openssl.c:3139: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
make: *** [ext/openssl/openssl.lo] Erreur 1

Si quelqu'un à une idée de quoi ca pourrais venir, ca m'aiderais beaucoup, ca fait deux jour que j'y suis dessus....

Suivre le flux des commentaires

Note : les commentaires appartiennent à ceux qui les ont postés. Nous n'en sommes pas responsables.