免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2343 | 回复: 0
打印 上一主题 下一主题

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

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-04-04 11:56 |只看该作者 |倒序浏览
我在centos6.5上安装php扩展openssl总是make不过去,请大家帮忙看看。

[root@test1 openssl]# /usr/local/php-5.2.8/bin/phpize
  1. Configuring for:
  2. PHP Api Version:         20041225
  3. Zend Module Api No:      20060613
  4. Zend Extension Api No:   220060519
  5. configure.in:144: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached
  6. ../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
  7. ../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from...
  8. aclocal.m4:3535: AC_LIBTOOL_LINKER_OPTION is expanded from...
  9. aclocal.m4:5473: _LT_AC_LANG_C_CONFIG is expanded from...
  10. aclocal.m4:5472: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
  11. aclocal.m4:2952: AC_LIBTOOL_SETUP is expanded from...
  12. aclocal.m4:2932: _AC_PROG_LIBTOOL is expanded from...
  13. aclocal.m4:2895: AC_PROG_LIBTOOL is expanded from...
  14. configure.in:144: the top level
  15. configure.in:144: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-id, must contain _cv_ to be cached
  16. aclocal.m4:3490: AC_LIBTOOL_COMPILER_OPTION is expanded from...
  17. aclocal.m4:7600: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
  18. configure.in:144: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
  19. aclocal.m4:5586: _LT_AC_LANG_CXX_CONFIG is expanded from...
  20. aclocal.m4:5585: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
  21. aclocal.m4:4621: _LT_AC_TAGCONFIG is expanded from...
  22. configure.in:144: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached
  23. ../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
  24. ../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from...
  25. aclocal.m4:3535: AC_LIBTOOL_LINKER_OPTION is expanded from...
  26. aclocal.m4:5473: _LT_AC_LANG_C_CONFIG is expanded from...
  27. aclocal.m4:5472: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
  28. aclocal.m4:2952: AC_LIBTOOL_SETUP is expanded from...
  29. aclocal.m4:2932: _AC_PROG_LIBTOOL is expanded from...
  30. aclocal.m4:2895: AC_PROG_LIBTOOL is expanded from...
  31. configure.in:144: the top level
  32. configure.in:144: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-id, must contain _cv_ to be cached
  33. aclocal.m4:3490: AC_LIBTOOL_COMPILER_OPTION is expanded from...
  34. aclocal.m4:7600: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
  35. configure.in:144: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
  36. aclocal.m4:5586: _LT_AC_LANG_CXX_CONFIG is expanded from...
  37. aclocal.m4:5585: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
  38. aclocal.m4:4621: _LT_AC_TAGCONFIG is expanded from...
复制代码
[root@test1 openssl]# ./configure --with-php-config=/usr/local/php-5.2.8/bin/php-config
  1. checking for grep that handles long lines and -e... /bin/grep
  2. checking for egrep... /bin/grep -E
  3. checking for a sed that does not truncate output... /bin/sed
  4. checking for gcc... gcc
  5. checking for C compiler default output file name... a.out
  6. checking whether the C compiler works... yes
  7. checking whether we are cross compiling... no
  8. checking for suffix of executables...
  9. checking for suffix of object files... o
  10. checking whether we are using the GNU C compiler... yes
  11. checking whether gcc accepts -g... yes
  12. checking for gcc option to accept ISO C89... none needed
  13. checking how to run the C preprocessor... gcc -E
  14. checking for icc... no
  15. checking whether gcc and cc understand -c and -o together... yes
  16. checking for system library directory... lib
  17. checking if compiler supports -R... no
  18. checking if compiler supports -Wl,-rpath,... yes
  19. checking build system type... x86_64-unknown-linux-gnu
  20. checking host system type... x86_64-unknown-linux-gnu
  21. checking target system type... x86_64-unknown-linux-gnu
  22. checking for PHP prefix... /usr/local/php-5.2.8
  23. 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
  24. checking for PHP extension directory... /usr/local/php-5.2.8/lib/php/extensions/no-debug-non-zts-20060613
  25. checking for PHP installed headers prefix... /usr/local/php-5.2.8/include/php
  26. checking if debug is enabled... no
  27. checking if zts is enabled... no
  28. checking for re2c... no
  29. configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
  30. checking for gawk... gawk
  31. checking for OpenSSL support... yes, shared
  32. checking for Kerberos support... no
  33. checking for DSA_get_default_method in -lssl... yes
  34. checking for pkg-config... /usr/bin/pkg-config
  35. checking for ld used by gcc... /usr/bin/ld
  36. checking if the linker (/usr/bin/ld) is GNU ld... yes
  37. checking for /usr/bin/ld option to reload object files... -r
  38. checking for BSD-compatible nm... /usr/bin/nm -B
  39. checking whether ln -s works... yes
  40. checking how to recognise dependent libraries... pass_all
  41. checking for ANSI C header files... yes
  42. checking for sys/types.h... yes
  43. checking for sys/stat.h... yes
  44. checking for stdlib.h... yes
  45. checking for string.h... yes
  46. checking for memory.h... yes
  47. checking for strings.h... yes
  48. checking for inttypes.h... yes
  49. checking for stdint.h... yes
  50. checking for unistd.h... yes
  51. checking dlfcn.h usability... yes
  52. checking dlfcn.h presence... yes
  53. checking for dlfcn.h... yes
  54. checking the maximum length of command line arguments... 32768
  55. checking command to parse /usr/bin/nm -B output from gcc object... ok
  56. checking for objdir... .libs
  57. checking for ar... ar
  58. checking for ranlib... ranlib
  59. checking for strip... strip
  60. checking if gcc static flag  works... yes
  61. checking if gcc supports -fno-rtti -fno-exceptions... no
  62. checking for gcc option to produce PIC... -fPIC
  63. checking if gcc PIC flag -fPIC works... yes
  64. checking if gcc supports -c -o file.o... yes
  65. checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
  66. checking whether -lc should be explicitly linked in... no
  67. checking dynamic linker characteristics... GNU/Linux ld.so
  68. checking how to hardcode library paths into programs... immediate
  69. checking whether stripping libraries is possible... yes
  70. checking if libtool supports shared libraries... yes
  71. checking whether to build shared libraries... yes
  72. checking whether to build static libraries... no

  73. creating libtool
  74. appending configuration tag "CXX" to libtool
  75. configure: creating ./config.status
  76. config.status: creating config.h
  77. config.status: config.h is unchanged
复制代码
[root@test1 openssl]# make
  1. /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
  2. mkdir .libs
  3. 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
  4. /root/php-5.2.8/ext/openssl/openssl.c:230: error: expected specifier-qualifier-list before 'LHASH'
  5. /root/php-5.2.8/ext/openssl/openssl.c:411: error: expected declaration specifiers or '...' before 'LHASH'
  6. /root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_config_check_syntax':
  7. /root/php-5.2.8/ext/openssl/openssl.c:417: error: 'config' undeclared (first use in this function)
  8. /root/php-5.2.8/ext/openssl/openssl.c:417: error: (Each undeclared identifier is reported only once
  9. /root/php-5.2.8/ext/openssl/openssl.c:417: error: for each function it appears in.)
  10. /root/php-5.2.8/ext/openssl/openssl.c: In function 'add_oid_section':
  11. /root/php-5.2.8/ext/openssl/openssl.c:436: error: 'struct php_x509_request' has no member named 'req_config'
  12. /root/php-5.2.8/ext/openssl/openssl.c:440: error: 'struct php_x509_request' has no member named 'req_config'
  13. /root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_parse_config':
  14. /root/php-5.2.8/ext/openssl/openssl.c:486: error: 'struct php_x509_request' has no member named 'config_filename'
  15. /root/php-5.2.8/ext/openssl/openssl.c:486: error: 'struct php_x509_request' has no member named 'config_filename'
  16. /root/php-5.2.8/ext/openssl/openssl.c:487: error: 'struct php_x509_request' has no member named 'section_name'
  17. /root/php-5.2.8/ext/openssl/openssl.c:487: error: 'struct php_x509_request' has no member named 'section_name'
  18. /root/php-5.2.8/ext/openssl/openssl.c:488: error: 'struct php_x509_request' has no member named 'global_config'
  19. /root/php-5.2.8/ext/openssl/openssl.c:489: error: 'struct php_x509_request' has no member named 'req_config'
  20. /root/php-5.2.8/ext/openssl/openssl.c:489: error: 'struct php_x509_request' has no member named 'config_filename'
  21. /root/php-5.2.8/ext/openssl/openssl.c:491: error: 'struct php_x509_request' has no member named 'req_config'
  22. /root/php-5.2.8/ext/openssl/openssl.c:496: error: 'struct php_x509_request' has no member named 'req_config'
  23. /root/php-5.2.8/ext/openssl/openssl.c:507: error: 'struct php_x509_request' has no member named 'digest_name'
  24. /root/php-5.2.8/ext/openssl/openssl.c:507: error: 'struct php_x509_request' has no member named 'digest_name'
  25. /root/php-5.2.8/ext/openssl/openssl.c:507: error: 'struct php_x509_request' has no member named 'req_config'
  26. /root/php-5.2.8/ext/openssl/openssl.c:507: error: 'struct php_x509_request' has no member named 'section_name'
  27. /root/php-5.2.8/ext/openssl/openssl.c:509: error: 'struct php_x509_request' has no member named 'extensions_section'
  28. /root/php-5.2.8/ext/openssl/openssl.c:509: error: 'struct php_x509_request' has no member named 'extensions_section'
  29. /root/php-5.2.8/ext/openssl/openssl.c:509: error: 'struct php_x509_request' has no member named 'req_config'
  30. /root/php-5.2.8/ext/openssl/openssl.c:509: error: 'struct php_x509_request' has no member named 'section_name'
  31. /root/php-5.2.8/ext/openssl/openssl.c:511: error: 'struct php_x509_request' has no member named 'request_extensions_section'
  32. /root/php-5.2.8/ext/openssl/openssl.c:511: error: 'struct php_x509_request' has no member named 'request_extensions_section'
  33. /root/php-5.2.8/ext/openssl/openssl.c:511: error: 'struct php_x509_request' has no member named 'req_config'
  34. /root/php-5.2.8/ext/openssl/openssl.c:511: error: 'struct php_x509_request' has no member named 'section_name'
  35. /root/php-5.2.8/ext/openssl/openssl.c:513: error: 'struct php_x509_request' has no member named 'priv_key_bits'
  36. /root/php-5.2.8/ext/openssl/openssl.c:513: error: 'struct php_x509_request' has no member named 'priv_key_bits'
  37. /root/php-5.2.8/ext/openssl/openssl.c:513: error: 'struct php_x509_request' has no member named 'req_config'
  38. /root/php-5.2.8/ext/openssl/openssl.c:513: error: 'struct php_x509_request' has no member named 'section_name'
  39. /root/php-5.2.8/ext/openssl/openssl.c:516: error: 'struct php_x509_request' has no member named 'priv_key_type'
  40. /root/php-5.2.8/ext/openssl/openssl.c:516: error: 'struct php_x509_request' has no member named 'priv_key_type'
  41. /root/php-5.2.8/ext/openssl/openssl.c:519: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
  42. /root/php-5.2.8/ext/openssl/openssl.c:521: error: 'struct php_x509_request' has no member named 'req_config'
  43. /root/php-5.2.8/ext/openssl/openssl.c:521: error: 'struct php_x509_request' has no member named 'section_name'
  44. /root/php-5.2.8/ext/openssl/openssl.c:523: error: 'struct php_x509_request' has no member named 'req_config'
  45. /root/php-5.2.8/ext/openssl/openssl.c:523: error: 'struct php_x509_request' has no member named 'section_name'
  46. /root/php-5.2.8/ext/openssl/openssl.c:526: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
  47. /root/php-5.2.8/ext/openssl/openssl.c:528: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
  48. /root/php-5.2.8/ext/openssl/openssl.c:533: error: 'struct php_x509_request' has no member named 'digest_name'
  49. /root/php-5.2.8/ext/openssl/openssl.c:534: error: 'struct php_x509_request' has no member named 'digest_name'
  50. /root/php-5.2.8/ext/openssl/openssl.c:534: error: 'struct php_x509_request' has no member named 'req_config'
  51. /root/php-5.2.8/ext/openssl/openssl.c:534: error: 'struct php_x509_request' has no member named 'section_name'
  52. /root/php-5.2.8/ext/openssl/openssl.c:536: error: 'struct php_x509_request' has no member named 'digest_name'
  53. /root/php-5.2.8/ext/openssl/openssl.c:537: error: 'struct php_x509_request' has no member named 'digest'
  54. /root/php-5.2.8/ext/openssl/openssl.c:537: error: 'struct php_x509_request' has no member named 'md_alg'
  55. /root/php-5.2.8/ext/openssl/openssl.c:537: error: 'struct php_x509_request' has no member named 'digest_name'
  56. /root/php-5.2.8/ext/openssl/openssl.c:539: error: 'struct php_x509_request' has no member named 'md_alg'
  57. /root/php-5.2.8/ext/openssl/openssl.c:540: error: 'struct php_x509_request' has no member named 'md_alg'
  58. /root/php-5.2.8/ext/openssl/openssl.c:540: error: 'struct php_x509_request' has no member named 'digest'
  59. /root/php-5.2.8/ext/openssl/openssl.c:543: error: 'struct php_x509_request' has no member named 'extensions_section'
  60. /root/php-5.2.8/ext/openssl/openssl.c:543: error: 'struct php_x509_request' has no member named 'config_filename'
  61. /root/php-5.2.8/ext/openssl/openssl.c:543: error: 'struct php_x509_request' has no member named 'extensions_section'
  62. /root/php-5.2.8/ext/openssl/openssl.c:543: error: 'struct php_x509_request' has no member named 'req_config'
  63. /root/php-5.2.8/ext/openssl/openssl.c:543: error: too many arguments to function 'php_openssl_config_check_syntax'
  64. /root/php-5.2.8/ext/openssl/openssl.c:546: error: 'struct php_x509_request' has no member named 'req_config'
  65. /root/php-5.2.8/ext/openssl/openssl.c:546: error: 'struct php_x509_request' has no member named 'section_name'
  66. /root/php-5.2.8/ext/openssl/openssl.c:552: error: 'struct php_x509_request' has no member named 'request_extensions_section'
  67. /root/php-5.2.8/ext/openssl/openssl.c:552: error: 'struct php_x509_request' has no member named 'config_filename'
  68. /root/php-5.2.8/ext/openssl/openssl.c:552: error: 'struct php_x509_request' has no member named 'request_extensions_section'
  69. /root/php-5.2.8/ext/openssl/openssl.c:552: error: 'struct php_x509_request' has no member named 'req_config'
  70. /root/php-5.2.8/ext/openssl/openssl.c:552: error: too many arguments to function 'php_openssl_config_check_syntax'
  71. /root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_dispose_config':
  72. /root/php-5.2.8/ext/openssl/openssl.c:560: error: 'struct php_x509_request' has no member named 'priv_key'
  73. /root/php-5.2.8/ext/openssl/openssl.c:561: error: 'struct php_x509_request' has no member named 'priv_key'
  74. /root/php-5.2.8/ext/openssl/openssl.c:562: error: 'struct php_x509_request' has no member named 'priv_key'
  75. /root/php-5.2.8/ext/openssl/openssl.c:564: error: 'struct php_x509_request' has no member named 'global_config'
  76. /root/php-5.2.8/ext/openssl/openssl.c:565: error: 'struct php_x509_request' has no member named 'global_config'
  77. /root/php-5.2.8/ext/openssl/openssl.c:566: error: 'struct php_x509_request' has no member named 'global_config'
  78. /root/php-5.2.8/ext/openssl/openssl.c:568: error: 'struct php_x509_request' has no member named 'req_config'
  79. /root/php-5.2.8/ext/openssl/openssl.c:569: error: 'struct php_x509_request' has no member named 'req_config'
  80. /root/php-5.2.8/ext/openssl/openssl.c:570: error: 'struct php_x509_request' has no member named 'req_config'
  81. /root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_x509_from_zval':
  82. /root/php-5.2.8/ext/openssl/openssl.c:867: warning: passing argument 1 of 'PEM_ASN1_read_bio' from incompatible pointer type
  83. /usr/include/openssl/pem.h:417: note: expected 'void * (*)(void **, const unsigned char **, long int)' but argument is of type 'char * (*)()'
  84. /root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_make_REQ':
  85. /root/php-5.2.8/ext/openssl/openssl.c:1686: error: 'struct php_x509_request' has no member named 'req_config'
  86. /root/php-5.2.8/ext/openssl/openssl.c:1686: error: 'struct php_x509_request' has no member named 'section_name'
  87. /root/php-5.2.8/ext/openssl/openssl.c:1690: error: 'struct php_x509_request' has no member named 'req_config'
  88. /root/php-5.2.8/ext/openssl/openssl.c:1694: error: 'struct php_x509_request' has no member named 'req_config'
  89. /root/php-5.2.8/ext/openssl/openssl.c:1694: error: 'struct php_x509_request' has no member named 'section_name'
  90. /root/php-5.2.8/ext/openssl/openssl.c:1698: error: 'struct php_x509_request' has no member named 'req_config'
  91. /root/php-5.2.8/ext/openssl/openssl.c:1829: error: 'struct php_x509_request' has no member named 'priv_key'
  92. /root/php-5.2.8/ext/openssl/openssl.c: In function 'zif_openssl_csr_sign':
  93. /root/php-5.2.8/ext/openssl/openssl.c:2057: error: 'struct php_x509_request' has no member named 'extensions_section'
  94. /root/php-5.2.8/ext/openssl/openssl.c:2061: error: 'struct php_x509_request' has no member named 'req_config'
  95. /root/php-5.2.8/ext/openssl/openssl.c:2062: error: 'struct php_x509_request' has no member named 'req_config'
  96. /root/php-5.2.8/ext/openssl/openssl.c:2062: error: 'struct php_x509_request' has no member named 'extensions_section'
  97. /root/php-5.2.8/ext/openssl/openssl.c:2068: error: 'struct php_x509_request' has no member named 'digest'
  98. /root/php-5.2.8/ext/openssl/openssl.c: In function 'zif_openssl_csr_new':
  99. /root/php-5.2.8/ext/openssl/openssl.c:2123: error: 'struct php_x509_request' has no member named 'priv_key'
  100. /root/php-5.2.8/ext/openssl/openssl.c:2124: error: 'struct php_x509_request' has no member named 'priv_key'
  101. /root/php-5.2.8/ext/openssl/openssl.c:2128: error: 'struct php_x509_request' has no member named 'priv_key'
  102. /root/php-5.2.8/ext/openssl/openssl.c:2131: error: 'struct php_x509_request' has no member named 'priv_key'
  103. /root/php-5.2.8/ext/openssl/openssl.c:2140: error: 'struct php_x509_request' has no member named 'req_config'
  104. /root/php-5.2.8/ext/openssl/openssl.c:2143: error: 'struct php_x509_request' has no member named 'request_extensions_section'
  105. /root/php-5.2.8/ext/openssl/openssl.c:2143: error: 'struct php_x509_request' has no member named 'req_config'
  106. /root/php-5.2.8/ext/openssl/openssl.c:2144: error: 'struct php_x509_request' has no member named 'request_extensions_section'
  107. /root/php-5.2.8/ext/openssl/openssl.c:2146: error: 'struct php_x509_request' has no member named 'request_extensions_section'
  108. /root/php-5.2.8/ext/openssl/openssl.c:2150: error: 'struct php_x509_request' has no member named 'priv_key'
  109. /root/php-5.2.8/ext/openssl/openssl.c:2150: error: 'struct php_x509_request' has no member named 'digest'
  110. /root/php-5.2.8/ext/openssl/openssl.c:2160: error: 'struct php_x509_request' has no member named 'priv_key'
  111. /root/php-5.2.8/ext/openssl/openssl.c:2161: error: 'struct php_x509_request' has no member named 'priv_key'
  112. /root/php-5.2.8/ext/openssl/openssl.c:2163: error: 'struct php_x509_request' has no member named 'priv_key'
  113. /root/php-5.2.8/ext/openssl/openssl.c:2170: error: 'struct php_x509_request' has no member named 'priv_key'
  114. /root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_generate_private_key':
  115. /root/php-5.2.8/ext/openssl/openssl.c:2419: error: 'struct php_x509_request' has no member named 'priv_key_bits'
  116. /root/php-5.2.8/ext/openssl/openssl.c:2421: error: 'struct php_x509_request' has no member named 'priv_key_bits'
  117. /root/php-5.2.8/ext/openssl/openssl.c:2425: error: 'struct php_x509_request' has no member named 'req_config'
  118. /root/php-5.2.8/ext/openssl/openssl.c:2425: error: 'struct php_x509_request' has no member named 'section_name'
  119. /root/php-5.2.8/ext/openssl/openssl.c:2428: error: 'struct php_x509_request' has no member named 'priv_key'
  120. /root/php-5.2.8/ext/openssl/openssl.c:2429: error: 'struct php_x509_request' has no member named 'priv_key_type'
  121. /root/php-5.2.8/ext/openssl/openssl.c:2431: error: 'struct php_x509_request' has no member named 'priv_key'
  122. /root/php-5.2.8/ext/openssl/openssl.c:2431: error: 'struct php_x509_request' has no member named 'priv_key_bits'
  123. /root/php-5.2.8/ext/openssl/openssl.c:2432: error: 'struct php_x509_request' has no member named 'priv_key'
  124. /root/php-5.2.8/ext/openssl/openssl.c:2438: error: 'struct php_x509_request' has no member named 'priv_key_bits'
  125. /root/php-5.2.8/ext/openssl/openssl.c:2442: error: 'struct php_x509_request' has no member named 'priv_key'
  126. /root/php-5.2.8/ext/openssl/openssl.c:2443: error: 'struct php_x509_request' has no member named 'priv_key'
  127. /root/php-5.2.8/ext/openssl/openssl.c:2460: error: 'struct php_x509_request' has no member named 'priv_key'
  128. /root/php-5.2.8/ext/openssl/openssl.c:2461: error: 'struct php_x509_request' has no member named 'priv_key'
  129. /root/php-5.2.8/ext/openssl/openssl.c: In function 'zif_openssl_pkey_new':
  130. /root/php-5.2.8/ext/openssl/openssl.c:2534: error: 'struct php_x509_request' has no member named 'priv_key'
  131. /root/php-5.2.8/ext/openssl/openssl.c:2536: error: 'struct php_x509_request' has no member named 'priv_key'
  132. /root/php-5.2.8/ext/openssl/openssl.c: In function 'zif_openssl_pkey_export_to_file':
  133. /root/php-5.2.8/ext/openssl/openssl.c:2577: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
  134. /root/php-5.2.8/ext/openssl/openssl.c: In function 'zif_openssl_pkey_export':
  135. /root/php-5.2.8/ext/openssl/openssl.c:2628: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
  136. make: *** [openssl.lo]  1
复制代码
[root@test1 openssl]# make install
  1. /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
  2. 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
  3. /root/php-5.2.8/ext/openssl/openssl.c:230: error: expected specifier-qualifier-list before 'LHASH'
  4. /root/php-5.2.8/ext/openssl/openssl.c:411: error: expected declaration specifiers or '...' before 'LHASH'
  5. /root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_config_check_syntax':
  6. /root/php-5.2.8/ext/openssl/openssl.c:417: error: 'config' undeclared (first use in this function)
  7. /root/php-5.2.8/ext/openssl/openssl.c:417: error: (Each undeclared identifier is reported only once
  8. /root/php-5.2.8/ext/openssl/openssl.c:417: error: for each function it appears in.)
  9. /root/php-5.2.8/ext/openssl/openssl.c: In function 'add_oid_section':
  10. /root/php-5.2.8/ext/openssl/openssl.c:436: error: 'struct php_x509_request' has no member named 'req_config'
  11. /root/php-5.2.8/ext/openssl/openssl.c:440: error: 'struct php_x509_request' has no member named 'req_config'
  12. /root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_parse_config':
  13. /root/php-5.2.8/ext/openssl/openssl.c:486: error: 'struct php_x509_request' has no member named 'config_filename'
  14. /root/php-5.2.8/ext/openssl/openssl.c:486: error: 'struct php_x509_request' has no member named 'config_filename'
  15. /root/php-5.2.8/ext/openssl/openssl.c:487: error: 'struct php_x509_request' has no member named 'section_name'
  16. /root/php-5.2.8/ext/openssl/openssl.c:487: error: 'struct php_x509_request' has no member named 'section_name'
  17. /root/php-5.2.8/ext/openssl/openssl.c:488: error: 'struct php_x509_request' has no member named 'global_config'
  18. /root/php-5.2.8/ext/openssl/openssl.c:489: error: 'struct php_x509_request' has no member named 'req_config'
  19. /root/php-5.2.8/ext/openssl/openssl.c:489: error: 'struct php_x509_request' has no member named 'config_filename'
  20. /root/php-5.2.8/ext/openssl/openssl.c:491: error: 'struct php_x509_request' has no member named 'req_config'
  21. /root/php-5.2.8/ext/openssl/openssl.c:496: error: 'struct php_x509_request' has no member named 'req_config'
  22. /root/php-5.2.8/ext/openssl/openssl.c:507: error: 'struct php_x509_request' has no member named 'digest_name'
  23. /root/php-5.2.8/ext/openssl/openssl.c:507: error: 'struct php_x509_request' has no member named 'digest_name'
  24. /root/php-5.2.8/ext/openssl/openssl.c:507: error: 'struct php_x509_request' has no member named 'req_config'
  25. /root/php-5.2.8/ext/openssl/openssl.c:507: error: 'struct php_x509_request' has no member named 'section_name'
  26. /root/php-5.2.8/ext/openssl/openssl.c:509: error: 'struct php_x509_request' has no member named 'extensions_section'
  27. /root/php-5.2.8/ext/openssl/openssl.c:509: error: 'struct php_x509_request' has no member named 'extensions_section'
  28. /root/php-5.2.8/ext/openssl/openssl.c:509: error: 'struct php_x509_request' has no member named 'req_config'
  29. /root/php-5.2.8/ext/openssl/openssl.c:509: error: 'struct php_x509_request' has no member named 'section_name'
  30. /root/php-5.2.8/ext/openssl/openssl.c:511: error: 'struct php_x509_request' has no member named 'request_extensions_section'
  31. /root/php-5.2.8/ext/openssl/openssl.c:511: error: 'struct php_x509_request' has no member named 'request_extensions_section'
  32. /root/php-5.2.8/ext/openssl/openssl.c:511: error: 'struct php_x509_request' has no member named 'req_config'
  33. /root/php-5.2.8/ext/openssl/openssl.c:511: error: 'struct php_x509_request' has no member named 'section_name'
  34. /root/php-5.2.8/ext/openssl/openssl.c:513: error: 'struct php_x509_request' has no member named 'priv_key_bits'
  35. /root/php-5.2.8/ext/openssl/openssl.c:513: error: 'struct php_x509_request' has no member named 'priv_key_bits'
  36. /root/php-5.2.8/ext/openssl/openssl.c:513: error: 'struct php_x509_request' has no member named 'req_config'
  37. /root/php-5.2.8/ext/openssl/openssl.c:513: error: 'struct php_x509_request' has no member named 'section_name'
  38. /root/php-5.2.8/ext/openssl/openssl.c:516: error: 'struct php_x509_request' has no member named 'priv_key_type'
  39. /root/php-5.2.8/ext/openssl/openssl.c:516: error: 'struct php_x509_request' has no member named 'priv_key_type'
  40. /root/php-5.2.8/ext/openssl/openssl.c:519: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
  41. /root/php-5.2.8/ext/openssl/openssl.c:521: error: 'struct php_x509_request' has no member named 'req_config'
  42. /root/php-5.2.8/ext/openssl/openssl.c:521: error: 'struct php_x509_request' has no member named 'section_name'
  43. /root/php-5.2.8/ext/openssl/openssl.c:523: error: 'struct php_x509_request' has no member named 'req_config'
  44. /root/php-5.2.8/ext/openssl/openssl.c:523: error: 'struct php_x509_request' has no member named 'section_name'
  45. /root/php-5.2.8/ext/openssl/openssl.c:526: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
  46. /root/php-5.2.8/ext/openssl/openssl.c:528: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
  47. /root/php-5.2.8/ext/openssl/openssl.c:533: error: 'struct php_x509_request' has no member named 'digest_name'
  48. /root/php-5.2.8/ext/openssl/openssl.c:534: error: 'struct php_x509_request' has no member named 'digest_name'
  49. /root/php-5.2.8/ext/openssl/openssl.c:534: error: 'struct php_x509_request' has no member named 'req_config'
  50. /root/php-5.2.8/ext/openssl/openssl.c:534: error: 'struct php_x509_request' has no member named 'section_name'
  51. /root/php-5.2.8/ext/openssl/openssl.c:536: error: 'struct php_x509_request' has no member named 'digest_name'
  52. /root/php-5.2.8/ext/openssl/openssl.c:537: error: 'struct php_x509_request' has no member named 'digest'
  53. /root/php-5.2.8/ext/openssl/openssl.c:537: error: 'struct php_x509_request' has no member named 'md_alg'
  54. /root/php-5.2.8/ext/openssl/openssl.c:537: error: 'struct php_x509_request' has no member named 'digest_name'
  55. /root/php-5.2.8/ext/openssl/openssl.c:539: error: 'struct php_x509_request' has no member named 'md_alg'
  56. /root/php-5.2.8/ext/openssl/openssl.c:540: error: 'struct php_x509_request' has no member named 'md_alg'
  57. /root/php-5.2.8/ext/openssl/openssl.c:540: error: 'struct php_x509_request' has no member named 'digest'
  58. /root/php-5.2.8/ext/openssl/openssl.c:543: error: 'struct php_x509_request' has no member named 'extensions_section'
  59. /root/php-5.2.8/ext/openssl/openssl.c:543: error: 'struct php_x509_request' has no member named 'config_filename'
  60. /root/php-5.2.8/ext/openssl/openssl.c:543: error: 'struct php_x509_request' has no member named 'extensions_section'
  61. /root/php-5.2.8/ext/openssl/openssl.c:543: error: 'struct php_x509_request' has no member named 'req_config'
  62. /root/php-5.2.8/ext/openssl/openssl.c:543: error: too many arguments to function 'php_openssl_config_check_syntax'
  63. /root/php-5.2.8/ext/openssl/openssl.c:546: error: 'struct php_x509_request' has no member named 'req_config'
  64. /root/php-5.2.8/ext/openssl/openssl.c:546: error: 'struct php_x509_request' has no member named 'section_name'
  65. /root/php-5.2.8/ext/openssl/openssl.c:552: error: 'struct php_x509_request' has no member named 'request_extensions_section'
  66. /root/php-5.2.8/ext/openssl/openssl.c:552: error: 'struct php_x509_request' has no member named 'config_filename'
  67. /root/php-5.2.8/ext/openssl/openssl.c:552: error: 'struct php_x509_request' has no member named 'request_extensions_section'
  68. /root/php-5.2.8/ext/openssl/openssl.c:552: error: 'struct php_x509_request' has no member named 'req_config'
  69. /root/php-5.2.8/ext/openssl/openssl.c:552: error: too many arguments to function 'php_openssl_config_check_syntax'
  70. /root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_dispose_config':
  71. /root/php-5.2.8/ext/openssl/openssl.c:560: error: 'struct php_x509_request' has no member named 'priv_key'
  72. /root/php-5.2.8/ext/openssl/openssl.c:561: error: 'struct php_x509_request' has no member named 'priv_key'
  73. /root/php-5.2.8/ext/openssl/openssl.c:562: error: 'struct php_x509_request' has no member named 'priv_key'
  74. /root/php-5.2.8/ext/openssl/openssl.c:564: error: 'struct php_x509_request' has no member named 'global_config'
  75. /root/php-5.2.8/ext/openssl/openssl.c:565: error: 'struct php_x509_request' has no member named 'global_config'
  76. /root/php-5.2.8/ext/openssl/openssl.c:566: error: 'struct php_x509_request' has no member named 'global_config'
  77. /root/php-5.2.8/ext/openssl/openssl.c:568: error: 'struct php_x509_request' has no member named 'req_config'
  78. /root/php-5.2.8/ext/openssl/openssl.c:569: error: 'struct php_x509_request' has no member named 'req_config'
  79. /root/php-5.2.8/ext/openssl/openssl.c:570: error: 'struct php_x509_request' has no member named 'req_config'
  80. /root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_x509_from_zval':
  81. /root/php-5.2.8/ext/openssl/openssl.c:867: warning: passing argument 1 of 'PEM_ASN1_read_bio' from incompatible pointer type
  82. /usr/include/openssl/pem.h:417: note: expected 'void * (*)(void **, const unsigned char **, long int)' but argument is of type 'char * (*)()'
  83. /root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_make_REQ':
  84. /root/php-5.2.8/ext/openssl/openssl.c:1686: error: 'struct php_x509_request' has no member named 'req_config'
  85. /root/php-5.2.8/ext/openssl/openssl.c:1686: error: 'struct php_x509_request' has no member named 'section_name'
  86. /root/php-5.2.8/ext/openssl/openssl.c:1690: error: 'struct php_x509_request' has no member named 'req_config'
  87. /root/php-5.2.8/ext/openssl/openssl.c:1694: error: 'struct php_x509_request' has no member named 'req_config'
  88. /root/php-5.2.8/ext/openssl/openssl.c:1694: error: 'struct php_x509_request' has no member named 'section_name'
  89. /root/php-5.2.8/ext/openssl/openssl.c:1698: error: 'struct php_x509_request' has no member named 'req_config'
  90. /root/php-5.2.8/ext/openssl/openssl.c:1829: error: 'struct php_x509_request' has no member named 'priv_key'
  91. /root/php-5.2.8/ext/openssl/openssl.c: In function 'zif_openssl_csr_sign':
  92. /root/php-5.2.8/ext/openssl/openssl.c:2057: error: 'struct php_x509_request' has no member named 'extensions_section'
  93. /root/php-5.2.8/ext/openssl/openssl.c:2061: error: 'struct php_x509_request' has no member named 'req_config'
  94. /root/php-5.2.8/ext/openssl/openssl.c:2062: error: 'struct php_x509_request' has no member named 'req_config'
  95. /root/php-5.2.8/ext/openssl/openssl.c:2062: error: 'struct php_x509_request' has no member named 'extensions_section'
  96. /root/php-5.2.8/ext/openssl/openssl.c:2068: error: 'struct php_x509_request' has no member named 'digest'
  97. /root/php-5.2.8/ext/openssl/openssl.c: In function 'zif_openssl_csr_new':
  98. /root/php-5.2.8/ext/openssl/openssl.c:2123: error: 'struct php_x509_request' has no member named 'priv_key'
  99. /root/php-5.2.8/ext/openssl/openssl.c:2124: error: 'struct php_x509_request' has no member named 'priv_key'
  100. /root/php-5.2.8/ext/openssl/openssl.c:2128: error: 'struct php_x509_request' has no member named 'priv_key'
  101. /root/php-5.2.8/ext/openssl/openssl.c:2131: error: 'struct php_x509_request' has no member named 'priv_key'
  102. /root/php-5.2.8/ext/openssl/openssl.c:2140: error: 'struct php_x509_request' has no member named 'req_config'
  103. /root/php-5.2.8/ext/openssl/openssl.c:2143: error: 'struct php_x509_request' has no member named 'request_extensions_section'
  104. /root/php-5.2.8/ext/openssl/openssl.c:2143: error: 'struct php_x509_request' has no member named 'req_config'
  105. /root/php-5.2.8/ext/openssl/openssl.c:2144: error: 'struct php_x509_request' has no member named 'request_extensions_section'
  106. /root/php-5.2.8/ext/openssl/openssl.c:2146: error: 'struct php_x509_request' has no member named 'request_extensions_section'
  107. /root/php-5.2.8/ext/openssl/openssl.c:2150: error: 'struct php_x509_request' has no member named 'priv_key'
  108. /root/php-5.2.8/ext/openssl/openssl.c:2150: error: 'struct php_x509_request' has no member named 'digest'
  109. /root/php-5.2.8/ext/openssl/openssl.c:2160: error: 'struct php_x509_request' has no member named 'priv_key'
  110. /root/php-5.2.8/ext/openssl/openssl.c:2161: error: 'struct php_x509_request' has no member named 'priv_key'
  111. /root/php-5.2.8/ext/openssl/openssl.c:2163: error: 'struct php_x509_request' has no member named 'priv_key'
  112. /root/php-5.2.8/ext/openssl/openssl.c:2170: error: 'struct php_x509_request' has no member named 'priv_key'
  113. /root/php-5.2.8/ext/openssl/openssl.c: In function 'php_openssl_generate_private_key':
  114. /root/php-5.2.8/ext/openssl/openssl.c:2419: error: 'struct php_x509_request' has no member named 'priv_key_bits'
  115. /root/php-5.2.8/ext/openssl/openssl.c:2421: error: 'struct php_x509_request' has no member named 'priv_key_bits'
  116. /root/php-5.2.8/ext/openssl/openssl.c:2425: error: 'struct php_x509_request' has no member named 'req_config'
  117. /root/php-5.2.8/ext/openssl/openssl.c:2425: error: 'struct php_x509_request' has no member named 'section_name'
  118. /root/php-5.2.8/ext/openssl/openssl.c:2428: error: 'struct php_x509_request' has no member named 'priv_key'
  119. /root/php-5.2.8/ext/openssl/openssl.c:2429: error: 'struct php_x509_request' has no member named 'priv_key_type'
  120. /root/php-5.2.8/ext/openssl/openssl.c:2431: error: 'struct php_x509_request' has no member named 'priv_key'
  121. /root/php-5.2.8/ext/openssl/openssl.c:2431: error: 'struct php_x509_request' has no member named 'priv_key_bits'
  122. /root/php-5.2.8/ext/openssl/openssl.c:2432: error: 'struct php_x509_request' has no member named 'priv_key'
  123. /root/php-5.2.8/ext/openssl/openssl.c:2438: error: 'struct php_x509_request' has no member named 'priv_key_bits'
  124. /root/php-5.2.8/ext/openssl/openssl.c:2442: error: 'struct php_x509_request' has no member named 'priv_key'
  125. /root/php-5.2.8/ext/openssl/openssl.c:2443: error: 'struct php_x509_request' has no member named 'priv_key'
  126. /root/php-5.2.8/ext/openssl/openssl.c:2460: error: 'struct php_x509_request' has no member named 'priv_key'
  127. /root/php-5.2.8/ext/openssl/openssl.c:2461: error: 'struct php_x509_request' has no member named 'priv_key'
  128. /root/php-5.2.8/ext/openssl/openssl.c: In function 'zif_openssl_pkey_new':
  129. /root/php-5.2.8/ext/openssl/openssl.c:2534: error: 'struct php_x509_request' has no member named 'priv_key'
  130. /root/php-5.2.8/ext/openssl/openssl.c:2536: error: 'struct php_x509_request' has no member named 'priv_key'
  131. /root/php-5.2.8/ext/openssl/openssl.c: In function 'zif_openssl_pkey_export_to_file':
  132. /root/php-5.2.8/ext/openssl/openssl.c:2577: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
  133. /root/php-5.2.8/ext/openssl/openssl.c: In function 'zif_openssl_pkey_export':
  134. /root/php-5.2.8/ext/openssl/openssl.c:2628: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
  135. make: *** [openssl.lo]  1
复制代码
[root@test1 openssl]#

[root@test1 etc]# yum install openssl openssl-devel
  1. Loaded plugins: fastestmirror, refresh-packagekit, security
  2. Loading mirror speeds from cached hostfile
  3. * base: mirror.bit.edu.cn
  4. * extras: mirror.bit.edu.cn
  5. * updates: mirror.bit.edu.cn
  6. Setting up Install Process
  7. Package openssl-1.0.1e-16.el6_5.4.x86_64 already installed and latest version
  8. Package openssl-devel-1.0.1e-16.el6_5.4.x86_64 already installed and latest version
  9. Nothing to do
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP