nginx 源码安装时报错:make[1]: *** [objs/nginx] Error 1 m

发布于 2022-09-11 20:22:32 字数 34632 浏览 18 评论 0

/Applications/Xcode.app/Contents/Developer/usr/bin/make -f objs/Makefile install
cc -o objs/nginx \

objs/src/core/nginx.o \
objs/src/core/ngx_log.o \
objs/src/core/ngx_palloc.o \
objs/src/core/ngx_array.o \
objs/src/core/ngx_list.o \
objs/src/core/ngx_hash.o \
objs/src/core/ngx_buf.o \
objs/src/core/ngx_queue.o \
objs/src/core/ngx_output_chain.o \
objs/src/core/ngx_string.o \
objs/src/core/ngx_parse.o \
objs/src/core/ngx_parse_time.o \
objs/src/core/ngx_inet.o \
objs/src/core/ngx_file.o \
objs/src/core/ngx_crc32.o \
objs/src/core/ngx_murmurhash.o \
objs/src/core/ngx_md5.o \
objs/src/core/ngx_sha1.o \
objs/src/core/ngx_rbtree.o \
objs/src/core/ngx_radix_tree.o \
objs/src/core/ngx_slab.o \
objs/src/core/ngx_times.o \
objs/src/core/ngx_shmtx.o \
objs/src/core/ngx_connection.o \
objs/src/core/ngx_cycle.o \
objs/src/core/ngx_spinlock.o \
objs/src/core/ngx_rwlock.o \
objs/src/core/ngx_cpuinfo.o \
objs/src/core/ngx_conf_file.o \
objs/src/core/ngx_module.o \
objs/src/core/ngx_resolver.o \
objs/src/core/ngx_open_file_cache.o \
objs/src/core/ngx_crypt.o \
objs/src/core/ngx_proxy_protocol.o \
objs/src/core/ngx_syslog.o \
objs/src/event/ngx_event.o \
objs/src/event/ngx_event_timer.o \
objs/src/event/ngx_event_posted.o \
objs/src/event/ngx_event_accept.o \
objs/src/event/ngx_event_udp.o \
objs/src/event/ngx_event_connect.o \
objs/src/event/ngx_event_pipe.o \
objs/src/os/unix/ngx_time.o \
objs/src/os/unix/ngx_errno.o \
objs/src/os/unix/ngx_alloc.o \
objs/src/os/unix/ngx_files.o \
objs/src/os/unix/ngx_socket.o \
objs/src/os/unix/ngx_recv.o \
objs/src/os/unix/ngx_readv_chain.o \
objs/src/os/unix/ngx_udp_recv.o \
objs/src/os/unix/ngx_send.o \
objs/src/os/unix/ngx_writev_chain.o \
objs/src/os/unix/ngx_udp_send.o \
objs/src/os/unix/ngx_udp_sendmsg_chain.o \
objs/src/os/unix/ngx_channel.o \
objs/src/os/unix/ngx_shmem.o \
objs/src/os/unix/ngx_process.o \
objs/src/os/unix/ngx_daemon.o \
objs/src/os/unix/ngx_setaffinity.o \
objs/src/os/unix/ngx_setproctitle.o \
objs/src/os/unix/ngx_posix_init.o \
objs/src/os/unix/ngx_user.o \
objs/src/os/unix/ngx_dlopen.o \
objs/src/os/unix/ngx_process_cycle.o \
objs/src/os/unix/ngx_darwin_init.o \
objs/src/event/modules/ngx_kqueue_module.o \
objs/src/os/unix/ngx_darwin_sendfile_chain.o \
objs/src/event/ngx_event_openssl.o \
objs/src/event/ngx_event_openssl_stapling.o \
objs/src/core/ngx_regex.o \
objs/src/http/ngx_http.o \
objs/src/http/ngx_http_core_module.o \
objs/src/http/ngx_http_special_response.o \
objs/src/http/ngx_http_request.o \
objs/src/http/ngx_http_parse.o \
objs/src/http/modules/ngx_http_log_module.o \
objs/src/http/ngx_http_request_body.o \
objs/src/http/ngx_http_variables.o \
objs/src/http/ngx_http_script.o \
objs/src/http/ngx_http_upstream.o \
objs/src/http/ngx_http_upstream_round_robin.o \
objs/src/http/ngx_http_file_cache.o \
objs/src/http/ngx_http_write_filter_module.o \
objs/src/http/ngx_http_header_filter_module.o \
objs/src/http/modules/ngx_http_chunked_filter_module.o \
objs/src/http/modules/ngx_http_range_filter_module.o \
objs/src/http/modules/ngx_http_gzip_filter_module.o \
objs/src/http/ngx_http_postpone_filter_module.o \
objs/src/http/modules/ngx_http_ssi_filter_module.o \
objs/src/http/modules/ngx_http_charset_filter_module.o \
objs/src/http/modules/ngx_http_sub_filter_module.o \
objs/src/http/modules/ngx_http_userid_filter_module.o \
objs/src/http/modules/ngx_http_headers_filter_module.o \
objs/src/http/ngx_http_copy_filter_module.o \
objs/src/http/modules/ngx_http_not_modified_filter_module.o \
objs/src/http/modules/ngx_http_static_module.o \
objs/src/http/modules/ngx_http_gzip_static_module.o \
objs/src/http/modules/ngx_http_autoindex_module.o \
objs/src/http/modules/ngx_http_index_module.o \
objs/src/http/modules/ngx_http_random_index_module.o \
objs/src/http/modules/ngx_http_mirror_module.o \
objs/src/http/modules/ngx_http_try_files_module.o \
objs/src/http/modules/ngx_http_auth_basic_module.o \
objs/src/http/modules/ngx_http_access_module.o \
objs/src/http/modules/ngx_http_limit_conn_module.o \
objs/src/http/modules/ngx_http_limit_req_module.o \
objs/src/http/modules/ngx_http_geo_module.o \
objs/src/http/modules/ngx_http_map_module.o \
objs/src/http/modules/ngx_http_split_clients_module.o \
objs/src/http/modules/ngx_http_referer_module.o \
objs/src/http/modules/ngx_http_rewrite_module.o \
objs/src/http/modules/ngx_http_ssl_module.o \
objs/src/http/modules/ngx_http_proxy_module.o \
objs/src/http/modules/ngx_http_fastcgi_module.o \
objs/src/http/modules/ngx_http_uwsgi_module.o \
objs/src/http/modules/ngx_http_scgi_module.o \
objs/src/http/modules/ngx_http_memcached_module.o \
objs/src/http/modules/ngx_http_empty_gif_module.o \
objs/src/http/modules/ngx_http_browser_module.o \
objs/src/http/modules/ngx_http_upstream_hash_module.o \
objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
objs/src/http/modules/ngx_http_upstream_least_conn_module.o \
objs/src/http/modules/ngx_http_upstream_random_module.o \
objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
objs/src/http/modules/ngx_http_upstream_zone_module.o \
objs/src/http/modules/ngx_http_stub_status_module.o \
objs/ngx_modules.o \
-L/usr/local/Cellar/pcre/8.37/lib -lpcre /usr/local/openssl-1.0.2s/libssl.a /usr/local/openssl-1.0.2s/libcrypto.a -lz

ld: warning: directory not found for option '-L/usr/local/Cellar/pcre/8.37/lib'
ld: warning: ignoring file /usr/local/openssl-1.0.2s/libssl.a, file was built for archive which is not the architecture being linked (x86_64): /usr/local/openssl-1.0.2s/libssl.a
ld: warning: ignoring file /usr/local/openssl-1.0.2s/libcrypto.a, file was built for archive which is not the architecture being linked (x86_64): /usr/local/openssl-1.0.2s/libcrypto.a
Undefined symbols for architecture x86_64:
"_ASN1_GENERALIZEDTIME_print", referenced from:

  _ngx_ssl_stapling_ocsp_handler in ngx_event_openssl_stapling.o

"_ASN1_TIME_print", referenced from:

  _ngx_ssl_get_client_v_start in ngx_event_openssl.o
  _ngx_ssl_get_client_v_end in ngx_event_openssl.o
  _ngx_ssl_get_client_v_remain in ngx_event_openssl.o

"_ASN1_d2i_bio", referenced from:

  _ngx_ssl_stapling in ngx_event_openssl_stapling.o

"_BIO_ctrl", referenced from:

  _ngx_ssl_load_certificate_key in ngx_event_openssl.o
  _ngx_ssl_get_raw_certificate in ngx_event_openssl.o
  _ngx_ssl_get_subject_dn in ngx_event_openssl.o
  _ngx_ssl_get_issuer_dn in ngx_event_openssl.o
  _ngx_ssl_get_serial_number in ngx_event_openssl.o
  _ngx_ssl_get_client_v_start in ngx_event_openssl.o
  _ngx_ssl_get_client_v_end in ngx_event_openssl.o
  ...

"_BIO_free", referenced from:

  _ngx_ssl_load_certificate in ngx_event_openssl.o
  _ngx_ssl_load_certificate_key in ngx_event_openssl.o
  _ngx_ssl_dhparam in ngx_event_openssl.o
  _ngx_ssl_get_raw_certificate in ngx_event_openssl.o
  _ngx_ssl_get_subject_dn in ngx_event_openssl.o
  _ngx_ssl_get_issuer_dn in ngx_event_openssl.o
  _ngx_ssl_get_serial_number in ngx_event_openssl.o
  ...

"_BIO_int_ctrl", referenced from:

  _ngx_ssl_info_callback in ngx_event_openssl.o

"_BIO_new", referenced from:

  _ngx_ssl_get_raw_certificate in ngx_event_openssl.o
  _ngx_ssl_get_subject_dn in ngx_event_openssl.o
  _ngx_ssl_get_issuer_dn in ngx_event_openssl.o
  _ngx_ssl_get_serial_number in ngx_event_openssl.o
  _ngx_ssl_get_client_v_start in ngx_event_openssl.o
  _ngx_ssl_get_client_v_end in ngx_event_openssl.o
  _ngx_ssl_get_client_v_remain in ngx_event_openssl.o
  ...

"_BIO_new_file", referenced from:

  _ngx_ssl_load_certificate in ngx_event_openssl.o
  _ngx_ssl_load_certificate_key in ngx_event_openssl.o
  _ngx_ssl_dhparam in ngx_event_openssl.o
  _ngx_ssl_stapling in ngx_event_openssl_stapling.o

"_BIO_new_mem_buf", referenced from:

  _ngx_ssl_load_certificate in ngx_event_openssl.o
  _ngx_ssl_load_certificate_key in ngx_event_openssl.o

"_BIO_read", referenced from:

  _ngx_ssl_get_raw_certificate in ngx_event_openssl.o
  _ngx_ssl_get_subject_dn in ngx_event_openssl.o
  _ngx_ssl_get_issuer_dn in ngx_event_openssl.o
  _ngx_ssl_get_serial_number in ngx_event_openssl.o
  _ngx_ssl_get_client_v_start in ngx_event_openssl.o
  _ngx_ssl_get_client_v_end in ngx_event_openssl.o

"_BIO_s_mem", referenced from:

  _ngx_ssl_get_raw_certificate in ngx_event_openssl.o
  _ngx_ssl_get_subject_dn in ngx_event_openssl.o
  _ngx_ssl_get_issuer_dn in ngx_event_openssl.o
  _ngx_ssl_get_serial_number in ngx_event_openssl.o
  _ngx_ssl_get_client_v_start in ngx_event_openssl.o
  _ngx_ssl_get_client_v_end in ngx_event_openssl.o
  _ngx_ssl_get_client_v_remain in ngx_event_openssl.o
  ...

"_BIO_write", referenced from:

  _ngx_ssl_get_client_v_remain in ngx_event_openssl.o
  _ngx_ssl_stapling_ocsp_handler in ngx_event_openssl_stapling.o

"_CRYPTO_add_lock", referenced from:

  _ngx_ssl_stapling in ngx_event_openssl_stapling.o

"_CRYPTO_free", referenced from:

  _ngx_ssl_get_subject_dn_legacy in ngx_event_openssl.o
  _ngx_ssl_get_issuer_dn_legacy in ngx_event_openssl.o

"_CRYPTO_malloc", referenced from:

  _ngx_ssl_certificate_status_callback in ngx_event_openssl_stapling.o

"_DH_free", referenced from:

  _ngx_ssl_dhparam in ngx_event_openssl.o

"_ENGINE_by_id", referenced from:

  _ngx_ssl_load_certificate_key in ngx_event_openssl.o
  _ngx_openssl_engine in ngx_event_openssl.o

"_ENGINE_cleanup", referenced from:

  _ngx_openssl_exit in ngx_event_openssl.o

"_ENGINE_free", referenced from:

  _ngx_ssl_load_certificate_key in ngx_event_openssl.o
  _ngx_openssl_engine in ngx_event_openssl.o

"_ENGINE_load_private_key", referenced from:

  _ngx_ssl_load_certificate_key in ngx_event_openssl.o

"_ENGINE_set_default", referenced from:

  _ngx_openssl_engine in ngx_event_openssl.o

"_ERR_clear_error", referenced from:

  _ngx_ssl_load_certificate in ngx_event_openssl.o
  _ngx_ssl_load_certificate_key in ngx_event_openssl.o
  _ngx_ssl_client_certificate in ngx_event_openssl.o
  _ngx_ssl_trusted_certificate in ngx_event_openssl.o
  _ngx_ssl_handshake in ngx_event_openssl.o
  _ngx_ssl_recv in ngx_event_openssl.o
  _ngx_ssl_write in ngx_event_openssl.o
  ...

"_ERR_error_string_n", referenced from:

  _ngx_ssl_error in ngx_event_openssl.o

"_ERR_get_error", referenced from:

  _ngx_ssl_error in ngx_event_openssl.o

"_ERR_peek_error", referenced from:

  _ngx_ssl_error in ngx_event_openssl.o
  _ngx_ssl_handshake in ngx_event_openssl.o
  _ngx_ssl_recv in ngx_event_openssl.o
  _ngx_ssl_write in ngx_event_openssl.o
  _ngx_ssl_connection_error in ngx_event_openssl.o
  _ngx_ssl_shutdown in ngx_event_openssl.o

"_ERR_peek_error_line_data", referenced from:

  _ngx_ssl_error in ngx_event_openssl.o

"_ERR_peek_last_error", referenced from:

  _ngx_ssl_load_certificate in ngx_event_openssl.o

"_EVP_CIPHER_iv_length", referenced from:

  _ngx_ssl_session_ticket_key_callback in ngx_event_openssl.o

"_EVP_DecryptInit_ex", referenced from:

  _ngx_ssl_session_ticket_key_callback in ngx_event_openssl.o

"_EVP_DigestFinal_ex", referenced from:

  _ngx_ssl_session_cache in ngx_event_openssl.o

"_EVP_DigestInit_ex", referenced from:

  _ngx_ssl_session_cache in ngx_event_openssl.o

"_EVP_DigestUpdate", referenced from:

  _ngx_ssl_session_cache in ngx_event_openssl.o

"_EVP_EncryptInit_ex", referenced from:

  _ngx_ssl_session_ticket_key_callback in ngx_event_openssl.o

"_EVP_MD_CTX_create", referenced from:

  _ngx_ssl_session_cache in ngx_event_openssl.o

"_EVP_MD_CTX_destroy", referenced from:

  _ngx_ssl_session_cache in ngx_event_openssl.o

"_EVP_PKEY_free", referenced from:

  _ngx_ssl_certificate in ngx_event_openssl.o
  _ngx_ssl_connection_certificate in ngx_event_openssl.o

"_EVP_aes_128_cbc", referenced from:

  _ngx_ssl_session_ticket_key_callback in ngx_event_openssl.o

"_EVP_aes_256_cbc", referenced from:

  _ngx_ssl_session_ticket_key_callback in ngx_event_openssl.o

"_EVP_cleanup", referenced from:

  _ngx_openssl_exit in ngx_event_openssl.o

"_EVP_sha1", referenced from:

  _ngx_ssl_session_cache in ngx_event_openssl.o
  _ngx_ssl_get_fingerprint in ngx_event_openssl.o

"_EVP_sha256", referenced from:

  _ngx_ssl_session_ticket_key_callback in ngx_event_openssl.o

"_HMAC_Init_ex", referenced from:

  _ngx_ssl_session_ticket_key_callback in ngx_event_openssl.o

"_OBJ_nid2sn", referenced from:

  _ngx_ssl_get_curves in ngx_event_openssl.o

"_OCSP_BASICRESP_free", referenced from:

  _ngx_ssl_stapling_ocsp_handler in ngx_event_openssl_stapling.o

"_OCSP_CERTID_free", referenced from:

  _ngx_ssl_certificate_status_callback in ngx_event_openssl_stapling.o
  _ngx_ssl_stapling_ocsp_handler in ngx_event_openssl_stapling.o

"_OCSP_REQUEST_free", referenced from:

  _ngx_ssl_certificate_status_callback in ngx_event_openssl_stapling.o

"_OCSP_REQUEST_new", referenced from:

  _ngx_ssl_certificate_status_callback in ngx_event_openssl_stapling.o

"_OCSP_RESPONSE_free", referenced from:

  _ngx_ssl_stapling in ngx_event_openssl_stapling.o
  _ngx_ssl_stapling_ocsp_handler in ngx_event_openssl_stapling.o

"_OCSP_RESPONSE_new", referenced from:

  _ngx_ssl_stapling in ngx_event_openssl_stapling.o

"_OCSP_basic_verify", referenced from:

  _ngx_ssl_stapling_ocsp_handler in ngx_event_openssl_stapling.o

"_OCSP_cert_status_str", referenced from:

  _ngx_ssl_stapling_ocsp_handler in ngx_event_openssl_stapling.o

"_OCSP_cert_to_id", referenced from:

  _ngx_ssl_certificate_status_callback in ngx_event_openssl_stapling.o
  _ngx_ssl_stapling_ocsp_handler in ngx_event_openssl_stapling.o

"_OCSP_check_validity", referenced from:

  _ngx_ssl_stapling_ocsp_handler in ngx_event_openssl_stapling.o

"_OCSP_request_add0_id", referenced from:

  _ngx_ssl_certificate_status_callback in ngx_event_openssl_stapling.o

"_OCSP_resp_find_status", referenced from:

  _ngx_ssl_stapling_ocsp_handler in ngx_event_openssl_stapling.o

"_OCSP_response_get1_basic", referenced from:

  _ngx_ssl_stapling_ocsp_handler in ngx_event_openssl_stapling.o

"_OCSP_response_status", referenced from:

  _ngx_ssl_stapling_ocsp_handler in ngx_event_openssl_stapling.o

"_OCSP_response_status_str", referenced from:

  _ngx_ssl_stapling_ocsp_handler in ngx_event_openssl_stapling.o

"_OPENSSL_add_all_algorithms_noconf", referenced from:

  _ngx_ssl_init in ngx_event_openssl.o

"_OPENSSL_config", referenced from:

  _ngx_ssl_init in ngx_event_openssl.o

"_PEM_read_bio_DHparams", referenced from:

  _ngx_ssl_dhparam in ngx_event_openssl.o

"_PEM_read_bio_PrivateKey", referenced from:

  _ngx_ssl_load_certificate_key in ngx_event_openssl.o

"_PEM_read_bio_X509", referenced from:

  _ngx_ssl_load_certificate in ngx_event_openssl.o

"_PEM_read_bio_X509_AUX", referenced from:

  _ngx_ssl_load_certificate in ngx_event_openssl.o

"_PEM_write_bio_X509", referenced from:

  _ngx_ssl_get_raw_certificate in ngx_event_openssl.o

"_RAND_bytes", referenced from:

  _ngx_ssl_session_ticket_key_callback in ngx_event_openssl.o
  _ngx_http_variable_request_id in ngx_http_variables.o

"_RSA_generate_key", referenced from:

  _ngx_ssl_rsa512_key_callback in ngx_event_openssl.o

"_SSL_CIPHER_find", referenced from:

  _ngx_ssl_get_ciphers in ngx_event_openssl.o

"_SSL_CIPHER_get_name", referenced from:

  _ngx_ssl_get_cipher_name in ngx_event_openssl.o
  _ngx_ssl_get_ciphers in ngx_event_openssl.o

"_SSL_CTX_callback_ctrl", referenced from:

  _ngx_ssl_session_ticket_keys in ngx_event_openssl.o
  _ngx_ssl_stapling in ngx_event_openssl_stapling.o
  _ngx_http_ssl_merge_srv_conf in ngx_http_ssl_module.o

"_SSL_CTX_ctrl", referenced from:

  _ngx_ssl_create in ngx_event_openssl.o
  _ngx_ssl_certificate in ngx_event_openssl.o
  _ngx_ssl_ciphers in ngx_event_openssl.o
  _ngx_ssl_dhparam in ngx_event_openssl.o
  _ngx_ssl_ecdh_curve in ngx_event_openssl.o
  _ngx_ssl_client_session_cache in ngx_event_openssl.o
  _ngx_ssl_session_cache in ngx_event_openssl.o
  ...

"_SSL_CTX_free", referenced from:

  _ngx_ssl_cleanup_ctx in ngx_event_openssl.o

"_SSL_CTX_get_cert_store", referenced from:

  _ngx_ssl_crl in ngx_event_openssl.o
  _ngx_ssl_stapling in ngx_event_openssl_stapling.o
  _ngx_ssl_stapling_ocsp_handler in ngx_event_openssl_stapling.o

"_SSL_CTX_get_client_CA_list", referenced from:

  _ngx_ssl_session_cache in ngx_event_openssl.o

"_SSL_CTX_get_ex_data", referenced from:

  _ngx_ssl_certificate in ngx_event_openssl.o
  _ngx_ssl_session_cache in ngx_event_openssl.o
  _ngx_ssl_new_session in ngx_event_openssl.o
  _ngx_ssl_get_cached_session in ngx_event_openssl.o
  _ngx_ssl_remove_session in ngx_event_openssl.o
  _ngx_ssl_session_ticket_key_callback in ngx_event_openssl.o
  _ngx_ssl_cleanup_ctx in ngx_event_openssl.o
  ...

"_SSL_CTX_get_ex_new_index", referenced from:

  _ngx_ssl_init in ngx_event_openssl.o

"_SSL_CTX_get_timeout", referenced from:

  _ngx_ssl_new_session in ngx_event_openssl.o

"_SSL_CTX_get_verify_callback", referenced from:

  _ngx_http_ssl_servername in ngx_http_request.o

"_SSL_CTX_get_verify_depth", referenced from:

  _ngx_http_ssl_servername in ngx_http_request.o

"_SSL_CTX_get_verify_mode", referenced from:

  _ngx_http_ssl_servername in ngx_http_request.o

"_SSL_CTX_load_verify_locations", referenced from:

  _ngx_ssl_client_certificate in ngx_event_openssl.o
  _ngx_ssl_trusted_certificate in ngx_event_openssl.o

"_SSL_CTX_new", referenced from:

  _ngx_ssl_create in ngx_event_openssl.o

"_SSL_CTX_remove_session", referenced from:

  _ngx_ssl_remove_cached_session in ngx_event_openssl.o

"_SSL_CTX_sess_set_get_cb", referenced from:

  _ngx_ssl_session_cache in ngx_event_openssl.o

"_SSL_CTX_sess_set_new_cb", referenced from:

  _ngx_ssl_client_session_cache in ngx_event_openssl.o
  _ngx_ssl_session_cache in ngx_event_openssl.o

"_SSL_CTX_sess_set_remove_cb", referenced from:

  _ngx_ssl_session_cache in ngx_event_openssl.o

"_SSL_CTX_set_alpn_select_cb", referenced from:

  _ngx_http_ssl_merge_srv_conf in ngx_http_ssl_module.o

"_SSL_CTX_set_cert_cb", referenced from:

  _ngx_http_ssl_merge_srv_conf in ngx_http_ssl_module.o

"_SSL_CTX_set_cipher_list", referenced from:

  _ngx_ssl_ciphers in ngx_event_openssl.o

"_SSL_CTX_set_client_CA_list", referenced from:

  _ngx_ssl_client_certificate in ngx_event_openssl.o

"_SSL_CTX_set_ex_data", referenced from:

  _ngx_ssl_create in ngx_event_openssl.o
  _ngx_ssl_certificate in ngx_event_openssl.o
  _ngx_ssl_session_cache in ngx_event_openssl.o
  _ngx_ssl_session_ticket_keys in ngx_event_openssl.o

"_SSL_CTX_set_info_callback", referenced from:

  _ngx_ssl_create in ngx_event_openssl.o

"_SSL_CTX_set_next_protos_advertised_cb", referenced from:

  _ngx_http_ssl_merge_srv_conf in ngx_http_ssl_module.o

"_SSL_CTX_set_session_id_context", referenced from:

  _ngx_ssl_session_cache in ngx_event_openssl.o

"_SSL_CTX_set_timeout", referenced from:

  _ngx_ssl_session_cache in ngx_event_openssl.o

"_SSL_CTX_set_tmp_rsa_callback", referenced from:

  _ngx_ssl_ciphers in ngx_event_openssl.o

"_SSL_CTX_set_verify", referenced from:

  _ngx_ssl_client_certificate in ngx_event_openssl.o

"_SSL_CTX_set_verify_depth", referenced from:

  _ngx_ssl_client_certificate in ngx_event_openssl.o
  _ngx_ssl_trusted_certificate in ngx_event_openssl.o

"_SSL_CTX_use_PrivateKey", referenced from:

  _ngx_ssl_certificate in ngx_event_openssl.o

"_SSL_CTX_use_certificate", referenced from:

  _ngx_ssl_certificate in ngx_event_openssl.o

"_SSL_SESSION_free", referenced from:

  _ngx_http_upstream_set_round_robin_peer_session in ngx_http_upstream_round_robin.o
  _ngx_http_upstream_save_round_robin_peer_session in ngx_http_upstream_round_robin.o

"_SSL_SESSION_get_id", referenced from:

  _ngx_ssl_new_session in ngx_event_openssl.o
  _ngx_ssl_remove_session in ngx_event_openssl.o
  _ngx_ssl_get_session_id in ngx_event_openssl.o

"_SSL_ctrl", referenced from:

  _ngx_ssl_connection_certificate in ngx_event_openssl.o
  _ngx_ssl_get_ciphers in ngx_event_openssl.o
  _ngx_ssl_get_curves in ngx_event_openssl.o
  _ngx_ssl_get_session_reused in ngx_event_openssl.o
  _ngx_ssl_certificate_status_callback in ngx_event_openssl_stapling.o
  _ngx_http_ssl_servername in ngx_http_request.o
  _ngx_http_upstream_ssl_init_connection in ngx_http_upstream.o
  ...

"_SSL_do_handshake", referenced from:

  _ngx_ssl_handshake in ngx_event_openssl.o

"_SSL_free", referenced from:

  _ngx_ssl_shutdown in ngx_event_openssl.o

"_SSL_get1_session", referenced from:

  _ngx_ssl_get_session in ngx_event_openssl.o

"_SSL_get_certificate", referenced from:

  _ngx_ssl_certificate_status_callback in ngx_event_openssl_stapling.o

"_SSL_get_current_cipher", referenced from:

  _ngx_ssl_get_cipher_name in ngx_event_openssl.o

"_SSL_get_error", referenced from:

  _ngx_ssl_handshake in ngx_event_openssl.o
  _ngx_ssl_recv in ngx_event_openssl.o
  _ngx_ssl_write in ngx_event_openssl.o
  _ngx_ssl_shutdown in ngx_event_openssl.o

"_SSL_get_ex_data", referenced from:

  _ngx_ssl_info_callback in ngx_event_openssl.o
  _ngx_ssl_new_client_session in ngx_event_openssl.o
  _ngx_ssl_new_session in ngx_event_openssl.o
  _ngx_ssl_get_cached_session in ngx_event_openssl.o
  _ngx_ssl_session_ticket_key_callback in ngx_event_openssl.o
  _ngx_ssl_certificate_status_callback in ngx_event_openssl_stapling.o
  _ngx_http_ssl_servername in ngx_http_request.o
  ...

"_SSL_get_ex_new_index", referenced from:

  _ngx_ssl_init in ngx_event_openssl.o

"_SSL_get_peer_certificate", referenced from:

  _ngx_ssl_check_host in ngx_event_openssl.o
  _ngx_ssl_get_raw_certificate in ngx_event_openssl.o
  _ngx_ssl_get_subject_dn in ngx_event_openssl.o
  _ngx_ssl_get_issuer_dn in ngx_event_openssl.o
  _ngx_ssl_get_subject_dn_legacy in ngx_event_openssl.o
  _ngx_ssl_get_issuer_dn_legacy in ngx_event_openssl.o
  _ngx_ssl_get_serial_number in ngx_event_openssl.o
  ...

"_SSL_get_rbio", referenced from:

  _ngx_ssl_info_callback in ngx_event_openssl.o

"_SSL_get_servername", referenced from:

  _ngx_ssl_get_server_name in ngx_event_openssl.o
  _ngx_http_ssl_servername in ngx_http_request.o

"_SSL_get_session", referenced from:

  _ngx_ssl_get0_session in ngx_event_openssl.o
  _ngx_ssl_get_session_id in ngx_event_openssl.o
  _ngx_http_process_request in ngx_http_request.o

"_SSL_get_shutdown", referenced from:

  _ngx_ssl_shutdown in ngx_event_openssl.o

"_SSL_get_verify_result", referenced from:

  _ngx_ssl_get_client_verify in ngx_event_openssl.o
  _ngx_http_process_request in ngx_http_request.o
  _ngx_http_upstream_ssl_handshake in ngx_http_upstream.o

"_SSL_get_version", referenced from:

  _ngx_ssl_get_protocol in ngx_event_openssl.o

"_SSL_get_wbio", referenced from:

  _ngx_ssl_info_callback in ngx_event_openssl.o

"_SSL_is_server", referenced from:

  _ngx_ssl_info_callback in ngx_event_openssl.o
  _ngx_ssl_handshake in ngx_event_openssl.o

"_SSL_library_init", referenced from:

  _ngx_ssl_init in ngx_event_openssl.o

"_SSL_load_client_CA_file", referenced from:

  _ngx_ssl_client_certificate in ngx_event_openssl.o

"_SSL_load_error_strings", referenced from:

  _ngx_ssl_init in ngx_event_openssl.o

"_SSL_new", referenced from:

  _ngx_ssl_create_connection in ngx_event_openssl.o

"_SSL_read", referenced from:

  _ngx_ssl_recv in ngx_event_openssl.o

"_SSL_select_next_proto", referenced from:

  _ngx_http_ssl_alpn_select in ngx_http_ssl_module.o

"_SSL_set_SSL_CTX", referenced from:

  _ngx_http_ssl_servername in ngx_http_request.o

"_SSL_set_accept_state", referenced from:

  _ngx_ssl_create_connection in ngx_event_openssl.o

"_SSL_set_connect_state", referenced from:

  _ngx_ssl_create_connection in ngx_event_openssl.o

"_SSL_set_ex_data", referenced from:

  _ngx_ssl_create_connection in ngx_event_openssl.o

"_SSL_set_fd", referenced from:

  _ngx_ssl_create_connection in ngx_event_openssl.o

"_SSL_set_quiet_shutdown", referenced from:

  _ngx_ssl_shutdown in ngx_event_openssl.o

"_SSL_set_session", referenced from:

  _ngx_ssl_set_session in ngx_event_openssl.o

"_SSL_set_shutdown", referenced from:

  _ngx_ssl_shutdown in ngx_event_openssl.o

"_SSL_set_verify", referenced from:

  _ngx_http_ssl_servername in ngx_http_request.o

"_SSL_set_verify_depth", referenced from:

  _ngx_http_ssl_servername in ngx_http_request.o

"_SSL_shutdown", referenced from:

  _ngx_ssl_shutdown in ngx_event_openssl.o

"_SSL_state", referenced from:

  _ngx_ssl_shutdown in ngx_event_openssl.o

"_SSL_use_PrivateKey", referenced from:

  _ngx_ssl_connection_certificate in ngx_event_openssl.o

"_SSL_use_certificate", referenced from:

  _ngx_ssl_connection_certificate in ngx_event_openssl.o

"_SSL_write", referenced from:

  _ngx_ssl_write in ngx_event_openssl.o

"_SSLeay_version", referenced from:

  _main in nginx.o

"_SSLv23_method", referenced from:

  _ngx_ssl_create in ngx_event_openssl.o

"_X509_LOOKUP_ctrl", referenced from:

  _ngx_ssl_crl in ngx_event_openssl.o

"_X509_LOOKUP_file", referenced from:

  _ngx_ssl_crl in ngx_event_openssl.o

"_X509_NAME_digest", referenced from:

  _ngx_ssl_session_cache in ngx_event_openssl.o

"_X509_NAME_oneline", referenced from:

  _ngx_ssl_get_subject_dn_legacy in ngx_event_openssl.o
  _ngx_ssl_get_issuer_dn_legacy in ngx_event_openssl.o

"_X509_NAME_print_ex", referenced from:

  _ngx_ssl_get_subject_dn in ngx_event_openssl.o
  _ngx_ssl_get_issuer_dn in ngx_event_openssl.o

"_X509_STORE_CTX_free", referenced from:

  _ngx_ssl_stapling in ngx_event_openssl_stapling.o

"_X509_STORE_CTX_get1_issuer", referenced from:

  _ngx_ssl_stapling in ngx_event_openssl_stapling.o

"_X509_STORE_CTX_init", referenced from:

  _ngx_ssl_stapling in ngx_event_openssl_stapling.o

"_X509_STORE_CTX_new", referenced from:

  _ngx_ssl_stapling in ngx_event_openssl_stapling.o

"_X509_STORE_add_lookup", referenced from:

  _ngx_ssl_crl in ngx_event_openssl.o

"_X509_STORE_set_flags", referenced from:

  _ngx_ssl_crl in ngx_event_openssl.o

"_X509_check_host", referenced from:

  _ngx_ssl_check_host in ngx_event_openssl.o

"_X509_check_issued", referenced from:

  _ngx_ssl_stapling in ngx_event_openssl_stapling.o

"_X509_digest", referenced from:

  _ngx_ssl_session_cache in ngx_event_openssl.o
  _ngx_ssl_get_fingerprint in ngx_event_openssl.o

"_X509_email_free", referenced from:

  _ngx_ssl_stapling in ngx_event_openssl_stapling.o

"_X509_free", referenced from:

  _ngx_ssl_certificate in ngx_event_openssl.o
  _ngx_ssl_load_certificate in ngx_event_openssl.o
  _ngx_ssl_connection_certificate in ngx_event_openssl.o
  _ngx_ssl_cleanup_ctx in ngx_event_openssl.o
  _ngx_ssl_check_host in ngx_event_openssl.o
  _ngx_ssl_get_raw_certificate in ngx_event_openssl.o
  _ngx_ssl_get_subject_dn in ngx_event_openssl.o
  ...

"_X509_get1_ocsp", referenced from:

  _ngx_ssl_stapling in ngx_event_openssl_stapling.o

"_X509_get_ex_data", referenced from:

  _ngx_ssl_session_cache in ngx_event_openssl.o
  _ngx_ssl_cleanup_ctx in ngx_event_openssl.o
  _ngx_ssl_stapling in ngx_event_openssl_stapling.o
  _ngx_ssl_certificate_status_callback in ngx_event_openssl_stapling.o
  _ngx_ssl_stapling_resolver in ngx_event_openssl_stapling.o

"_X509_get_ex_new_index", referenced from:

  _ngx_ssl_init in ngx_event_openssl.o

"_X509_get_issuer_name", referenced from:

  _ngx_ssl_get_issuer_dn in ngx_event_openssl.o
  _ngx_ssl_get_issuer_dn_legacy in ngx_event_openssl.o

"_X509_get_serialNumber", referenced from:

  _ngx_ssl_get_serial_number in ngx_event_openssl.o

"_X509_get_subject_name", referenced from:

  _ngx_ssl_get_subject_dn in ngx_event_openssl.o
  _ngx_ssl_get_subject_dn_legacy in ngx_event_openssl.o

"_X509_set_ex_data", referenced from:

  _ngx_ssl_certificate in ngx_event_openssl.o
  _ngx_ssl_stapling in ngx_event_openssl_stapling.o

"_X509_verify_cert_error_string", referenced from:

  _ngx_ssl_get_client_verify in ngx_event_openssl.o
  _ngx_http_process_request in ngx_http_request.o
  _ngx_http_upstream_ssl_handshake in ngx_http_upstream.o

"_d2i_OCSP_RESPONSE", referenced from:

  _ngx_ssl_stapling in ngx_event_openssl_stapling.o
  _ngx_ssl_stapling_ocsp_handler in ngx_event_openssl_stapling.o

"_d2i_SSL_SESSION", referenced from:

  _ngx_ssl_get_cached_session in ngx_event_openssl.o
  _ngx_http_upstream_set_round_robin_peer_session in ngx_http_upstream_round_robin.o

"_i2a_ASN1_INTEGER", referenced from:

  _ngx_ssl_get_serial_number in ngx_event_openssl.o

"_i2d_OCSP_REQUEST", referenced from:

  _ngx_ssl_certificate_status_callback in ngx_event_openssl_stapling.o

"_i2d_OCSP_RESPONSE", referenced from:

  _ngx_ssl_stapling in ngx_event_openssl_stapling.o

"_i2d_SSL_SESSION", referenced from:

  _ngx_ssl_new_session in ngx_event_openssl.o
  _ngx_http_upstream_save_round_robin_peer_session in ngx_http_upstream_round_robin.o

"_sk_new_null", referenced from:

  _ngx_ssl_load_certificate in ngx_event_openssl.o

"_sk_num", referenced from:

  _ngx_ssl_session_cache in ngx_event_openssl.o
  _ngx_ssl_stapling in ngx_event_openssl_stapling.o

"_sk_pop_free", referenced from:

  _ngx_ssl_certificate in ngx_event_openssl.o
  _ngx_ssl_load_certificate in ngx_event_openssl.o
  _ngx_ssl_connection_certificate in ngx_event_openssl.o

"_sk_push", referenced from:

  _ngx_ssl_load_certificate in ngx_event_openssl.o

"_sk_value", referenced from:

  _ngx_ssl_session_cache in ngx_event_openssl.o
  _ngx_ssl_stapling in ngx_event_openssl_stapling.o

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: * [objs/nginx] Error 1
make: * [install] Error 2

网上说是需要使用指定--with-openssl=/usr/local/openssl-1.0.2s 但是没有起到作用

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

_蜘蛛 2022-09-18 20:22:32

1.第一个是 pcre 没有找到
执行 : yum install pcre* 或者 yum -y install pcre pcre-devel
2.ssh如下:
执行 : yum install openssl* 或者 yum -y install openssl openssl-devel
3.nginx 部分配置如下
--with-pcre --with-http_ssl_module
4.由于不知道你安装的 nginx 是什么版本的,不同的版本的部分配置可能已经弃用,或者对于安装的扩展不兼容.
建议安装最新稳定版,或者版本差异不是很大的!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文