poper168 发表于 2014-04-04 11:56

我在centos6.5上安装php扩展openssl总是make不过去,请大家帮忙看看

我在centos6.5上安装php扩展openssl总是make不过去,请大家帮忙看看。

# /usr/local/php-5.2.8/bin/phpizeConfiguring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
configure.in:144: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from...
aclocal.m4:3535: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:5473: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:5472: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:2952: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:2932: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:2895: AC_PROG_LIBTOOL is expanded from...
configure.in:144: the top level
configure.in:144: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:3490: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:7600: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
configure.in:144: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:5586: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:5585: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:4621: _LT_AC_TAGCONFIG is expanded from...
configure.in:144: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from...
aclocal.m4:3535: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:5473: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:5472: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:2952: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:2932: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:2895: AC_PROG_LIBTOOL is expanded from...
configure.in:144: the top level
configure.in:144: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:3490: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:7600: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
configure.in:144: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:5586: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:5585: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:4621: _LT_AC_TAGCONFIG is expanded from...# ./configure --with-php-config=/usr/local/php-5.2.8/bin/php-configchecking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for icc... no
checking whether gcc and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local/php-5.2.8
checking for PHP includes... -I/usr/local/php-5.2.8/include/php -I/usr/local/php-5.2.8/include/php/main -I/usr/local/php-5.2.8/include/php/TSRM -I/usr/local/php-5.2.8/include/php/Zend -I/usr/local/php-5.2.8/include/php/ext -I/usr/local/php-5.2.8/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php-5.2.8/lib/php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix... /usr/local/php-5.2.8/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for OpenSSL support... yes, shared
checking for Kerberos support... no
checking for DSA_get_default_method in -lssl... yes
checking for pkg-config... /usr/bin/pkg-config
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flagworks... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged# make/bin/sh /root/php-5.2.8/ext/openssl/libtool --mode=compile gcc-I. -I/root/php-5.2.8/ext/openssl -DPHP_ATOM_INC -I/root/php-5.2.8/ext/openssl/include -I/root/php-5.2.8/ext/openssl/main -I/root/php-5.2.8/ext/openssl -I/usr/local/php-5.2.8/include/php -I/usr/local/php-5.2.8/include/php/main -I/usr/local/php-5.2.8/include/php/TSRM -I/usr/local/php-5.2.8/include/php/Zend -I/usr/local/php-5.2.8/include/php/ext -I/usr/local/php-5.2.8/include/php/ext/date/lib-I/usr/local/php-5.2.8/include/php -DHAVE_CONFIG_H-g -O2   -c /root/php-5.2.8/ext/openssl/openssl.c -o openssl.lo
mkdir .libs
gcc -I. -I/root/php-5.2.8/ext/openssl -DPHP_ATOM_INC -I/root/php-5.2.8/ext/openssl/include -I/root/php-5.2.8/ext/openssl/main -I/root/php-5.2.8/ext/openssl -I/usr/local/php-5.2.8/include/php -I/usr/local/php-5.2.8/include/php/main -I/usr/local/php-5.2.8/include/php/TSRM -I/usr/local/php-5.2.8/include/php/Zend -I/usr/local/php-5.2.8/include/php/ext -I/usr/local/php-5.2.8/include/php/ext/date/lib -I/usr/local/php-5.2.8/include/php -DHAVE_CONFIG_H -g -O2 -c /root/php-5.2.8/ext/openssl/openssl.c-fPIC -DPIC -o .libs/openssl.o
/root/php-5.2.8/ext/openssl/openssl.c:230: error: expected specifier-qualifier-list before 'LHASH'
/root/php-5.2.8/ext/openssl/openssl.c:411: error: expected declaration specifiers or '...' before 'LHASH'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_config_check_syntax':
/root/php-5.2.8/ext/openssl/openssl.c:417: error: 'config' undeclared (first use in this function)
/root/php-5.2.8/ext/openssl/openssl.c:417: error: (Each undeclared identifier is reported only once
/root/php-5.2.8/ext/openssl/openssl.c:417: error: for each function it appears in.)
/root/php-5.2.8/ext/openssl/openssl.c: In function 'add_oid_section':
/root/php-5.2.8/ext/openssl/openssl.c:436: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:440: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_parse_config':
/root/php-5.2.8/ext/openssl/openssl.c:486: error: 'struct php_x509_request' has no member named 'config_filename'
/root/php-5.2.8/ext/openssl/openssl.c:486: error: 'struct php_x509_request' has no member named 'config_filename'
/root/php-5.2.8/ext/openssl/openssl.c:487: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:487: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:488: error: 'struct php_x509_request' has no member named 'global_config'
/root/php-5.2.8/ext/openssl/openssl.c:489: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:489: error: 'struct php_x509_request' has no member named 'config_filename'
/root/php-5.2.8/ext/openssl/openssl.c:491: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:496: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:507: error: 'struct php_x509_request' has no member named 'digest_name'
/root/php-5.2.8/ext/openssl/openssl.c:507: error: 'struct php_x509_request' has no member named 'digest_name'
/root/php-5.2.8/ext/openssl/openssl.c:507: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:507: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:509: error: 'struct php_x509_request' has no member named 'extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:509: error: 'struct php_x509_request' has no member named 'extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:509: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:509: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:511: error: 'struct php_x509_request' has no member named 'request_extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:511: error: 'struct php_x509_request' has no member named 'request_extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:511: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:511: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:513: error: 'struct php_x509_request' has no member named 'priv_key_bits'
/root/php-5.2.8/ext/openssl/openssl.c:513: error: 'struct php_x509_request' has no member named 'priv_key_bits'
/root/php-5.2.8/ext/openssl/openssl.c:513: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:513: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:516: error: 'struct php_x509_request' has no member named 'priv_key_type'
/root/php-5.2.8/ext/openssl/openssl.c:516: error: 'struct php_x509_request' has no member named 'priv_key_type'
/root/php-5.2.8/ext/openssl/openssl.c:519: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
/root/php-5.2.8/ext/openssl/openssl.c:521: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:521: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:523: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:523: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:526: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
/root/php-5.2.8/ext/openssl/openssl.c:528: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
/root/php-5.2.8/ext/openssl/openssl.c:533: error: 'struct php_x509_request' has no member named 'digest_name'
/root/php-5.2.8/ext/openssl/openssl.c:534: error: 'struct php_x509_request' has no member named 'digest_name'
/root/php-5.2.8/ext/openssl/openssl.c:534: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:534: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:536: error: 'struct php_x509_request' has no member named 'digest_name'
/root/php-5.2.8/ext/openssl/openssl.c:537: error: 'struct php_x509_request' has no member named 'digest'
/root/php-5.2.8/ext/openssl/openssl.c:537: error: 'struct php_x509_request' has no member named 'md_alg'
/root/php-5.2.8/ext/openssl/openssl.c:537: error: 'struct php_x509_request' has no member named 'digest_name'
/root/php-5.2.8/ext/openssl/openssl.c:539: error: 'struct php_x509_request' has no member named 'md_alg'
/root/php-5.2.8/ext/openssl/openssl.c:540: error: 'struct php_x509_request' has no member named 'md_alg'
/root/php-5.2.8/ext/openssl/openssl.c:540: error: 'struct php_x509_request' has no member named 'digest'
/root/php-5.2.8/ext/openssl/openssl.c:543: error: 'struct php_x509_request' has no member named 'extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:543: error: 'struct php_x509_request' has no member named 'config_filename'
/root/php-5.2.8/ext/openssl/openssl.c:543: error: 'struct php_x509_request' has no member named 'extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:543: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:543: error: too many arguments to function 'php_openssl_config_check_syntax'
/root/php-5.2.8/ext/openssl/openssl.c:546: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:546: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:552: error: 'struct php_x509_request' has no member named 'request_extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:552: error: 'struct php_x509_request' has no member named 'config_filename'
/root/php-5.2.8/ext/openssl/openssl.c:552: error: 'struct php_x509_request' has no member named 'request_extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:552: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:552: error: too many arguments to function 'php_openssl_config_check_syntax'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_dispose_config':
/root/php-5.2.8/ext/openssl/openssl.c:560: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:561: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:562: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:564: error: 'struct php_x509_request' has no member named 'global_config'
/root/php-5.2.8/ext/openssl/openssl.c:565: error: 'struct php_x509_request' has no member named 'global_config'
/root/php-5.2.8/ext/openssl/openssl.c:566: error: 'struct php_x509_request' has no member named 'global_config'
/root/php-5.2.8/ext/openssl/openssl.c:568: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:569: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:570: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_x509_from_zval':
/root/php-5.2.8/ext/openssl/openssl.c:867: warning: passing argument 1 of 'PEM_ASN1_read_bio' from incompatible pointer type
/usr/include/openssl/pem.h:417: note: expected 'void * (*)(void **, const unsigned char **, long int)' but argument is of type 'char * (*)()'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_make_REQ':
/root/php-5.2.8/ext/openssl/openssl.c:1686: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:1686: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:1690: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:1694: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:1694: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:1698: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:1829: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'zif_openssl_csr_sign':
/root/php-5.2.8/ext/openssl/openssl.c:2057: error: 'struct php_x509_request' has no member named 'extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:2061: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:2062: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:2062: error: 'struct php_x509_request' has no member named 'extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:2068: error: 'struct php_x509_request' has no member named 'digest'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'zif_openssl_csr_new':
/root/php-5.2.8/ext/openssl/openssl.c:2123: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2124: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2128: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2131: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2140: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:2143: error: 'struct php_x509_request' has no member named 'request_extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:2143: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:2144: error: 'struct php_x509_request' has no member named 'request_extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:2146: error: 'struct php_x509_request' has no member named 'request_extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:2150: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2150: error: 'struct php_x509_request' has no member named 'digest'
/root/php-5.2.8/ext/openssl/openssl.c:2160: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2161: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2163: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2170: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_generate_private_key':
/root/php-5.2.8/ext/openssl/openssl.c:2419: error: 'struct php_x509_request' has no member named 'priv_key_bits'
/root/php-5.2.8/ext/openssl/openssl.c:2421: error: 'struct php_x509_request' has no member named 'priv_key_bits'
/root/php-5.2.8/ext/openssl/openssl.c:2425: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:2425: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:2428: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2429: error: 'struct php_x509_request' has no member named 'priv_key_type'
/root/php-5.2.8/ext/openssl/openssl.c:2431: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2431: error: 'struct php_x509_request' has no member named 'priv_key_bits'
/root/php-5.2.8/ext/openssl/openssl.c:2432: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2438: error: 'struct php_x509_request' has no member named 'priv_key_bits'
/root/php-5.2.8/ext/openssl/openssl.c:2442: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2443: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2460: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2461: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'zif_openssl_pkey_new':
/root/php-5.2.8/ext/openssl/openssl.c:2534: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2536: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'zif_openssl_pkey_export_to_file':
/root/php-5.2.8/ext/openssl/openssl.c:2577: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'zif_openssl_pkey_export':
/root/php-5.2.8/ext/openssl/openssl.c:2628: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
make: *** 1# make install/bin/sh /root/php-5.2.8/ext/openssl/libtool --mode=compile gcc-I. -I/root/php-5.2.8/ext/openssl -DPHP_ATOM_INC -I/root/php-5.2.8/ext/openssl/include -I/root/php-5.2.8/ext/openssl/main -I/root/php-5.2.8/ext/openssl -I/usr/local/php-5.2.8/include/php -I/usr/local/php-5.2.8/include/php/main -I/usr/local/php-5.2.8/include/php/TSRM -I/usr/local/php-5.2.8/include/php/Zend -I/usr/local/php-5.2.8/include/php/ext -I/usr/local/php-5.2.8/include/php/ext/date/lib-I/usr/local/php-5.2.8/include/php -DHAVE_CONFIG_H-g -O2   -c /root/php-5.2.8/ext/openssl/openssl.c -o openssl.lo
gcc -I. -I/root/php-5.2.8/ext/openssl -DPHP_ATOM_INC -I/root/php-5.2.8/ext/openssl/include -I/root/php-5.2.8/ext/openssl/main -I/root/php-5.2.8/ext/openssl -I/usr/local/php-5.2.8/include/php -I/usr/local/php-5.2.8/include/php/main -I/usr/local/php-5.2.8/include/php/TSRM -I/usr/local/php-5.2.8/include/php/Zend -I/usr/local/php-5.2.8/include/php/ext -I/usr/local/php-5.2.8/include/php/ext/date/lib -I/usr/local/php-5.2.8/include/php -DHAVE_CONFIG_H -g -O2 -c /root/php-5.2.8/ext/openssl/openssl.c-fPIC -DPIC -o .libs/openssl.o
/root/php-5.2.8/ext/openssl/openssl.c:230: error: expected specifier-qualifier-list before 'LHASH'
/root/php-5.2.8/ext/openssl/openssl.c:411: error: expected declaration specifiers or '...' before 'LHASH'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_config_check_syntax':
/root/php-5.2.8/ext/openssl/openssl.c:417: error: 'config' undeclared (first use in this function)
/root/php-5.2.8/ext/openssl/openssl.c:417: error: (Each undeclared identifier is reported only once
/root/php-5.2.8/ext/openssl/openssl.c:417: error: for each function it appears in.)
/root/php-5.2.8/ext/openssl/openssl.c: In function 'add_oid_section':
/root/php-5.2.8/ext/openssl/openssl.c:436: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:440: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_parse_config':
/root/php-5.2.8/ext/openssl/openssl.c:486: error: 'struct php_x509_request' has no member named 'config_filename'
/root/php-5.2.8/ext/openssl/openssl.c:486: error: 'struct php_x509_request' has no member named 'config_filename'
/root/php-5.2.8/ext/openssl/openssl.c:487: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:487: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:488: error: 'struct php_x509_request' has no member named 'global_config'
/root/php-5.2.8/ext/openssl/openssl.c:489: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:489: error: 'struct php_x509_request' has no member named 'config_filename'
/root/php-5.2.8/ext/openssl/openssl.c:491: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:496: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:507: error: 'struct php_x509_request' has no member named 'digest_name'
/root/php-5.2.8/ext/openssl/openssl.c:507: error: 'struct php_x509_request' has no member named 'digest_name'
/root/php-5.2.8/ext/openssl/openssl.c:507: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:507: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:509: error: 'struct php_x509_request' has no member named 'extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:509: error: 'struct php_x509_request' has no member named 'extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:509: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:509: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:511: error: 'struct php_x509_request' has no member named 'request_extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:511: error: 'struct php_x509_request' has no member named 'request_extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:511: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:511: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:513: error: 'struct php_x509_request' has no member named 'priv_key_bits'
/root/php-5.2.8/ext/openssl/openssl.c:513: error: 'struct php_x509_request' has no member named 'priv_key_bits'
/root/php-5.2.8/ext/openssl/openssl.c:513: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:513: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:516: error: 'struct php_x509_request' has no member named 'priv_key_type'
/root/php-5.2.8/ext/openssl/openssl.c:516: error: 'struct php_x509_request' has no member named 'priv_key_type'
/root/php-5.2.8/ext/openssl/openssl.c:519: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
/root/php-5.2.8/ext/openssl/openssl.c:521: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:521: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:523: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:523: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:526: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
/root/php-5.2.8/ext/openssl/openssl.c:528: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
/root/php-5.2.8/ext/openssl/openssl.c:533: error: 'struct php_x509_request' has no member named 'digest_name'
/root/php-5.2.8/ext/openssl/openssl.c:534: error: 'struct php_x509_request' has no member named 'digest_name'
/root/php-5.2.8/ext/openssl/openssl.c:534: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:534: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:536: error: 'struct php_x509_request' has no member named 'digest_name'
/root/php-5.2.8/ext/openssl/openssl.c:537: error: 'struct php_x509_request' has no member named 'digest'
/root/php-5.2.8/ext/openssl/openssl.c:537: error: 'struct php_x509_request' has no member named 'md_alg'
/root/php-5.2.8/ext/openssl/openssl.c:537: error: 'struct php_x509_request' has no member named 'digest_name'
/root/php-5.2.8/ext/openssl/openssl.c:539: error: 'struct php_x509_request' has no member named 'md_alg'
/root/php-5.2.8/ext/openssl/openssl.c:540: error: 'struct php_x509_request' has no member named 'md_alg'
/root/php-5.2.8/ext/openssl/openssl.c:540: error: 'struct php_x509_request' has no member named 'digest'
/root/php-5.2.8/ext/openssl/openssl.c:543: error: 'struct php_x509_request' has no member named 'extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:543: error: 'struct php_x509_request' has no member named 'config_filename'
/root/php-5.2.8/ext/openssl/openssl.c:543: error: 'struct php_x509_request' has no member named 'extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:543: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:543: error: too many arguments to function 'php_openssl_config_check_syntax'
/root/php-5.2.8/ext/openssl/openssl.c:546: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:546: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:552: error: 'struct php_x509_request' has no member named 'request_extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:552: error: 'struct php_x509_request' has no member named 'config_filename'
/root/php-5.2.8/ext/openssl/openssl.c:552: error: 'struct php_x509_request' has no member named 'request_extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:552: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:552: error: too many arguments to function 'php_openssl_config_check_syntax'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_dispose_config':
/root/php-5.2.8/ext/openssl/openssl.c:560: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:561: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:562: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:564: error: 'struct php_x509_request' has no member named 'global_config'
/root/php-5.2.8/ext/openssl/openssl.c:565: error: 'struct php_x509_request' has no member named 'global_config'
/root/php-5.2.8/ext/openssl/openssl.c:566: error: 'struct php_x509_request' has no member named 'global_config'
/root/php-5.2.8/ext/openssl/openssl.c:568: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:569: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:570: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_x509_from_zval':
/root/php-5.2.8/ext/openssl/openssl.c:867: warning: passing argument 1 of 'PEM_ASN1_read_bio' from incompatible pointer type
/usr/include/openssl/pem.h:417: note: expected 'void * (*)(void **, const unsigned char **, long int)' but argument is of type 'char * (*)()'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_make_REQ':
/root/php-5.2.8/ext/openssl/openssl.c:1686: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:1686: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:1690: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:1694: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:1694: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:1698: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:1829: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'zif_openssl_csr_sign':
/root/php-5.2.8/ext/openssl/openssl.c:2057: error: 'struct php_x509_request' has no member named 'extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:2061: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:2062: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:2062: error: 'struct php_x509_request' has no member named 'extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:2068: error: 'struct php_x509_request' has no member named 'digest'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'zif_openssl_csr_new':
/root/php-5.2.8/ext/openssl/openssl.c:2123: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2124: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2128: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2131: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2140: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:2143: error: 'struct php_x509_request' has no member named 'request_extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:2143: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:2144: error: 'struct php_x509_request' has no member named 'request_extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:2146: error: 'struct php_x509_request' has no member named 'request_extensions_section'
/root/php-5.2.8/ext/openssl/openssl.c:2150: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2150: error: 'struct php_x509_request' has no member named 'digest'
/root/php-5.2.8/ext/openssl/openssl.c:2160: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2161: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2163: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2170: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_generate_private_key':
/root/php-5.2.8/ext/openssl/openssl.c:2419: error: 'struct php_x509_request' has no member named 'priv_key_bits'
/root/php-5.2.8/ext/openssl/openssl.c:2421: error: 'struct php_x509_request' has no member named 'priv_key_bits'
/root/php-5.2.8/ext/openssl/openssl.c:2425: error: 'struct php_x509_request' has no member named 'req_config'
/root/php-5.2.8/ext/openssl/openssl.c:2425: error: 'struct php_x509_request' has no member named 'section_name'
/root/php-5.2.8/ext/openssl/openssl.c:2428: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2429: error: 'struct php_x509_request' has no member named 'priv_key_type'
/root/php-5.2.8/ext/openssl/openssl.c:2431: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2431: error: 'struct php_x509_request' has no member named 'priv_key_bits'
/root/php-5.2.8/ext/openssl/openssl.c:2432: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2438: error: 'struct php_x509_request' has no member named 'priv_key_bits'
/root/php-5.2.8/ext/openssl/openssl.c:2442: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2443: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2460: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2461: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'zif_openssl_pkey_new':
/root/php-5.2.8/ext/openssl/openssl.c:2534: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c:2536: error: 'struct php_x509_request' has no member named 'priv_key'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'zif_openssl_pkey_export_to_file':
/root/php-5.2.8/ext/openssl/openssl.c:2577: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
/root/php-5.2.8/ext/openssl/openssl.c: In function 'zif_openssl_pkey_export':
/root/php-5.2.8/ext/openssl/openssl.c:2628: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
make: *** 1#

# yum install openssl openssl-develLoaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror.bit.edu.cn
* extras: mirror.bit.edu.cn
* updates: mirror.bit.edu.cn
Setting up Install Process
Package openssl-1.0.1e-16.el6_5.4.x86_64 already installed and latest version
Package openssl-devel-1.0.1e-16.el6_5.4.x86_64 already installed and latest version
Nothing to do
页: [1]
查看完整版本: 我在centos6.5上安装php扩展openssl总是make不过去,请大家帮忙看看