Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install under Mac OS X Lion #110

Closed
joshi4 opened this issue Aug 26, 2014 · 3 comments
Closed

Unable to install under Mac OS X Lion #110

joshi4 opened this issue Aug 26, 2014 · 3 comments

Comments

@joshi4
Copy link

joshi4 commented Aug 26, 2014

I followed the Readme and this is the error I got after running make install.

Undefined symbols for architecture x86_64:
  "_deflateEnd", referenced from:
      _git_filebuf_cleanup in libgit2.a(filebuf.c.o)
      _git_zstream_free in libgit2.a(zstream.c.o)
      _git_zstream_deflatebuf in libgit2.a(zstream.c.o)
  "_deflate", referenced from:
      _write_deflate in libgit2.a(filebuf.c.o)
      _git_zstream_get_output in libgit2.a(zstream.c.o)
     (maybe you meant: _git_zstream_deflatebuf)
  "_deflateInit_", referenced from:
      _git_filebuf_open in libgit2.a(filebuf.c.o)
      _git_zstream_init in libgit2.a(zstream.c.o)
      _git_zstream_deflatebuf in libgit2.a(zstream.c.o)
  "_SSL_load_error_strings", referenced from:
      _init_once in libgit2.a(global.c.o)
  "_SSL_library_init", referenced from:
      _init_once in libgit2.a(global.c.o)
  "_SSLv23_method", referenced from:
      _init_once in libgit2.a(global.c.o)
  "_SSL_CTX_new", referenced from:
      _init_once in libgit2.a(global.c.o)
  "_SSL_CTX_ctrl", referenced from:
      _init_once in libgit2.a(global.c.o)
  "_SSL_CTX_set_verify", referenced from:
      _init_once in libgit2.a(global.c.o)
  "_SSL_CTX_set_default_verify_paths", referenced from:
      _init_once in libgit2.a(global.c.o)
  "_SSL_CTX_free", referenced from:
      _init_once in libgit2.a(global.c.o)
  "_CRYPTO_num_locks", referenced from:
      _init_once in libgit2.a(global.c.o)
  "_CRYPTO_set_locking_callback", referenced from:
      _init_once in libgit2.a(global.c.o)
  "_crc32", referenced from:
      _crc_object in libgit2.a(indexer.c.o)
      _git_indexer_commit in libgit2.a(indexer.c.o)
  "_SSL_get_error", referenced from:
      _ssl_set_error in libgit2.a(netops.c.o)
      _gitno__recv_ssl in libgit2.a(netops.c.o)
  "_ERR_get_error", referenced from:
      _ssl_set_error in libgit2.a(netops.c.o)
  "_ERR_error_string", referenced from:
      _ssl_set_error in libgit2.a(netops.c.o)
  "_SSL_shutdown", referenced from:
      _gitno_close in libgit2.a(netops.c.o)
  "_SSL_free", referenced from:
      _gitno_close in libgit2.a(netops.c.o)
  "_SSL_write", referenced from:
      _gitno_send in libgit2.a(netops.c.o)
  "_SSL_read", referenced from:
      _gitno__recv_ssl in libgit2.a(netops.c.o)
  "_SSL_new", referenced from:
      _gitno_connect in libgit2.a(netops.c.o)
  "_SSL_set_fd", referenced from:
      _gitno_connect in libgit2.a(netops.c.o)
  "_SSL_connect", referenced from:
      _gitno_connect in libgit2.a(netops.c.o)
  "_SSL_get_verify_result", referenced from:
      _gitno_connect in libgit2.a(netops.c.o)
  "_SSL_get_peer_certificate", referenced from:
      _gitno_connect in libgit2.a(netops.c.o)
  "_X509_get_ext_d2i", referenced from:
      _gitno_connect in libgit2.a(netops.c.o)
  "_GENERAL_NAMES_free", referenced from:
      _gitno_connect in libgit2.a(netops.c.o)
  "_sk_num", referenced from:
      _gitno_connect in libgit2.a(netops.c.o)
  "_sk_value", referenced from:
      _gitno_connect in libgit2.a(netops.c.o)
  "_ASN1_STRING_data", referenced from:
      _gitno_connect in libgit2.a(netops.c.o)
  "_ASN1_STRING_length", referenced from:
      _gitno_connect in libgit2.a(netops.c.o)
  "_X509_get_subject_name", referenced from:
      _gitno_connect in libgit2.a(netops.c.o)
  "_X509_NAME_get_index_by_NID", referenced from:
      _gitno_connect in libgit2.a(netops.c.o)
  "_X509_NAME_get_entry", referenced from:
      _gitno_connect in libgit2.a(netops.c.o)
  "_X509_NAME_ENTRY_get_data", referenced from:
      _gitno_connect in libgit2.a(netops.c.o)
  "_ASN1_STRING_type", referenced from:
      _gitno_connect in libgit2.a(netops.c.o)
  "_CRYPTO_malloc", referenced from:
      _gitno_connect in libgit2.a(netops.c.o)
  "_ASN1_STRING_to_UTF8", referenced from:
      _gitno_connect in libgit2.a(netops.c.o)
  "_CRYPTO_free", referenced from:
      _gitno_connect in libgit2.a(netops.c.o)
  "_SHA1_Update", referenced from:
      _git_odb_stream_write in libgit2.a(odb.c.o)
      _git_odb_open_wstream in libgit2.a(odb.c.o)
      _git_odb__hashfd in libgit2.a(odb.c.o)
      _write_one in libgit2.a(pack-objects.c.o)
      _write_pack in libgit2.a(pack-objects.c.o)
      _write_normal in libgit2.a(filebuf.c.o)
      _write_deflate in libgit2.a(filebuf.c.o)
      ...
  "_SHA1_Final", referenced from:
      _git_odb_stream_finalize_write in libgit2.a(odb.c.o)
      _git_odb__hashfd in libgit2.a(odb.c.o)
      _write_pack in libgit2.a(pack-objects.c.o)
      _git_filebuf_hash in libgit2.a(filebuf.c.o)
      _git_hash_buf in libgit2.a(hash.c.o)
      _git_hash_vec in libgit2.a(hash.c.o)
      _git_indexer_commit in libgit2.a(indexer.c.o)
      ...
  "_SHA1_Init", referenced from:
      _git_odb_open_wstream in libgit2.a(odb.c.o)
      _git_odb__hashfd in libgit2.a(odb.c.o)
      _git_packbuilder_new in libgit2.a(pack-objects.c.o)
      _git_filebuf_open in libgit2.a(filebuf.c.o)
      _git_hash_buf in libgit2.a(hash.c.o)
      _git_hash_vec in libgit2.a(hash.c.o)
      _git_indexer_commit in libgit2.a(indexer.c.o)
      ...
  "_inflateInit_", referenced from:
      _loose_backend__read_header in libgit2.a(odb_loose.c.o)
      _read_loose in libgit2.a(odb_loose.c.o)
      _packfile_unpack_compressed in libgit2.a(pack.c.o)
      _git_packfile_stream_open in libgit2.a(pack.c.o)
  "_inflate", referenced from:
      _loose_backend__read_header in libgit2.a(odb_loose.c.o)
      _read_loose in libgit2.a(odb_loose.c.o)
      _git_packfile_stream_read in libgit2.a(pack.c.o)
      _packfile_unpack_compressed in libgit2.a(pack.c.o)
  "_inflateEnd", referenced from:
      _loose_backend__read_header in libgit2.a(odb_loose.c.o)
      _read_loose in libgit2.a(odb_loose.c.o)
      _packfile_unpack_compressed in libgit2.a(pack.c.o)
      _git_packfile_stream_free in libgit2.a(pack.c.o)
  "_iconv", referenced from:
      _git_path_iconv in libgit2.a(path.c.o)
     (maybe you meant: _git_path_iconv_init_precompose, _git_path_iconv_clear , _git_path_iconv )
  "_iconv_close", referenced from:
      _git_path_iconv_clear in libgit2.a(path.c.o)
      _git_path_dirload in libgit2.a(path.c.o)
      _git_path_direach in libgit2.a(path.c.o)
  "_iconv_open", referenced from:
      _git_path_iconv_init_precompose in libgit2.a(path.c.o)
      _git_path_dirload in libgit2.a(path.c.o)
      _git_path_direach in libgit2.a(path.c.o)
  "_deflateReset", referenced from:
      _git_zstream_reset in libgit2.a(zstream.c.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [install] Error 2
@joshi4
Copy link
Author

joshi4 commented Aug 26, 2014

The real error message was further above where it reported that it could not find pkg-config. Worked after installing that.

@joshi4 joshi4 closed this as completed Aug 26, 2014
@carlosmn
Copy link
Member

I've pushed an update which will make the script stop if it can't find pkg-config.

@joshi4
Copy link
Author

joshi4 commented Aug 26, 2014

@carlosmn Thanks, I should have read the readme more carefully, but I think i've run into another issue: #111.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants