New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #23254 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

Apache2 errors on Make when installing PHP52

Reported by: tom.mccaul@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.99
Keywords: Cc:
Port: apache2

Description (last modified by jmr@…) (diff)

I have tried uninstalling all ports removing all port files and re-installing but i keep on getting this same error, Apache always failed to build, i'm running an intel mbp.

port -d install php52

--->  Computing dependencies for php52
--->  Building apache2
Making all in srclib
Making all in os
Making all in unix
make[3]: Nothing to be done for `local-all'.
Making all in server
Making all in mpm
Making all in prefork
make[4]: Nothing to be done for `local-all'.
Making all in modules
Making all in aaa
Making all in cache
Making all in database
Making all in debug
Making all in filters
Making all in loggers
Making all in metadata
Making all in proxy
Making all in ssl
Making all in http
make[3]: Nothing to be done for `local-all'.
Making all in dav/main
Making all in generators
Making all in dav/fs
Making all in mappers
make[3]: Nothing to be done for `local-all'.
Making all in support
/opt/local/share/apr-1/build/libtool --silent --mode=link /usr/bin/gcc-4.2 -I/opt/local/include  -pipe -O2 -arch x86_64   -L/opt/local/lib/db46 -L/usr/local/lib  -L/opt/local/lib -arch x86_64 -o ab  ab.lo   -L/opt/local/lib -lpcre /opt/local/lib/libaprutil-1.la -ldb-4.6 -lexpat -liconv /opt/local/lib/libapr-1.la -lpthread -lssl -lcrypto -lpthread
ld: warning: in /usr/local/lib/libexpat.dylib, file is not of required architecture
ld: warning: in /usr/local/lib/libiconv.dylib, file is not of required architecture
ld: warning: in /usr/local/lib/libssl.dylib, file is not of required architecture
ld: warning: in /usr/local/lib/libcrypto.dylib, file is not of required architecture
Undefined symbols:
  "_SSL_get_error", referenced from:
      _ssl_proceed_handshake in ab.o
      _test in ab.o
  "_SSLv2_client_method", referenced from:
      _main in ab.o
  "_sk_value", referenced from:
      _ssl_proceed_handshake in ab.o
  "_SSL_set_connect_state", referenced from:
      _start_connect in ab.o
  "_SSL_CIPHER_get_version", referenced from:
      _ssl_proceed_handshake in ab.o
      _ssl_proceed_handshake in ab.o
  "_SSL_set_bio", referenced from:
      _start_connect in ab.o
  "_BIO_new_socket", referenced from:
      _start_connect in ab.o
  "_BIO_set_callback_arg", referenced from:
      _start_connect in ab.o
  "_RAND_seed", referenced from:
      _start_connect in ab.o
      _start_connect in ab.o
      _start_connect in ab.o
  "_CRYPTO_set_mem_functions", referenced from:
      _main in ab.o
  "_SSL_get_session", referenced from:
      _ssl_proceed_handshake in ab.o
  "_SSL_CIPHER_get_bits", referenced from:
      _ssl_proceed_handshake in ab.o
      _ssl_proceed_handshake in ab.o
  "_BIO_dump", referenced from:
      _ssl_print_cb in ab.o
  "_SSL_state", referenced from:
      _ssl_state_cb in ab.o
      _test in ab.o
  "_BIO_get_callback_arg", referenced from:
      _ssl_print_cb in ab.o
  "_SSL_SESSION_print", referenced from:
      _ssl_proceed_handshake in ab.o
  "_X509_get_issuer_name", referenced from:
      _ssl_print_cert_info in ab.o
  "_X509_get_ext_count", referenced from:
      _ssl_print_cert_info in ab.o
  "_SSL_shutdown", referenced from:
      _close_connection in ab.o
  "_SSL_CTX_new", referenced from:
      _main in ab.o
  "_SSLv23_client_method", referenced from:
      _main in ab.o
      _main in ab.o
  "_SSLv3_client_method", referenced from:
      _main in ab.o
  "_SSL_do_handshake", referenced from:
      _ssl_proceed_handshake in ab.o
  "_SSL_write", referenced from:
      _write_request in ab.o
  "_SSL_free", referenced from:
      _close_connection in ab.o
  "_ERR_print_errors", referenced from:
      _write_request in ab.o
      _ssl_proceed_handshake in ab.o
      _start_connect in ab.o
      _test in ab.o
      _main in ab.o
  "_ASN1_INTEGER_get", referenced from:
      _ssl_print_cert_info in ab.o
  "_sk_num", referenced from:
      _ssl_proceed_handshake in ab.o
  "_SSL_get_peer_cert_chain", referenced from:
      _ssl_proceed_handshake in ab.o
  "_SSL_load_error_strings", referenced from:
      _main in ab.o
  "_SSL_CTX_ctrl", referenced from:
      _main in ab.o
  "_X509_get_subject_name", referenced from:
      _ssl_print_cert_info in ab.o
  "_SSL_library_init", referenced from:
      _main in ab.o
  "_SSL_new", referenced from:
      _start_connect in ab.o
  "_SSL_get_current_cipher", referenced from:
      _ssl_proceed_handshake in ab.o
      _ssl_proceed_handshake in ab.o
  "_SSL_state_string_long", referenced from:
      _ssl_state_cb in ab.o
      _ssl_state_cb in ab.o
  "_SSL_alert_desc_string_long", referenced from:
      _ssl_state_cb in ab.o
  "_ERR_print_errors_fp", referenced from:
      _main in ab.o
  "_SSL_alert_type_string_long", referenced from:
      _ssl_state_cb in ab.o
  "_TLSv1_client_method", referenced from:
      _main in ab.o
  "_X509_NAME_oneline", referenced from:
      _ssl_print_cert_info in ab.o
      _ssl_print_cert_info in ab.o
  "_SSL_CIPHER_get_name", referenced from:
      _ssl_proceed_handshake in ab.o
      _ssl_proceed_handshake in ab.o
  "_X509_get_pubkey", referenced from:
      _ssl_print_cert_info in ab.o
      _ssl_proceed_handshake in ab.o
  "_EVP_PKEY_bits", referenced from:
      _ssl_print_cert_info in ab.o
      _ssl_proceed_handshake in ab.o
  "_X509_free", referenced from:
      _ssl_proceed_handshake in ab.o
      _ssl_proceed_handshake in ab.o
  "_BIO_set_callback", referenced from:
      _start_connect in ab.o
  "_BIO_printf", referenced from:
      _ssl_print_cb in ab.o
      _ssl_print_cert_info in ab.o
      _ssl_print_cert_info in ab.o
      _ssl_print_cert_info in ab.o
      _ssl_print_cert_info in ab.o
      _ssl_print_cert_info in ab.o
      _ssl_print_cert_info in ab.o
      _ssl_print_cert_info in ab.o
      _ssl_print_cert_info in ab.o
      _ssl_print_cert_info in ab.o
      _write_request in ab.o
      _ssl_proceed_handshake in ab.o
      _ssl_proceed_handshake in ab.o
      _ssl_proceed_handshake in ab.o
      _ssl_proceed_handshake in ab.o
      _ssl_proceed_handshake in ab.o
      _ssl_proceed_handshake in ab.o
      _ssl_proceed_handshake in ab.o
      _start_connect in ab.o
      _ssl_state_cb in ab.o
      _ssl_state_cb in ab.o
      _test in ab.o
      _main in ab.o
  "_SSL_CTX_set_cipher_list", referenced from:
      _main in ab.o
  "_BIO_new_fp", referenced from:
      _main in ab.o
      _main in ab.o
  "_SSL_read", referenced from:
      _test in ab.o
  "_SSL_CTX_set_info_callback", referenced from:
      _main in ab.o
  "_SSL_get_peer_certificate", referenced from:
      _ssl_proceed_handshake in ab.o
      _ssl_proceed_handshake in ab.o
  "_ASN1_UTCTIME_print", referenced from:
      _ssl_print_cert_info in ab.o
      _ssl_print_cert_info in ab.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [ab] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.14" && /usr/bin/make -j2 all " returned error 2
Warning: the following items did not execute (for apache2): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Log for apache2 is at: /opt/local/var/macports/logs/apache2/main.log

Attachments

debug.txt (6.9 KB) - added by tom.mccaul@… 3 years ago.

Change History

Changed 3 years ago by tom.mccaul@…

comment:1 in reply to: ↑ description Changed 3 years ago by dluke@…

  • Status changed from new to closed
  • Resolution set to invalid

Replying to tom.mccaul@…:

ld: warning: in /usr/local/lib/libexpat.dylib, file is not of required architecture ld: warning: in /usr/local/lib/libiconv.dylib, file is not of required architecture ld: warning: in /usr/local/lib/libssl.dylib, file is not of required architecture ld: warning: in /usr/local/lib/libcrypto.dylib, file is not of required architecture

you have broken files installed in /usr/local that are causing the build to fail.

If you can, you should remove /usr/local from your system (and use MacPorts to install any software you had built yourself that was installed there). As a workaround you could rename /usr/local to something else (like /usr/local-off), re-build the ports you are trying to install, and then move it back.

comment:2 Changed 3 years ago by jmr@…

  • Port set to apache2
  • Cc tommccaul@… removed
  • Description modified (diff)
  • Milestone MacPorts 1.9.0 deleted
Note: See TracTickets for help on using tickets.