Opened 18 months ago

Closed 11 months ago

Last modified 6 months ago

#66018 closed defect (fixed)

serf1 fails to build with default compiler gcc 4.2

Reported by: rmottola (Riccardo) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: leopard gcc legacy Cc:
Port: serf1

Description

on Leopard 10.5 serf1 fails to build with the standard compiler (apple gcc 4.2) with what I think are link errors.

When forcing macports gcc 6 compiler, build completes.

Attachments (1)

serf.log (115.6 KB) - added by rmottola (Riccardo) 18 months ago.
standard build gcc 4.2

Download all attachments as: .zip

Change History (13)

Changed 18 months ago by rmottola (Riccardo)

Attachment: serf.log added

standard build gcc 4.2

comment:1 Changed 18 months ago by barracuda156

Also fails on 10.6.8 Rosetta:

ld: warning: in /opt/local/libexec/openssl11/lib/libssl.dylib, file was built for ppc which is not the architecture being linked (x86_64)
ld: warning: in /opt/local/libexec/openssl11/lib/libcrypto.dylib, file was built for ppc which is not the architecture being linked (x86_64)
ld: warning: in /opt/local/lib/libz.dylib, file was built for ppc7400 which is not the architecture being linked (x86_64)
ld: warning: in /opt/local/lib/libapr-1.dylib, file was built for ppc7400 which is not the architecture being linked (x86_64)
ld: warning: in /opt/local/lib/libaprutil-1.dylib, file was built for ppc7400 which is not the architecture being linked (x86_64)
ld: warning: in /opt/local/lib/db48/libdb-4.8.dylib, file was built for ppc7400 which is not the architecture being linked (x86_64)
ld: warning: in /opt/local/lib/libexpat.dylib, file was built for ppc7400 which is not the architecture being linked (x86_64)
ld: warning: in /opt/local/lib/libiconv.dylib, file was built for ppc7400 which is not the architecture being linked (x86_64)
Undefined symbols:
  "_SSL_get_ex_data", referenced from:
      _validate_server_certificate in ssl_buckets.os
      _ssl_need_client_cert in ssl_buckets.os
  "_apr_file_read", referenced from:
      _file_reader in file_buckets.os
      _bio_file_read in ssl_buckets.os
  "_SSL_get_error", referenced from:
      _ssl_decrypt in ssl_buckets.os
      _ssl_decrypt in ssl_buckets.os
      _ssl_encrypt in ssl_buckets.os
  "_SSL_CTX_set_client_cert_cb", referenced from:
      _serf_bucket_ssl_create in ssl_buckets.os
  "_BIO_new", referenced from:
      _serf_ssl_cert_certificate in ssl_buckets.os
      _serf_bucket_ssl_create in ssl_buckets.os
      _ssl_need_client_cert in ssl_buckets.os
  "_d2i_PKCS12_bio", referenced from:
      _ssl_need_client_cert in ssl_buckets.os
  "_BIO_meth_set_read", referenced from:
      _serf_bucket_ssl_create in ssl_buckets.os
      _ssl_need_client_cert in ssl_buckets.os
  "_EVP_sha1", referenced from:
      _serf_ssl_cert_certificate in ssl_buckets.os
  "_OPENSSL_sk_pop_free", referenced from:
      _get_subject_alt_names in ssl_buckets.os
  "_X509_getm_notBefore", referenced from:
      _serf_ssl_cert_certificate in ssl_buckets.os
      _validate_server_certificate in ssl_buckets.os
  "_inflateInit2_", referenced from:
      _serf_deflate_read in deflate_buckets.os
  "_X509_STORE_CTX_get_ex_data", referenced from:
      _validate_server_certificate in ssl_buckets.os
  "_apr_uri_parse", referenced from:
      _serf_connection_create2 in outgoing.os
      _serf__setup_request_digest_auth in auth_digest.os
  "_apr_pool_destroy", referenced from:
      _serf__process_listener in incoming.os
      _destroy_request in outgoing.os
      _serf__process_connection in outgoing.os
      _serf__process_connection in outgoing.os
      _serf__process_connection in outgoing.os
      _handle_response in ssltunnel.os
      _validate_server_certificate in ssl_buckets.os
      _validate_server_certificate in ssl_buckets.os
      _serf__handle_basic_auth in auth_basic.os
      _serf__handle_basic_auth in auth_basic.os
      _serf__handle_digest_auth in auth_digest.os
      _serf__handle_digest_auth in auth_digest.os
  "_BIO_clear_flags", referenced from:
      _bio_bucket_write in ssl_buckets.os
      _bio_file_write in ssl_buckets.os
      _bio_bucket_read in ssl_buckets.os
  "_SSL_CTX_set_verify", referenced from:
      _serf_bucket_ssl_create in ssl_buckets.os
  "_SSL_set_connect_state", referenced from:
      _serf_bucket_ssl_create in ssl_buckets.os
  "_apr_time_now", referenced from:
      _prepare_conn_streams in outgoing.os
      _serf__open_connections in outgoing.os
      _log_time in buckets.os
  "_SSL_set_bio", referenced from:
      _serf_bucket_ssl_create in ssl_buckets.os
  "_PKCS12_parse", referenced from:
      _ssl_need_client_cert in ssl_buckets.os
      _ssl_need_client_cert in ssl_buckets.os
  "_SSL_ctrl", referenced from:
      _serf_ssl_set_hostname in ssl_buckets.os
  "_apr_pool_userdata_setn", referenced from:
      _ssl_need_client_cert in ssl_buckets.os
      _ssl_need_client_cert in ssl_buckets.os
      _ssl_need_client_cert in ssl_buckets.os
  "_OPENSSL_sk_num", referenced from:
      _get_subject_alt_names in ssl_buckets.os
      _validate_server_certificate in ssl_buckets.os
  "_apr_allocator_destroy", referenced from:
      _allocator_cleanup in allocator.os
  "_BIO_set_flags", referenced from:
      _bio_bucket_read in ssl_buckets.os
  "_GENERAL_NAME_free", referenced from:
      _get_subject_alt_names in ssl_buckets.os
  "_apr_uuid_get", referenced from:
      _serf__setup_request_digest_auth in auth_digest.os
  "_X509_STORE_CTX_get_current_cert", referenced from:
      _validate_server_certificate in ssl_buckets.os
  "_apr_atomic_cas32", referenced from:
      _serf_bucket_ssl_create in ssl_buckets.os
      _serf_bucket_ssl_create in ssl_buckets.os
      _serf_bucket_ssl_create in ssl_buckets.os
  "_inflateEnd", referenced from:
      _serf_deflate_destroy_and_data in deflate_buckets.os
      _serf_deflate_read in deflate_buckets.os
  "_BIO_meth_set_destroy", referenced from:
      _serf_bucket_ssl_create in ssl_buckets.os
      _ssl_need_client_cert in ssl_buckets.os
  "_apr_pool_allocator_get", referenced from:
      _serf_bucket_allocator_create in allocator.os
  "_SSL_get_shutdown", referenced from:
      _ssl_decrypt in ssl_buckets.os
  "_BIO_meth_set_ctrl", referenced from:
      _serf_bucket_ssl_create in ssl_buckets.os
      _ssl_need_client_cert in ssl_buckets.os
  "_ASN1_TIME_print", referenced from:
      _serf_ssl_cert_certificate in ssl_buckets.os
      _serf_ssl_cert_certificate in ssl_buckets.os
  "_apr_mmap_create", referenced from:
      _serf_bucket_file_create in file_buckets.os
  "_apr_base64_encode_len", referenced from:
      _serf_ssl_cert_export in ssl_buckets.os
      _serf__encode_auth_header in auth.os
  "_OPENSSL_init_ssl", referenced from:
      _serf_bucket_ssl_create in ssl_buckets.os
      _serf_bucket_ssl_create in ssl_buckets.os
  "_apr_socket_opt_set", referenced from:
      _serf_listener_create in incoming.os
      _serf__open_connections in outgoing.os
  "_apr_pool_clear", referenced from:
      _serf__process_connection in outgoing.os
      _serf__process_connection in outgoing.os
      _serf__open_connections in outgoing.os
  "_X509_get_ext_d2i", referenced from:
      _get_subject_alt_names in ssl_buckets.os
  "_apr_strtok", referenced from:
      _serf__validate_response_digest_auth in auth_digest.os
      _serf__handle_digest_auth in auth_digest.os
  "_inflate", referenced from:
      _serf_deflate_read in deflate_buckets.os
  "_apr_socket_recv", referenced from:
      _socket_reader in socket_buckets.os
  "_apr_pool_cleanup_register", referenced from:
      _setup_request in outgoing.os
      _serf_connection_create in outgoing.os
      _serf__open_connections in outgoing.os
      _serf_bucket_allocator_create in allocator.os
  "_apr_psprintf", referenced from:
      _serf__ssltunnel_connect in ssltunnel.os
      _serf__construct_realm in auth.os
      _serf__construct_realm in auth.os
      _build_digest_ha2 in auth_digest.os
      _serf__validate_response_digest_auth in auth_digest.os
      _serf__setup_request_digest_auth in auth_digest.os
      _serf__setup_request_digest_auth in auth_digest.os
      _serf__setup_request_digest_auth in auth_digest.os
      _serf__setup_request_digest_auth in auth_digest.os
      _serf__setup_request_digest_auth in auth_digest.os
      _serf__setup_request_digest_auth in auth_digest.os
      _serf__setup_request_digest_auth in auth_digest.os
      _serf__handle_digest_auth in auth_digest.os
  "_SSL_CTX_get_cert_store", referenced from:
      _serf_ssl_trust_cert in ssl_buckets.os
      _serf_ssl_use_default_certificates in ssl_buckets.os
  "_OPENSSL_sk_value", referenced from:
      _get_subject_alt_names in ssl_buckets.os
      _validate_server_certificate in ssl_buckets.os
  "_X509_get_issuer_name", referenced from:
      _serf_ssl_cert_issuer in ssl_buckets.os
  "_OpenSSL_version_num", referenced from:
      _serf_bucket_ssl_create in ssl_buckets.os
  "_SSL_CTX_new", referenced from:
      _serf_bucket_ssl_create in ssl_buckets.os
  "_apr_hash_set", referenced from:
      _serf_ssl_cert_certificate in ssl_buckets.os
      _serf_ssl_cert_certificate in ssl_buckets.os
      _serf_ssl_cert_certificate in ssl_buckets.os
      _serf_ssl_cert_certificate in ssl_buckets.os
      _convert_X509_NAME_to_table in ssl_buckets.os
      _convert_X509_NAME_to_table in ssl_buckets.os
      _convert_X509_NAME_to_table in ssl_buckets.os
      _convert_X509_NAME_to_table in ssl_buckets.os
      _convert_X509_NAME_to_table in ssl_buckets.os
      _convert_X509_NAME_to_table in ssl_buckets.os
      _convert_X509_NAME_to_table in ssl_buckets.os
      _serf__get_authn_info_for_server in auth.os
      _store_header_in_dict in auth.os
  "_apr_file_gets", referenced from:
      _bio_file_gets in ssl_buckets.os
  "_ERR_get_error", referenced from:
      _ssl_need_client_cert in ssl_buckets.os
  "_apr_date_checkmask", referenced from:
      _wait_for_body in bwtp_buckets.os
      _run_machine in response_buckets.os
  "_BIO_free", referenced from:
      _serf_ssl_cert_certificate in ssl_buckets.os
  "_apr_allocator_create", referenced from:
      _serf_bucket_allocator_create in allocator.os
  "_apr_pstrcat", referenced from:
      _serf_bucket_request_set_root in request_buckets.os
      _serf__handle_basic_auth in auth_basic.os
  "_apr_palloc", referenced from:
      _serf_context_create_ex in context.os
      _serf_context_create_ex in context.os
      _serf_incoming_create in incoming.os
      _serf_listener_create in incoming.os
      _serf_connection_create in outgoing.os
      _serf__ssltunnel_connect in ssltunnel.os
      _serf_bucket_allocator_create in allocator.os
      _serf_ssl_cert_export in ssl_buckets.os
      _serf_ssl_cert_export in ssl_buckets.os
      _pstrdup_escape_nul_bytes in ssl_buckets.os
      _validate_server_certificate in ssl_buckets.os
      _validate_server_certificate in ssl_buckets.os
      _validate_server_certificate in ssl_buckets.os
      _validate_server_certificate in ssl_buckets.os
      _validate_server_certificate in ssl_buckets.os
      _serf_ssl_load_cert_file in ssl_buckets.os
      _serf__get_authn_info_for_server in auth.os
      _serf__encode_auth_header in auth.os
      _serf__init_basic_connection in auth_basic.os
      _hex_encode in auth_digest.os
      _serf__setup_request_digest_auth in auth_digest.os
      _serf__init_digest_connection in auth_digest.os
  "_BIO_meth_set_gets", referenced from:
      _ssl_need_client_cert in ssl_buckets.os
  "_BIO_meth_set_create", referenced from:
      _serf_bucket_ssl_create in ssl_buckets.os
      _ssl_need_client_cert in ssl_buckets.os
  "_SSL_get_ex_data_X509_STORE_CTX_idx", referenced from:
      _validate_server_certificate in ssl_buckets.os
  "_SSL_clear_options", referenced from:
      _serf_ssl_use_compression in ssl_buckets.os
  "_SSL_write", referenced from:
      _ssl_encrypt in ssl_buckets.os
  "_SSL_free", referenced from:
      _serf_ssl_destroy_and_data in ssl_buckets.os
  "_apr_sockaddr_info_get", referenced from:
      _serf_listener_create in incoming.os
      _serf_connection_create2 in outgoing.os
  "_SSL_set_options", referenced from:
      _serf_ssl_use_compression in ssl_buckets.os
  "_SSL_set_ex_data", referenced from:
      _serf_bucket_ssl_create in ssl_buckets.os
  "_apr_socket_connect", referenced from:
      _serf__open_connections in outgoing.os
  "_apr_pollset_create", referenced from:
      _serf_context_create_ex in context.os
  "_apr_snprintf", referenced from:
      _serialize_data in bwtp_buckets.os
      _create_chunk in chunk_buckets.os
      _serf_response_full_become_aggregate in response_buckets.os
  "_apr_socket_addr_get", referenced from:
      _serf__log_skt in buckets.os
      _serf__log_skt in buckets.os
  "_apr_strtoi64", referenced from:
      _wait_for_body in bwtp_buckets.os
      _wait_for_body in bwtp_buckets.os
      _serf_dechunk_read in dechunk_buckets.os
      _run_machine in response_buckets.os
      _run_machine in response_buckets.os
  "_BIO_get_data", referenced from:
      _bio_get_data in ssl_buckets.os
  "_apr_socket_create", referenced from:
      _serf_listener_create in incoming.os
      _serf__open_connections in outgoing.os
  "_X509_digest", referenced from:
      _serf_ssl_cert_certificate in ssl_buckets.os
  "_apr_pollset_add", referenced from:
      _pollset_add in context.os
  "_apr_time_exp_lt", referenced from:
      _log_time in buckets.os
  "_X509_STORE_CTX_get_error", referenced from:
      _validate_server_certificate in ssl_buckets.os
  "_apr_array_make", referenced from:
      _serf_context_create_ex in context.os
      _get_subject_alt_names in ssl_buckets.os
  "_apr_pstrdup", referenced from:
      _pstrdup_escape_nul_bytes in ssl_buckets.os
      _serf_ssl_cert_certificate in ssl_buckets.os
      _serf_ssl_cert_certificate in ssl_buckets.os
      _serf_ssl_cert_certificate in ssl_buckets.os
      _ssl_need_client_cert in ssl_buckets.os
      _ssl_need_client_cert in ssl_buckets.os
      _ssl_need_client_cert in ssl_buckets.os
      _serf__get_authn_info_for_server in auth.os
      _store_header_in_dict in auth.os
      _serf__handle_basic_auth in auth_basic.os
      _serf__validate_response_digest_auth in auth_digest.os
      _serf__handle_digest_auth in auth_digest.os
      _serf__handle_digest_auth in auth_digest.os
      _serf__handle_digest_auth in auth_digest.os
      _serf__handle_digest_auth in auth_digest.os
      _serf__handle_digest_auth in auth_digest.os
      _serf__handle_digest_auth in auth_digest.os
      _serf__handle_digest_auth in auth_digest.os
  "_apr_uuid_format", referenced from:
      _serf__setup_request_digest_auth in auth_digest.os
  "_apr_socket_listen", referenced from:
      _serf_listener_create in incoming.os
  "_apr_stat", referenced from:
      _serf_bucket_file_create in file_buckets.os
  "_BIO_set_shutdown", referenced from:
      _bio_bucket_create in ssl_buckets.os
  "_X509_NAME_get_text_by_NID", referenced from:
      _convert_X509_NAME_to_table in ssl_buckets.os
      _convert_X509_NAME_to_table in ssl_buckets.os
      _convert_X509_NAME_to_table in ssl_buckets.os
      _convert_X509_NAME_to_table in ssl_buckets.os
      _convert_X509_NAME_to_table in ssl_buckets.os
      _convert_X509_NAME_to_table in ssl_buckets.os
      _convert_X509_NAME_to_table in ssl_buckets.os
      _validate_server_certificate in ssl_buckets.os
  "_PKCS12_free", referenced from:
      _ssl_need_client_cert in ssl_buckets.os
      _ssl_need_client_cert in ssl_buckets.os
      _ssl_need_client_cert in ssl_buckets.os
      _ssl_need_client_cert in ssl_buckets.os
  "_apr_base64_encode", referenced from:
      _serf_ssl_cert_export in ssl_buckets.os
      _serf__encode_auth_header in auth.os
  "_X509_cmp_current_time", referenced from:
      _validate_server_certificate in ssl_buckets.os
      _validate_server_certificate in ssl_buckets.os
  "_BIO_set_data", referenced from:
      _bio_bucket_create in ssl_buckets.os
      _bio_set_data in ssl_buckets.os
  "_apr_pollset_remove", referenced from:
      _pollset_rm in context.os
  "_X509_get_subject_name", referenced from:
      _serf_ssl_cert_subject in ssl_buckets.os
      _validate_server_certificate in ssl_buckets.os
  "_apr_file_close", referenced from:
      _ssl_need_client_cert in ssl_buckets.os
  "_crc32", referenced from:
      _serf_deflate_read in deflate_buckets.os
      _serf_deflate_read in deflate_buckets.os
  "_SSL_new", referenced from:
      _serf_bucket_ssl_create in ssl_buckets.os
  "_apr_allocator_free", referenced from:
      _serf_bucket_mem_free in allocator.os
      _allocator_cleanup in allocator.os
  "_TLS_client_method", referenced from:
      _serf_bucket_ssl_create in ssl_buckets.os
  "_apr_socket_sendv", referenced from:
      _socket_writev in outgoing.os
  "_apr_file_write", referenced from:
      _bio_file_write in ssl_buckets.os
  "_apr_pollset_poll", referenced from:
      _serf_context_run in context.os
  "_ERR_clear_error", referenced from:
      _ssl_need_client_cert in ssl_buckets.os
      _serf_ssl_set_hostname in ssl_buckets.os
  "_X509_getm_notAfter", referenced from:
      _serf_ssl_cert_certificate in ssl_buckets.os
      _validate_server_certificate in ssl_buckets.os
  "_PEM_read_X509", referenced from:
      _serf_ssl_load_cert_file in ssl_buckets.os
  "_apr_md5", referenced from:
      _build_digest_ha2 in auth_digest.os
      _serf__validate_response_digest_auth in auth_digest.os
      _serf__setup_request_digest_auth in auth_digest.os
      _serf__handle_digest_auth in auth_digest.os
  "_apr_hash_make", referenced from:
      _serf_context_create_ex in context.os
      _serf_ssl_cert_certificate in ssl_buckets.os
      _convert_X509_NAME_to_table in ssl_buckets.os
      _serf__handle_auth_response in auth.os
  "_X509_STORE_CTX_get0_chain", referenced from:
      _validate_server_certificate in ssl_buckets.os
  "_apr_allocator_alloc", referenced from:
      _serf_bucket_mem_alloc in allocator.os
      _serf_bucket_mem_alloc in allocator.os
  "_apr_array_push", referenced from:
      _serf_connection_create in outgoing.os
      _get_subject_alt_names in ssl_buckets.os
  "_BIO_s_mem", referenced from:
      _serf_ssl_cert_certificate in ssl_buckets.os
  "_BIO_meth_free", referenced from:
      _bio_meth_free in ssl_buckets.os
  "_apr_file_name_get", referenced from:
      _serf_bucket_file_create in file_buckets.os
  "_apr_pstrmemdup", referenced from:
      _store_header_in_dict in auth.os
  "_apr_sockaddr_ip_getbuf", referenced from:
      _serf__log_skt in buckets.os
      _serf__log_skt in buckets.os
  "_X509_STORE_add_cert", referenced from:
      _serf_ssl_trust_cert in ssl_buckets.os
  "_apr_socket_timeout_set", referenced from:
      _serf__open_connections in outgoing.os
  "_apr_pool_userdata_get", referenced from:
      _serf_ssl_client_cert_password_set in ssl_buckets.os
      _serf_ssl_client_cert_provider_set in ssl_buckets.os
  "_apr_sleep", referenced from:
      _serf_bucket_ssl_create in ssl_buckets.os
  "_BIO_set_init", referenced from:
      _bio_bucket_create in ssl_buckets.os
  "_apr_os_sock_get", referenced from:
      _serf__process_connection in outgoing.os
  "_i2d_X509", referenced from:
      _serf_ssl_cert_export in ssl_buckets.os
      _serf_ssl_cert_export in ssl_buckets.os
  "_apr_socket_bind", referenced from:
      _serf_listener_create in incoming.os
  "_BIO_read", referenced from:
      _serf_ssl_cert_certificate in ssl_buckets.os
      _serf_ssl_cert_certificate in ssl_buckets.os
  "_SSL_CTX_set_options", referenced from:
      _serf_bucket_ssl_create in ssl_buckets.os
      _serf_bucket_ssl_create in ssl_buckets.os
      _serf_bucket_ssl_create in ssl_buckets.os
  "_SSL_CTX_free", referenced from:
      _serf_ssl_destroy_and_data in ssl_buckets.os
  "_apr_pool_cleanup_null", referenced from:
      _serf_connection_create in outgoing.os
      _serf_bucket_allocator_create in allocator.os
      _ssl_need_client_cert in ssl_buckets.os
      _ssl_need_client_cert in ssl_buckets.os
      _ssl_need_client_cert in ssl_buckets.os
  "_apr_file_open", referenced from:
      _ssl_need_client_cert in ssl_buckets.os
  "_apr_mmap_offset", referenced from:
      _serf_mmap_read in mmap_buckets.os
      _serf_mmap_readline in mmap_buckets.os
  "_apr_socket_close", referenced from:
      _reset_connection in outgoing.os
      _clean_skt in outgoing.os
      _serf_connection_close in outgoing.os
  "_BIO_meth_new", referenced from:
      _serf_bucket_ssl_create in ssl_buckets.os
      _ssl_need_client_cert in ssl_buckets.os
  "_X509_STORE_CTX_get_error_depth", referenced from:
      _validate_server_certificate in ssl_buckets.os
  "_BIO_meth_set_write", referenced from:
      _serf_bucket_ssl_create in ssl_buckets.os
      _ssl_need_client_cert in ssl_buckets.os
  "_SSL_read", referenced from:
      _ssl_decrypt in ssl_buckets.os
      _ssl_decrypt in ssl_buckets.os
  "_BIO_test_flags", referenced from:
      _bio_bucket_write in ssl_buckets.os
      _bio_bucket_write in ssl_buckets.os
      _bio_bucket_write in ssl_buckets.os
      _bio_bucket_write in ssl_buckets.os
      _ssl_decrypt in ssl_buckets.os
      _ssl_decrypt in ssl_buckets.os
      _bio_bucket_read in ssl_buckets.os
      _bio_bucket_read in ssl_buckets.os
      _bio_bucket_read in ssl_buckets.os
      _bio_bucket_read in ssl_buckets.os
      _ssl_encrypt in ssl_buckets.os
      _ssl_encrypt in ssl_buckets.os
      _ssl_encrypt in ssl_buckets.os
      _ssl_encrypt in ssl_buckets.os
      _ssl_encrypt in ssl_buckets.os
      _ssl_encrypt in ssl_buckets.os
      _ssl_encrypt in ssl_buckets.os
      _ssl_encrypt in ssl_buckets.os
      _ssl_encrypt in ssl_buckets.os
      _ssl_encrypt in ssl_buckets.os
      _ssl_encrypt in ssl_buckets.os
      _ssl_encrypt in ssl_buckets.os
      _ssl_encrypt in ssl_buckets.os
  "_apr_cpystrn", referenced from:
      _serf__encode_auth_header in auth.os
  "_apr_uri_unparse", referenced from:
      _serf_connection_create2 in outgoing.os
  "_apr_hash_get", referenced from:
      _serf__get_authn_info_for_server in auth.os
      _serf__handle_auth_response in auth.os
  "_apr_uri_port_of_scheme", referenced from:
      _serf_connection_create2 in outgoing.os
      _serf_connection_create2 in outgoing.os
  "_X509_STORE_set_default_paths", referenced from:
      _serf_ssl_use_default_certificates in ssl_buckets.os
  "_OPENSSL_init_crypto", referenced from:
      _serf_bucket_ssl_create in ssl_buckets.os
      _serf_bucket_ssl_create in ssl_buckets.os
  "_apr_pool_create_ex", referenced from:
      _serf_listener_create in incoming.os
      _serf__process_listener in incoming.os
      _setup_request in outgoing.os
      _serf_connection_create in outgoing.os
      _serf__process_connection in outgoing.os
      _serf__ssltunnel_connect in ssltunnel.os
      _validate_server_certificate in ssl_buckets.os
      _validate_server_certificate in ssl_buckets.os
      _serf__handle_basic_auth in auth_basic.os
      _serf__handle_digest_auth in auth_digest.os
  "_apr_socket_accept", referenced from:
      _serf__process_listener in incoming.os
ld: symbol(s) not found
collect2: ld returned 1 exit status
scons: *** [libserf-1.1.3.9.dylib] Error 1
scons: building terminated because of errors.

comment:2 Changed 18 months ago by kencu (Ken)

so:

/opt/local/libexec/openssl11/lib/libssl.dylib, file was built for ppc which is not the architecture being linked (x86_64)

what would you guess might be the problem here?

comment:3 Changed 18 months ago by kencu (Ken)

Here's another hint:

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_serf1/serf1/work/compwrap/cc/usr/bin/gcc-4.2 -o buckets/file_buckets.o -c -std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wall -O2 -DNDEBUG -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/opt/local/libexec/openssl11/include -I. -I/opt/local/include/apr-1 -I/opt/local/include buckets/file_buckets.c

what important thing is missing on these build lines?

comment:4 Changed 18 months ago by rmottola (Riccardo)

There is some architecture specifier missing, I guess, since the wrong arch is built.

In my build log the error is not so explicit

:info:build ld warning: in /opt/local/libexec/openssl11/lib/libssl.dylib, file is not of required architecture
:info:build ld warning: in /opt/local/libexec/openssl11/lib/libcrypto.dylib, file is not of required architecture

still points to an arch mismatch, maybe 32bit vs 64bit. I'm building on a 64bit Leopard system, perhaps a rare setup.

comment:5 Changed 18 months ago by kencu (Ken)

Hey, right on!

As step 1, we will need to get some arch flags onto the build line to force the compiler to build in the arch we want...

This is one of those no-configure makefile only ports, and to make it even harder, it uses scons...

Changing the override block in the portfile to this worked:

platform darwin {
    # Workaround scons buggy lack of MACOSX_DEPLOYMENT_TARGET propagation:
    build.args-append   CC="MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target} ${configure.cc}" \
                        CFLAGS=" -arch ${configure.build_arch}"
}

Have to sort out what to do about universal builds though. Perhaps one of you two might help with that?

comment:6 in reply to:  5 Changed 18 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to kencu:

CFLAGS=" -arch ${configure.build_arch}"

You probably don't want to specify just these CFLAGS. You probably want to specify all of the CFLAGS that MacPorts wants the port to specify. They're in the ${configure.cflags} variable. -arch flags are not included in that variable; to add those, add [get_canonical_archflags cc]. For get_canonical_archflags to do universal builds properly, a universal variant (at least an empty one) needs to be stated prior to that line (variant universal {}). The same probably applies to CXXFLAGS (if this port contains C++ parts) and LDFLAGS. The makefile portgroup, which this portfile already includes, is supposed to help you do all this more automatically; the fact that it's not working suggests a bad interaction between the makefile portgroup and the port's build system that should probably be solved by either specifying some makefile portgroup variables properly or patching the build system.

comment:7 Changed 18 months ago by kencu (Ken)

It is fruitful looking through the commit history on this port to see what it looked like before the Makefile PG was added... looks like people been down this path before. I dislike SCONS so much that I'll leave this for other folks to do, though.

comment:8 Changed 14 months ago by rmottola (Riccardo)

I am stuck in serf1 again, but this time first by the apr depedency.. is this a malediction ?

comment:9 in reply to:  8 Changed 11 months ago by barracuda156

Replying to rmottola:

I am stuck in serf1 again, but this time first by the apr depedency.. is this a malediction ?

Ah, you refer to #67101 Yeah…

comment:11 Changed 11 months ago by mascguy (Christopher Nielsen)

Resolution: fixed
Status: newclosed

comment:12 Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)

This problem affected everybody, not just 10.6 when building for ppc. A general fix was needed. The issue was re-filed as #68570 and will be fixed properly there and the fix from this ticket will be reverted.

Note: See TracTickets for help on using tickets.