V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
update
V2EX  ›  PHP

php7.28 编译出错 一直通不过去

  •  
  •   update · 2018-08-02 23:07:02 +08:00 · 5654 次点击
    这是一个创建于 2331 天前的主题,其中的信息可能已经有所发展或是发生改变。

    centos 6.4

    Linux vagrant.lnmp 3.10.105-1.el6.elrepo.x86_64 #1 SMP Fri Feb 10 10:48:08 EST 2017 x86_64 x86_64 x86_64 GNU/Linux

    要编译的 php 版本 7.2.8

    openssl version -a
    
    OpenSSL 1.1.0e  16 Feb 2017
    built on: reproducible build, date unspecified
    platform: linux-x86_64
    compiler: gcc -DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_THREADS -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DRC4_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPADLOCK_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib64/engines-1.1\""  -Wa,--noexecstack
    OPENSSLDIR: "/usr/local/ssl"
    ENGINESDIR: "/usr/local/lib64/engines-1.1"
    
    yum 装的 dev 包
    openssl-devel-1.0.1e-48.el6_8.1.x86_64
    
    出错部分:
    
    ext/openssl/.libs/openssl.o: In function `sk_X509_pop':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_pop'
    ext/openssl/.libs/openssl.o: In function `php_openssl_asn1_time_to_time_t':
    /root/php-7.2.8/ext/openssl/openssl.c:940: undefined reference to `ASN1_STRING_get0_data'
    /root/php-7.2.8/ext/openssl/openssl.c:955: undefined reference to `ASN1_STRING_get0_data'
    /root/php-7.2.8/ext/openssl/openssl.c:955: undefined reference to `ASN1_STRING_get0_data'
    ext/openssl/.libs/openssl.o: In function `zm_info_openssl':
    /root/php-7.2.8/ext/openssl/openssl.c:1590: undefined reference to `OpenSSL_version'
    ext/openssl/.libs/openssl.o: In function `zm_startup_openssl':
    /root/php-7.2.8/ext/openssl/openssl.c:1436: undefined reference to `OPENSSL_init_ssl'
    ext/openssl/.libs/openssl.o: In function `zif_openssl_decrypt':
    /root/php-7.2.8/ext/openssl/openssl.c:6712: undefined reference to `EVP_CIPHER_CTX_reset'
    ext/openssl/.libs/openssl.o: In function `zif_openssl_encrypt':
    /root/php-7.2.8/ext/openssl/openssl.c:6625: undefined reference to `EVP_CIPHER_CTX_reset'
    ext/openssl/.libs/openssl.o: In function `zif_openssl_digest':
    /root/php-7.2.8/ext/openssl/openssl.c:6306: undefined reference to `EVP_MD_CTX_new'
    /root/php-7.2.8/ext/openssl/openssl.c:6329: undefined reference to `EVP_MD_CTX_free'
    ext/openssl/.libs/openssl.o: In function `sk_X509_num':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_num'
    ext/openssl/.libs/openssl.o: In function `sk_X509_value':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_value'
    ext/openssl/.libs/openssl.o: In function `sk_X509_CRL_num':
    /usr/local/include/openssl/x509.h:226: undefined reference to `OPENSSL_sk_num'
    ext/openssl/.libs/openssl.o: In function `sk_X509_CRL_value':
    /usr/local/include/openssl/x509.h:226: undefined reference to `OPENSSL_sk_value'
    ext/openssl/.libs/openssl.o: In function `zif_openssl_dh_compute_key':
    /root/php-7.2.8/ext/openssl/openssl.c:4911: undefined reference to `EVP_PKEY_get0_DH'
    ext/openssl/.libs/openssl.o: In function `zif_openssl_pkey_get_details':
    /root/php-7.2.8/ext/openssl/openssl.c:4823: undefined reference to `EVP_PKEY_get0_EC_KEY'
    /root/php-7.2.8/ext/openssl/openssl.c:4832: undefined reference to `EVP_PKEY_get0_EC_KEY'
    /root/php-7.2.8/ext/openssl/openssl.c:4750: undefined reference to `EVP_PKEY_get0_RSA'
    /root/php-7.2.8/ext/openssl/openssl.c:4757: undefined reference to `RSA_get0_key'
    /root/php-7.2.8/ext/openssl/openssl.c:4758: undefined reference to `RSA_get0_factors'
    /root/php-7.2.8/ext/openssl/openssl.c:4759: undefined reference to `RSA_get0_crt_params'
    /root/php-7.2.8/ext/openssl/openssl.c:4801: undefined reference to `EVP_PKEY_get0_DH'
    /root/php-7.2.8/ext/openssl/openssl.c:4808: undefined reference to `DH_get0_pqg'
    /root/php-7.2.8/ext/openssl/openssl.c:4809: undefined reference to `DH_get0_key'
    /root/php-7.2.8/ext/openssl/openssl.c:4779: undefined reference to `EVP_PKEY_get0_DSA'
    /root/php-7.2.8/ext/openssl/openssl.c:4786: undefined reference to `DSA_get0_pqg'
    /root/php-7.2.8/ext/openssl/openssl.c:4787: undefined reference to `DSA_get0_key'
    /root/php-7.2.8/ext/openssl/openssl.c:4868: undefined reference to `EVP_PKEY_get0_EC_KEY'
    ext/openssl/.libs/openssl.o: In function `php_openssl_add_assoc_name_entry':
    /root/php-7.2.8/ext/openssl/openssl.c:876: undefined reference to `ASN1_STRING_get0_data'
    ext/openssl/.libs/openssl.o: In function `sk_X509_num':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_num'
    ext/openssl/.libs/openssl.o: In function `sk_X509_pop':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_pop'
    ext/openssl/.libs/openssl.o: In function `sk_X509_free':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_free'
    ext/openssl/.libs/openssl.o: In function `zif_openssl_spki_export_challenge':
    /root/php-7.2.8/ext/openssl/openssl.c:2072: undefined reference to `ASN1_STRING_get0_data'
    ext/openssl/.libs/openssl.o: In function `sk_X509_new_null':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_new_null'
    ext/openssl/.libs/openssl.o: In function `sk_X509_INFO_shift':
    /usr/local/include/openssl/x509.h:252: undefined reference to `OPENSSL_sk_shift'
    ext/openssl/.libs/openssl.o: In function `sk_X509_push':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_push'
    ext/openssl/.libs/openssl.o: In function `sk_X509_INFO_num':
    /usr/local/include/openssl/x509.h:252: undefined reference to `OPENSSL_sk_num'
    ext/openssl/.libs/openssl.o: In function `sk_X509_num':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_num'
    ext/openssl/.libs/openssl.o: In function `sk_X509_INFO_free':
    /usr/local/include/openssl/x509.h:252: undefined reference to `OPENSSL_sk_free'
    ext/openssl/.libs/openssl.o: In function `sk_X509_free':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_free'
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_free'
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_free'
    ext/openssl/.libs/openssl.o: In function `sk_CONF_VALUE_num':
    /usr/local/include/openssl/conf.h:31: undefined reference to `OPENSSL_sk_num'
    ext/openssl/.libs/openssl.o: In function `sk_CONF_VALUE_value':
    /usr/local/include/openssl/conf.h:31: undefined reference to `OPENSSL_sk_value'
    ext/openssl/.libs/openssl.o: In function `php_openssl_pkey_init_dsa':
    /root/php-7.2.8/ext/openssl/openssl.c:4169: undefined reference to `DSA_set0_pqg'
    /root/php-7.2.8/ext/openssl/openssl.c:4176: undefined reference to `DSA_set0_key'
    ext/openssl/.libs/openssl.o: In function `php_openssl_pkey_init_and_assign_rsa':
    /root/php-7.2.8/ext/openssl/openssl.c:4135: undefined reference to `RSA_set0_key'
    /root/php-7.2.8/ext/openssl/openssl.c:4141: undefined reference to `RSA_set0_factors'
    /root/php-7.2.8/ext/openssl/openssl.c:4148: undefined reference to `RSA_set0_crt_params'
    ext/openssl/.libs/openssl.o: In function `php_openssl_pkey_init_dh':
    /root/php-7.2.8/ext/openssl/openssl.c:4246: undefined reference to `DH_set0_pqg'
    ext/openssl/.libs/openssl.o: In function `php_openssl_dh_pub_from_priv':
    /root/php-7.2.8/ext/openssl/openssl.c:4223: undefined reference to `BN_with_flags'
    ext/openssl/.libs/openssl.o: In function `php_openssl_pkey_init_dh':
    /root/php-7.2.8/ext/openssl/openssl.c:4260: undefined reference to `DH_set0_key'
    ext/openssl/.libs/openssl.o: In function `php_openssl_pkey_init_dsa':
    /root/php-7.2.8/ext/openssl/openssl.c:4188: undefined reference to `DSA_get0_key'
    /root/php-7.2.8/ext/openssl/openssl.c:4189: undefined reference to `BN_is_zero'
    ext/openssl/.libs/openssl.o: In function `php_openssl_pkey_init_dh':
    /root/php-7.2.8/ext/openssl/openssl.c:4253: undefined reference to `DH_set0_key'
    ext/openssl/.libs/openssl.o: In function `sk_X509_value':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_value'
    ext/openssl/.libs/openssl.o: In function `sk_X509_num':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_num'
    ext/openssl/.libs/openssl.o: In function `sk_X509_free':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_free'
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_free'
    ext/openssl/.libs/openssl.o: In function `php_openssl_is_private_key':
    /root/php-7.2.8/ext/openssl/openssl.c:4051: undefined reference to `EVP_PKEY_get0_DSA'
    /root/php-7.2.8/ext/openssl/openssl.c:4055: undefined reference to `DSA_get0_pqg'
    /root/php-7.2.8/ext/openssl/openssl.c:4060: undefined reference to `DSA_get0_key'
    /root/php-7.2.8/ext/openssl/openssl.c:4034: undefined reference to `EVP_PKEY_get0_RSA'
    /root/php-7.2.8/ext/openssl/openssl.c:4038: undefined reference to `RSA_get0_factors'
    /root/php-7.2.8/ext/openssl/openssl.c:4069: undefined reference to `EVP_PKEY_get0_DH'
    /root/php-7.2.8/ext/openssl/openssl.c:4073: undefined reference to `DH_get0_pqg'
    /root/php-7.2.8/ext/openssl/openssl.c:4078: undefined reference to `DH_get0_key'
    /root/php-7.2.8/ext/openssl/openssl.c:4088: undefined reference to `EVP_PKEY_get0_EC_KEY'
    ext/openssl/.libs/openssl.o: In function `zif_openssl_seal':
    /root/php-7.2.8/ext/openssl/openssl.c:6075: undefined reference to `EVP_CIPHER_CTX_reset'
    ext/openssl/.libs/openssl.o: In function `zif_openssl_verify':
    /root/php-7.2.8/ext/openssl/openssl.c:5981: undefined reference to `EVP_MD_CTX_new'
    /root/php-7.2.8/ext/openssl/openssl.c:5988: undefined reference to `EVP_MD_CTX_free'
    ext/openssl/.libs/openssl.o: In function `zif_openssl_sign':
    /root/php-7.2.8/ext/openssl/openssl.c:5914: undefined reference to `EVP_MD_CTX_new'
    /root/php-7.2.8/ext/openssl/openssl.c:5929: undefined reference to `EVP_MD_CTX_free'
    ext/openssl/.libs/openssl.o: In function `zif_openssl_public_decrypt':
    /root/php-7.2.8/ext/openssl/openssl.c:5806: undefined reference to `EVP_PKEY_get0_RSA'
    ext/openssl/.libs/openssl.o: In function `zif_openssl_public_encrypt':
    /root/php-7.2.8/ext/openssl/openssl.c:5743: undefined reference to `EVP_PKEY_get0_RSA'
    ext/openssl/.libs/openssl.o: In function `zif_openssl_private_decrypt':
    /root/php-7.2.8/ext/openssl/openssl.c:5675: undefined reference to `EVP_PKEY_get0_RSA'
    ext/openssl/.libs/openssl.o: In function `zif_openssl_private_encrypt':
    /root/php-7.2.8/ext/openssl/openssl.c:5613: undefined reference to `EVP_PKEY_get0_RSA'
    ext/openssl/.libs/openssl.o: In function `zif_openssl_pkey_export':
    /root/php-7.2.8/ext/openssl/openssl.c:4615: undefined reference to `EVP_PKEY_get0_EC_KEY'
    ext/openssl/.libs/openssl.o: In function `zif_openssl_pkey_export_to_file':
    /root/php-7.2.8/ext/openssl/openssl.c:4538: undefined reference to `EVP_PKEY_get0_EC_KEY'
    ext/openssl/.libs/openssl.o: In function `php_openssl_make_REQ':
    /root/php-7.2.8/ext/openssl/openssl.c:3086: undefined reference to `X509_REQ_get_subject_name'
    ext/openssl/.libs/openssl.o: In function `sk_CONF_VALUE_num':
    /usr/local/include/openssl/conf.h:31: undefined reference to `OPENSSL_sk_num'
    ext/openssl/.libs/openssl.o: In function `sk_CONF_VALUE_value':
    /usr/local/include/openssl/conf.h:31: undefined reference to `OPENSSL_sk_value'
    ext/openssl/.libs/openssl.o: In function `sk_CONF_VALUE_num':
    /usr/local/include/openssl/conf.h:31: undefined reference to `OPENSSL_sk_num'
    /usr/local/include/openssl/conf.h:31: undefined reference to `OPENSSL_sk_num'
    ext/openssl/.libs/openssl.o: In function `sk_CONF_VALUE_value':
    /usr/local/include/openssl/conf.h:31: undefined reference to `OPENSSL_sk_value'
    ext/openssl/.libs/openssl.o: In function `sk_X509_pop_free':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_pop_free'
    ext/openssl/.libs/openssl.o: In function `sk_X509_new_null':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_new_null'
    ext/openssl/.libs/openssl.o: In function `sk_X509_push':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_push'
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_push'
    ext/openssl/.libs/openssl.o: In function `sk_X509_pop_free':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_pop_free'
    ext/openssl/.libs/openssl.o: In function `sk_X509_new_null':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_new_null'
    ext/openssl/.libs/openssl.o: In function `sk_X509_push':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_push'
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_push'
    ext/openssl/.libs/openssl.o: In function `sk_X509_pop_free':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_pop_free'
    ext/openssl/.libs/openssl.o: In function `zif_openssl_x509_parse':
    /root/php-7.2.8/ext/openssl/openssl.c:2337: undefined reference to `X509_get_version'
    /root/php-7.2.8/ext/openssl/openssl.c:2364: undefined reference to `X509_getm_notBefore'
    /root/php-7.2.8/ext/openssl/openssl.c:2365: undefined reference to `X509_getm_notAfter'
    /root/php-7.2.8/ext/openssl/openssl.c:2367: undefined reference to `X509_getm_notBefore'
    /root/php-7.2.8/ext/openssl/openssl.c:2368: undefined reference to `X509_getm_notAfter'
    /root/php-7.2.8/ext/openssl/openssl.c:2375: undefined reference to `X509_get_signature_nid'
    ext/openssl/.libs/openssl.o: In function `sk_GENERAL_NAME_pop_free':
    /usr/local/include/openssl/x509v3.h:165: undefined reference to `OPENSSL_sk_pop_free'
    ext/openssl/.libs/openssl.o: In function `sk_GENERAL_NAME_num':
    /usr/local/include/openssl/x509v3.h:165: undefined reference to `OPENSSL_sk_num'
    ext/openssl/.libs/openssl.o: In function `sk_GENERAL_NAME_value':
    /usr/local/include/openssl/x509v3.h:165: undefined reference to `OPENSSL_sk_value'
    ext/openssl/.libs/openssl.o: In function `openssl_x509v3_subjectAltName':
    /root/php-7.2.8/ext/openssl/openssl.c:2267: undefined reference to `ASN1_STRING_get0_data'
    ext/openssl/.libs/openssl.o: In function `zif_openssl_csr_sign':
    /root/php-7.2.8/ext/openssl/openssl.c:3449: undefined reference to `X509_REQ_get_subject_name'
    /root/php-7.2.8/ext/openssl/openssl.c:3458: undefined reference to `X509_getm_notBefore'
    /root/php-7.2.8/ext/openssl/openssl.c:3459: undefined reference to `X509_getm_notAfter'
    ext/openssl/.libs/openssl.o: In function `zif_openssl_csr_get_subject':
    /root/php-7.2.8/ext/openssl/openssl.c:3618: undefined reference to `X509_REQ_get_subject_name'
    ext/openssl/.libs/openssl.o: In function `sk_X509_free':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_free'
    ext/openssl/.libs/xp_ssl.o: In function `sk_X509_num':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_num'
    ext/openssl/.libs/xp_ssl.o: In function `sk_X509_value':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_value'
    ext/openssl/.libs/xp_ssl.o: In function `sk_X509_num':
    /usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_num'
    ext/openssl/.libs/xp_ssl.o: In function `php_openssl_create_sni_server_ctx':
    /root/php-7.2.8/ext/openssl/xp_ssl.c:1321: undefined reference to `TLS_server_method'
    ext/openssl/.libs/xp_ssl.o: In function `php_openssl_set_server_specific_opts':
    /root/php-7.2.8/ext/openssl/xp_ssl.c:1252: undefined reference to `SSL_CTX_get_options'
    /root/php-7.2.8/ext/openssl/xp_ssl.c:1279: undefined reference to `SSL_CTX_set_options'
    ext/openssl/.libs/xp_ssl.o: In function `php_openssl_setup_crypto':
    /root/php-7.2.8/ext/openssl/xp_ssl.c:1571: undefined reference to `TLS_client_method'
    /root/php-7.2.8/ext/openssl/xp_ssl.c:1625: undefined reference to `SSL_CTX_set_security_level'
    /root/php-7.2.8/ext/openssl/xp_ssl.c:1651: undefined reference to `SSL_CTX_set_alpn_select_cb'
    /root/php-7.2.8/ext/openssl/xp_ssl.c:1666: undefined reference to `SSL_CTX_set_options'
    /root/php-7.2.8/ext/openssl/xp_ssl.c:1571: undefined reference to `TLS_server_method'
    /root/php-7.2.8/ext/openssl/xp_ssl.c:1647: undefined reference to `SSL_CTX_set_alpn_protos'
    ext/openssl/.libs/xp_ssl.o: In function `php_openssl_sockop_set_option':
    /root/php-7.2.8/ext/openssl/xp_ssl.c:2365: undefined reference to `SSL_get0_alpn_selected'
    ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_num':
    /usr/local/include/openssl/x509v3.h:165: undefined reference to `OPENSSL_sk_num'
    ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_value':
    /usr/local/include/openssl/x509v3.h:165: undefined reference to `OPENSSL_sk_value'
    ext/phar/.libs/util.o: In function `phar_create_signature':
    /root/php-7.2.8/ext/phar/util.c:1860: undefined reference to `EVP_MD_CTX_new'
    /root/php-7.2.8/ext/phar/util.c:1892: undefined reference to `EVP_MD_CTX_free'
    ext/phar/.libs/util.o: In function `phar_verify_signature':
    /root/php-7.2.8/ext/phar/util.c:1563: undefined reference to `EVP_MD_CTX_new'
    /root/php-7.2.8/ext/phar/util.c:1595: undefined reference to `EVP_MD_CTX_free'
    /root/php-7.2.8/ext/phar/util.c:1586: undefined reference to `EVP_MD_CTX_free'
    collect2: ld returned 1 exit status
    make: *** [sapi/cli/php] Error 1
    
    23 条回复    2018-08-03 19:17:11 +08:00
    tomfs
        1
    tomfs  
       2018-08-02 23:11:24 +08:00
    make clean
    然后./configure 仔细看看是不是缺少啥动态库
    tomfs
        2
    tomfs  
       2018-08-02 23:11:50 +08:00
    没缺的话直接 make clean 然后 make..
    update
        3
    update  
    OP
       2018-08-02 23:13:08 +08:00
    @tomfs
    configure 时候也没看见啥特别的提示。。
    update
        4
    update  
    OP
       2018-08-02 23:15:51 +08:00
    <pre>
    ./configure --prefix=/usr/local/php7 --exec-prefix=/usr/local/php7 --bindir=/usr/local/php7/bin --sbindir=/usr/local/php7/sbin --includedir=/usr/local/php7/include --libdir=/usr/local/php7/lib/php --mandir=/usr/local/php7/php/man --with-config-file-path=/usr/local/php7/etc --with-mhash --with-pdo-mysql=shared,mysqlnd --with-openssl --with-gd --with-iconv --with-zlib --enable-zip --enable-inline-optimization --disable-debug --disable-rpath --enable-shared --enable-xml --enable-bcmath --enable-shmop --enable-sysvsem --enable-mbregex --enable-mbstring --enable-pcntl --enable-sockets --with-xmlrpc --enable-soap --without-pear --with-gettext --enable-session --with-curl --with-jpeg-dir --with-freetype-dir --enable-opcache --enable-fpm --without-gdbm
    checking 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 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 cc... cc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether cc accepts -g... yes
    checking for cc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -E
    checking for icc... no
    checking for suncc... no
    checking whether cc understands -c and -o together... yes
    checking how to run the C preprocessor... cc -E
    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 minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking whether ln -s works... yes
    checking for system library directory... lib
    checking whether to enable runpaths... no
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking for gawk... gawk
    checking for bison... bison -y
    checking for bison version... 2.4 (ok)
    checking for re2c... re2c
    checking for re2c version... 0.13.5 (ok)
    checking whether to enable computed goto gcc extension with re2c... no
    checking whether C compiler accepts -fvisibility=hidden... yes
    checking whether to force non-PIC code in shared modules... no
    checking whether /dev/urandom exists... yes
    checking whether /dev/arandom exists... no
    checking for global register variables support... no
    checking whether atof() accepts NAN... no
    checking whether atof() accepts INF... no
    checking whether HUGE_VAL == INF... yes
    checking whether HUGE_VAL + -HUGEVAL == NAN... no
    checking for pthreads_cflags... -pthread
    checking for pthreads_lib... pthread

    Configuring SAPI modules
    checking for Apache 2.0 handler-module support via DSO through APXS... no
    checking for setproctitle... no
    checking sys/pstat.h usability... no
    checking sys/pstat.h presence... no
    checking for sys/pstat.h... no
    checking for PS_STRINGS... no
    checking for CLI build... yes
    checking for embedded SAPI library support... no
    checking for FPM build... yes
    checking for setenv... yes
    checking for clearenv... yes
    checking for setproctitle... (cached) no
    checking for library containing socket... none required
    checking for library containing inet_addr... none required
    checking errno.h usability... yes
    checking errno.h presence... yes
    checking for errno.h... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking stdio.h usability... yes
    checking stdio.h presence... yes
    checking for stdio.h... yes
    checking for stdlib.h... (cached) yes
    checking for unistd.h... (cached) yes
    checking sys/uio.h usability... yes
    checking sys/uio.h presence... yes
    checking for sys/uio.h... yes
    checking sys/select.h usability... yes
    checking sys/select.h presence... yes
    checking for sys/select.h... yes
    checking sys/socket.h usability... yes
    checking sys/socket.h presence... yes
    checking for sys/socket.h... yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking arpa/inet.h usability... yes
    checking arpa/inet.h presence... yes
    checking for arpa/inet.h... yes
    checking netinet/in.h usability... yes
    checking netinet/in.h presence... yes
    checking for netinet/in.h... yes
    checking sysexits.h usability... yes
    checking sysexits.h presence... yes
    checking for sysexits.h... yes
    checking for prctl... yes
    checking for clock_gettime... no
    checking for clock_gettime in -lrt... yes
    checking for ptrace... yes

    </pre>
    update
        5
    update  
    OP
       2018-08-02 23:16:15 +08:00
    <pre>
    checking whether ptrace works... yes
    checking for proc mem file... mem
    checking if gcc supports __sync_bool_compare_and_swap... yes
    checking for TCP_INFO... yes
    checking for sysconf... yes
    checking for times... yes
    checking for kqueue... no
    checking for port framework... no
    checking for /dev/poll... no
    checking for epoll... yes
    checking for poll... yes
    checking for select... yes
    checking for apparmor... no
    checking for LiteSpeed support... no
    checking for phpdbg support... yes
    checking for phpdbg web SAPI support... no
    checking for phpdbg debug build... no
    checking whether termios.h defines TIOCGWINSZ... no
    checking whether sys/ioctl.h defines TIOCGWINSZ... yes
    checking for CGI build... yes
    checking for socklen_t in sys/socket.h... yes
    checking for sun_len in sys/un.h... no
    checking whether cross-process locking is required by accept()... no
    checking for chosen SAPI module... none
    checking for executable SAPI binaries... cli fpm phpdbg cgi

    Running system checks
    checking for sendmail... /usr/sbin/sendmail
    checking whether system uses EBCDIC... no
    checking whether byte ordering is bigendian... no
    checking whether writing to stdout works... This is the test message -- yes
    checking for socket... yes
    checking for socketpair... yes
    checking for htonl... yes
    checking for gethostname... yes
    checking for gethostbyaddr... yes
    checking for yp_get_default_domain... no
    checking for __yp_get_default_domain... no
    checking for yp_get_default_domain in -lnsl... yes
    checking for dlopen... no
    checking for __dlopen... no
    checking for dlopen in -ldl... yes
    checking for sin in -lm... yes
    checking for inet_aton... yes
    checking for ANSI C header files... (cached) yes
    checking for dirent.h that defines DIR... yes
    checking for library containing opendir... none required
    checking for inttypes.h... (cached) yes
    checking for stdint.h... (cached) yes
    checking for dirent.h... yes
    checking for ApplicationServices/ApplicationServices.h... no
    checking for sys/param.h... yes
    checking for sys/types.h... (cached) yes
    checking for sys/time.h... (cached) yes
    checking for netinet/in.h... (cached) yes
    checking for alloca.h... yes
    checking for arpa/inet.h... (cached) yes
    checking for arpa/nameser.h... yes
    checking for assert.h... yes
    checking for crypt.h... yes
    checking for dns.h... no
    checking for fcntl.h... (cached) yes
    checking for grp.h... yes
    checking for ieeefp.h... no
    checking for langinfo.h... yes
    checking for limits.h... yes
    checking for locale.h... yes
    checking for monetary.h... yes
    checking for netdb.h... yes
    checking for poll.h... yes
    checking for pwd.h... yes
    checking for resolv.h... yes
    checking for signal.h... yes
    checking for stdarg.h... yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking for syslog.h... yes
    checking for sysexits.h... (cached) yes
    checking for sys/ioctl.h... yes
    checking for sys/file.h... yes
    checking for sys/mman.h... yes
    checking for sys/mount.h... yes
    checking for sys/poll.h... yes
    checking for sys/resource.h... yes
    checking for sys/select.h... (cached) yes
    checking for sys/socket.h... (cached) yes
    checking for sys/stat.h... (cached) yes
    checking for sys/statfs.h... yes
    checking for sys/statvfs.h... yes
    checking for sys/vfs.h... yes
    checking for sys/sysexits.h... no
    checking for sys/varargs.h... no
    checking for sys/wait.h... yes
    checking for sys/loadavg.h... no
    checking for termios.h... yes
    checking for unistd.h... (cached) yes
    checking for unix.h... no
    checking for utime.h... yes
    checking for sys/utsname.h... yes
    checking for sys/ipc.h... yes
    checking for dlfcn.h... yes
    checking for assert.h... (cached) yes
    checking for fopencookie... yes
    checking for broken getcwd... no
    checking for broken libc stdio... yes
    checking whether struct tm is in sys/time.h or time.h... time.h
    checking for struct tm.tm_zone... yes
    checking for missing declarations of reentrant functions... done
    checking for fclose declaration... ok
    checking for tm_gmtoff in struct tm... yes
    checking for struct flock... yes
    checking for socklen_t... yes
    checking size of size_t... 8
    checking size of long long... 8
    checking size of long long int... 8
    checking size of long... 8
    checking size of int... 4
    checking size of intmax_t... 8
    checking size of ssize_t... 8
    checking size of ptrdiff_t... 8
    checking size of short... 2
    checking size of int... (cached) 4
    checking size of long... (cached) 8
    checking size of long long... (cached) 8
    checking for int8... no
    checking for int16... no
    checking for int32... no
    checking for int64... no
    checking for int8_t... yes
    checking for int16_t... yes
    checking for int32_t... yes
    checking for int64_t... yes
    checking for uint8... no
    checking for uint16... no
    checking for uint32... no
    checking for uint64... no
    checking for uint8_t... yes
    checking for uint16_t... yes
    checking for uint32_t... yes
    checking for uint64_t... yes
    checking for u_int8_t... yes
    checking for u_int16_t... yes
    checking for u_int32_t... yes
    checking for u_int64_t... yes
    checking for __builtin_expect... yes
    checking for __builtin_clz... yes
    checking for __bui

    </pre>
    tomfs
        6
    tomfs  
       2018-08-02 23:22:01 +08:00
    那 make clean & make 能解决问题不,这种没有明确报错的一般都是确动态库或者配置残留.建议站外搜索试试
    jimages
        7
    jimages  
       2018-08-03 00:45:27 +08:00 via iPhone
    你的 openssl 依赖库出问题了…重新装 openssl-dev
    msg7086
        8
    msg7086  
       2018-08-03 01:39:53 +08:00
    > openssl-devel-1.0.1e-48.el6_8.1.x86_64

    > OpenSSL 1.1.0e 16 Feb 2017

    这也不是一个版本啊?

    还有为啥要把同一个包的 yum 版和自己编译版混在一起?
    defunct9
        9
    defunct9  
       2018-08-03 07:16:05 +08:00 via iPhone   ❤️ 1
    开 ssh,让我来
    yaxin
        10
    yaxin  
       2018-08-03 08:07:20 +08:00 via iPhone
    CPPFLAGS="-I/usr/include/openssl" LDFLAGS="-L/usr/lib/openssl" ./configure --prefix=... 指定一下 openssl 的 lib 和 include 路径
    salamanderMH
        11
    salamanderMH  
       2018-08-03 08:07:45 +08:00
    https://github.com/salamander-mh/LnmpShell
    对比一下 shell,看看哪些依赖没放
    tulongtou
        12
    tulongtou  
       2018-08-03 08:23:08 +08:00 via iPhone   ❤️ 1
    为啥非要编译安装,自己找虐么,源安装既快又好为什么不用
    vex2
        13
    vex2  
       2018-08-03 08:58:44 +08:00   ❤️ 1
    编译安装没什么难的,就是依赖库有问题。先安装依赖,最好看一下默认依赖路径下有没有,没有就指定依赖路径。
    cz5424
        14
    cz5424  
       2018-08-03 09:26:08 +08:00 via Android
    docker 适合你,pull 一下什么都不用搞
    update
        15
    update  
    OP
       2018-08-03 09:42:23 +08:00
    各位老大 终于可以了
    如 7 楼 jimages 和 8 楼 msg7086 所说
    openssl 版本 和其对应 devel 版本不符

    系统中先是装了一个 openssl 1.1.1 版本的 之前 yum 安装的 devel 版本还是 1.0.1 的 卸载 openssl-devel-1.0.1e-48.el6_8.1.x86_64 后 再编译 正常了

    各位老大 领铜币吧 😀
    update
        16
    update  
    OP
       2018-08-03 09:44:06 +08:00
    @tulongtou 确实虐了好几天了。。
    update
        17
    update  
    OP
       2018-08-03 09:44:31 +08:00
    @defunct9 本地 vagrant 环境 😂
    components
        18
    components  
       2018-08-03 12:15:13 +08:00
    用 docker 镜像吧
    mafeifan
        19
    mafeifan  
       2018-08-03 12:18:12 +08:00 via Android
    简单粗暴用 docker
    update
        20
    update  
    OP
       2018-08-03 13:38:02 +08:00
    @mafeifan
    @components
    好入门上手不 😀
    components
        21
    components  
       2018-08-03 15:17:49 +08:00
    mafeifan
        22
    mafeifan  
       2018-08-03 16:01:50 +08:00
    https://www.jianshu.com/p/0dedba35e922 我刚写的教程 只要找到好用的镜像就行 没有几行命令就能搭建好开发环境
    hheedat
        23
    hheedat  
       2018-08-03 19:17:11 +08:00
    上面有一种视觉错觉
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5244 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 07:14 · PVG 15:14 · LAX 23:14 · JFK 02:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.