php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53547 Cannot compile PHP with OpenSSL
Submitted: 2010-12-15 08:28 UTC Modified: 2013-02-18 00:34 UTC
Votes:11
Avg. Score:4.5 ± 0.9
Reproduced:8 of 10 (80.0%)
Same Version:2 (25.0%)
Same OS:3 (37.5%)
From: is at 3p dot gd Assigned:
Status: No Feedback Package: OpenSSL related
PHP Version: Irrelevant OS: Mac OS X
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-12-15 08:28 UTC] is at 3p dot gd
Description:
------------
Hello guys, I tried to compile php with openssl, but:

Starry-Sky:openssl Jerry$ sudo make/bin/sh /Users/Jerry/lsws/phpbuild/php-
5.2.10/ext/openssl/libtool --mode=compile cc  -I. -
I/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl -DPHP_ATOM_INC -
I/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/include -
I/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/main -
I/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl -I/opt/local/include/php -
I/opt/local/include/php/main -I/opt/local/include/php/TSRM -
I/opt/local/include/php/Zend -I/opt/local/include/php/ext -
I/opt/local/include/php/ext/date/lib -I/opt/local/include -I/opt/local/include  
-DHAVE_CONFIG_H  -g -O2   -c /Users/Jerry/lsws/phpbuild/php-
5.2.10/ext/openssl/openssl.c -o openssl.lo 
 cc -I. -I/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl -DPHP_ATOM_INC -
I/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/include -
I/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/main -
I/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl -I/opt/local/include/php -
I/opt/local/include/php/main -I/opt/local/include/php/TSRM -
I/opt/local/include/php/Zend -I/opt/local/include/php/ext -
I/opt/local/include/php/ext/date/lib -I/opt/local/include -I/opt/local/include -
DHAVE_CONFIG_H -g -O2 -c /Users/Jerry/lsws/phpbuild/php-
5.2.10/ext/openssl/openssl.c  -fno-common -DPIC -o .libs/openssl.o
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:64: error: duplicate 
'static'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:101: error: 
'second_arg_force_ref' undeclared here (not in a function)
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:230: error: expected 
specifier-qualifier-list before 'LHASH'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:413: error: expected 
declaration specifiers or '...' before 'LHASH'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c: In function 
'php_openssl_config_check_syntax':
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:419: error: 'config' 
undeclared (first use in this function)
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:419: error: (Each 
undeclared identifier is reported only once
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:419: error: for each 
function it appears in.)
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:419: warning: 
passing argument 2 of 'X509V3_set_conf_lhash' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:420: warning: 
passing argument 1 of 'X509V3_EXT_add_conf' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c: In function 
'add_oid_section':
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:438: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:438: warning: 
passing argument 1 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:442: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:442: warning: 
passing argument 1 of 'CONF_get_section' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c: In function 
'php_openssl_parse_config':
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:488: error: 'struct 
php_x509_request' has no member named 'config_filename'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:488: error: 'struct 
php_x509_request' has no member named 'config_filename'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:489: error: 'struct 
php_x509_request' has no member named 'section_name'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:489: error: 'struct 
php_x509_request' has no member named 'section_name'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:490: error: 'struct 
php_x509_request' has no member named 'global_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:491: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:491: error: 'struct 
php_x509_request' has no member named 'config_filename'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:491: warning: 
passing argument 2 of 'CONF_load' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:493: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:498: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:498: warning: 
passing argument 1 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:509: error: 'struct 
php_x509_request' has no member named 'digest_name'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:509: error: 'struct 
php_x509_request' has no member named 'digest_name'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:509: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:509: error: 'struct 
php_x509_request' has no member named 'section_name'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:509: warning: 
passing argument 1 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:509: warning: 
passing argument 2 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:511: error: 'struct 
php_x509_request' has no member named 'extensions_section'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:511: error: 'struct 
php_x509_request' has no member named 'extensions_section'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:511: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:511: error: 'struct 
php_x509_request' has no member named 'section_name'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:511: warning: 
passing argument 1 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:511: warning: 
passing argument 2 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:513: error: 'struct 
php_x509_request' has no member named 'request_extensions_section'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:513: error: 'struct 
php_x509_request' has no member named 'request_extensions_section'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:513: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:513: error: 'struct 
php_x509_request' has no member named 'section_name'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:513: warning: 
passing argument 1 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:513: warning: 
passing argument 2 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:515: error: 'struct 
php_x509_request' has no member named 'priv_key_bits'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:515: error: 'struct 
php_x509_request' has no member named 'priv_key_bits'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:515: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:515: error: 'struct 
php_x509_request' has no member named 'section_name'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:515: warning: 
passing argument 1 of 'CONF_get_number' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:515: warning: 
passing argument 2 of 'CONF_get_number' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:518: error: 'struct 
php_x509_request' has no member named 'priv_key_type'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:518: error: 'struct 
php_x509_request' has no member named 'priv_key_type'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:521: error: 'struct 
php_x509_request' has no member named 'priv_key_encrypt'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:523: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:523: error: 'struct 
php_x509_request' has no member named 'section_name'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:523: warning: 
passing argument 1 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:523: warning: 
passing argument 2 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:525: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:525: error: 'struct 
php_x509_request' has no member named 'section_name'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:525: warning: 
passing argument 1 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:525: warning: 
passing argument 2 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:528: error: 'struct 
php_x509_request' has no member named 'priv_key_encrypt'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:530: error: 'struct 
php_x509_request' has no member named 'priv_key_encrypt'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:535: error: 'struct 
php_x509_request' has no member named 'digest_name'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:536: error: 'struct 
php_x509_request' has no member named 'digest_name'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:536: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:536: error: 'struct 
php_x509_request' has no member named 'section_name'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:536: warning: 
passing argument 1 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:536: warning: 
passing argument 2 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:538: error: 'struct 
php_x509_request' has no member named 'digest_name'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:539: error: 'struct 
php_x509_request' has no member named 'digest'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:539: error: 'struct 
php_x509_request' has no member named 'md_alg'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:539: error: 'struct 
php_x509_request' has no member named 'digest_name'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:539: warning: 
passing argument 1 of 'EVP_get_digestbyname' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:541: error: 'struct 
php_x509_request' has no member named 'md_alg'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:542: error: 'struct 
php_x509_request' has no member named 'md_alg'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:542: error: 'struct 
php_x509_request' has no member named 'digest'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:545: error: 'struct 
php_x509_request' has no member named 'extensions_section'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:545: error: 'struct 
php_x509_request' has no member named 'config_filename'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:545: error: 'struct 
php_x509_request' has no member named 'extensions_section'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:545: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:545: warning: 
passing argument 2 of 'php_openssl_config_check_syntax' from incompatible 
pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:545: warning: 
passing argument 3 of 'php_openssl_config_check_syntax' from incompatible 
pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:545: error: too many 
arguments to function 'php_openssl_config_check_syntax'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:548: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:548: error: 'struct 
php_x509_request' has no member named 'section_name'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:548: warning: 
passing argument 1 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:548: warning: 
passing argument 2 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:554: error: 'struct 
php_x509_request' has no member named 'request_extensions_section'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:554: error: 'struct 
php_x509_request' has no member named 'config_filename'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:554: error: 'struct 
php_x509_request' has no member named 'request_extensions_section'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:554: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:554: warning: 
passing argument 2 of 'php_openssl_config_check_syntax' from incompatible 
pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:554: warning: 
passing argument 3 of 'php_openssl_config_check_syntax' from incompatible 
pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:554: error: too many 
arguments to function 'php_openssl_config_check_syntax'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c: In function 
'php_openssl_dispose_config':
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:562: error: 'struct 
php_x509_request' has no member named 'priv_key'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:563: error: 'struct 
php_x509_request' has no member named 'priv_key'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:563: warning: 
passing argument 1 of 'EVP_PKEY_free' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:564: error: 'struct 
php_x509_request' has no member named 'priv_key'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:566: error: 'struct 
php_x509_request' has no member named 'global_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:567: error: 'struct 
php_x509_request' has no member named 'global_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:567: warning: 
passing argument 1 of 'CONF_free' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:568: error: 'struct 
php_x509_request' has no member named 'global_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:570: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:571: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:571: warning: 
passing argument 1 of 'CONF_free' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:572: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c: In function 
'php_openssl_get_evp_md_from_algo':
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:645: warning: cast 
to pointer from integer of different size
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c: In function 
'php_openssl_x509_from_zval':
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:869: warning: 
passing argument 1 of 'PEM_ASN1_read_bio' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c: In function 
'php_openssl_make_REQ':
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:1688: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:1688: error: 'struct 
php_x509_request' has no member named 'section_name'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:1688: warning: 
passing argument 1 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:1688: warning: 
passing argument 2 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:1692: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:1692: warning: 
passing argument 1 of 'CONF_get_section' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:1696: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:1696: error: 'struct 
php_x509_request' has no member named 'section_name'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:1696: warning: 
passing argument 1 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:1696: warning: 
passing argument 2 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:1700: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:1700: warning: 
passing argument 1 of 'CONF_get_section' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:1831: error: 'struct 
php_x509_request' has no member named 'priv_key'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:1831: warning: 
passing argument 2 of 'X509_REQ_set_pubkey' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c: In function 
'zif_openssl_csr_sign':
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2059: error: 'struct 
php_x509_request' has no member named 'extensions_section'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2063: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2063: warning: 
passing argument 2 of 'X509V3_set_conf_lhash' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2064: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2064: error: 'struct 
php_x509_request' has no member named 'extensions_section'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2064: warning: 
passing argument 1 of 'X509V3_EXT_add_conf' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2064: warning: 
passing argument 3 of 'X509V3_EXT_add_conf' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2070: error: 'struct 
php_x509_request' has no member named 'digest'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2070: warning: 
passing argument 3 of 'X509_sign' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c: In function 
'zif_openssl_csr_new':
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2125: error: 'struct 
php_x509_request' has no member named 'priv_key'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2126: error: 'struct 
php_x509_request' has no member named 'priv_key'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2130: error: 'struct 
php_x509_request' has no member named 'priv_key'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2133: error: 'struct 
php_x509_request' has no member named 'priv_key'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2142: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2142: warning: 
passing argument 2 of 'X509V3_set_conf_lhash' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2145: error: 'struct 
php_x509_request' has no member named 'request_extensions_section'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2145: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2146: error: 'struct 
php_x509_request' has no member named 'request_extensions_section'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2146: warning: 
passing argument 1 of 'X509V3_EXT_REQ_add_conf' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2146: warning: 
passing argument 3 of 'X509V3_EXT_REQ_add_conf' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2148: error: 'struct 
php_x509_request' has no member named 'request_extensions_section'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2148: warning: 
format '%s' expects type 'char *', but argument 4 has type 'struct 
zend_function_entry *'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2152: error: 'struct 
php_x509_request' has no member named 'priv_key'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2152: error: 'struct 
php_x509_request' has no member named 'digest'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2152: warning: 
passing argument 2 of 'X509_REQ_sign' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2152: warning: 
passing argument 3 of 'X509_REQ_sign' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2162: error: 'struct 
php_x509_request' has no member named 'priv_key'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2163: error: 'struct 
php_x509_request' has no member named 'priv_key'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2165: error: 'struct 
php_x509_request' has no member named 'priv_key'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2172: error: 'struct 
php_x509_request' has no member named 'priv_key'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c: In function 
'php_openssl_generate_private_key':
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2421: error: 'struct 
php_x509_request' has no member named 'priv_key_bits'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2421: warning: 
comparison between pointer and integer
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2423: error: 'struct 
php_x509_request' has no member named 'priv_key_bits'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2423: warning: 
format '%d' expects type 'int', but argument 5 has type 'struct 
zend_function_entry *'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2427: error: 'struct 
php_x509_request' has no member named 'req_config'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2427: error: 'struct 
php_x509_request' has no member named 'section_name'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2427: warning: 
passing argument 1 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2427: warning: 
passing argument 2 of 'CONF_get_string' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2430: error: 'struct 
php_x509_request' has no member named 'priv_key'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2431: error: 'struct 
php_x509_request' has no member named 'priv_key_type'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2433: error: 'struct 
php_x509_request' has no member named 'priv_key'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2433: error: 'struct 
php_x509_request' has no member named 'priv_key_bits'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2433: warning: 
passing argument 1 of 'RSA_generate_key' makes integer from pointer without a 
cast
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2433: warning: 
passing argument 1 of 'EVP_PKEY_assign' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2434: error: 'struct 
php_x509_request' has no member named 'priv_key'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2434: warning: 
assignment from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2462: error: 'struct 
php_x509_request' has no member named 'priv_key'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2462: warning: 
passing argument 1 of 'EVP_PKEY_free' from incompatible pointer type
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2463: error: 'struct 
php_x509_request' has no member named 'priv_key'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c: In function 
'zif_openssl_pkey_new':
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2536: error: 'struct 
php_x509_request' has no member named 'priv_key'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2538: error: 'struct 
php_x509_request' has no member named 'priv_key'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c: In function 
'zif_openssl_pkey_export_to_file':
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2579: error: 'struct 
php_x509_request' has no member named 'priv_key_encrypt'
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c: In function 
'zif_openssl_pkey_export':
/Users/Jerry/lsws/phpbuild/php-5.2.10/ext/openssl/openssl.c:2630: error: 'struct 
php_x509_request' has no member named 'priv_key_encrypt'
make: *** [openssl.lo] Error 1

What can I do?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-15 14:26 UTC] johannes@php.net
-Status: Open +Status: Feedback
 [2010-12-15 14:26 UTC] johannes@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

5.2.10 is an old version of PHP. Also which openssl version are you using?
 [2010-12-15 16:20 UTC] is at 3p dot gd
For some reasons, I cannot use php 5.3 for my development. I'm using openssl 1.0.0
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 [2013-11-14 06:19 UTC] semtlenori at gmail dot com
I also have experienced this problem while compiling php-5.2.10 with openssl 1.0.0 on CentOS 6.3
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 11:01:28 2024 UTC