{"action":"created","issue":{"url":"https://api.github.com/repos/libgit2/libgit2/issues/3296","labels_url":"https://api.github.com/repos/libgit2/libgit2/issues/3296/labels{/name}","comments_url":"https://api.github.com/repos/libgit2/libgit2/issues/3296/comments","events_url":"https://api.github.com/repos/libgit2/libgit2/issues/3296/events","html_url":"https://github.com/libgit2/libgit2/issues/3296","id":93459545,"number":3296,"title":"libgit2 build failing on Mac OS X 10.10.4 with XCode 6.4","user":{"login":"odysseus9672","id":4352294,"avatar_url":"https://avatars.githubusercontent.com/u/4352294?v=3","gravatar_id":"","url":"https://api.github.com/users/odysseus9672","html_url":"https://github.com/odysseus9672","followers_url":"https://api.github.com/users/odysseus9672/followers","following_url":"https://api.github.com/users/odysseus9672/following{/other_user}","gists_url":"https://api.github.com/users/odysseus9672/gists{/gist_id}","starred_url":"https://api.github.com/users/odysseus9672/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odysseus9672/subscriptions","organizations_url":"https://api.github.com/users/odysseus9672/orgs","repos_url":"https://api.github.com/users/odysseus9672/repos","events_url":"https://api.github.com/users/odysseus9672/events{/privacy}","received_events_url":"https://api.github.com/users/odysseus9672/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-07-07T07:24:01Z","updated_at":"2015-07-10T05:04:14Z","closed_at":null,"body":"I'm building the julia programming language, which depends on libgit2, on a Mac OS X 10.10.4 machine with XCode 6.4 installed. I also have a current, and freshly compiled from scratch, install of fink that supplies the cmake libgit2 needs. The commit of libgit2 that julia is trying to build is 159061a8ce206b694448313a84387600408f6029. The build fails at the linking stage with:\r\n\r\nLinking C shared library libgit2.dylib\r\n/sw/bin/cmake -E cmake_link_script CMakeFiles/git2.dir/link.txt --verbose=1\r\n/usr/bin/clang -m64 -D_GNU_SOURCE -Wall -Wextra  -fvisibility=hidden -fPIC -Wno-missing-field-initializers -Wstrict-aliasing=2 -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-const-variable -Wno-unused-function -Wno-deprecated-declarations -O3 -DNDEBUG -dynamiclib -Wl,-headerpad_max_install_names -compatibility_version 23.0.0 -current_version 0.23.0 -o libgit2.0.23.0.dylib -install_name /Users/sean/juliaLang/julia/deps/libgit2/build/libgit2.23.dylib CMakeFiles/git2.dir/src/annotated_commit.c.o CMakeFiles/git2.dir/src/attr.c.o CMakeFiles/git2.dir/src/attr_file.c.o CMakeFiles/git2.dir/src/attrcache.c.o CMakeFiles/git2.dir/src/blame.c.o CMakeFiles/git2.dir/src/blame_git.c.o CMakeFiles/git2.dir/src/blob.c.o CMakeFiles/git2.dir/src/branch.c.o CMakeFiles/git2.dir/src/buf_text.c.o CMakeFiles/git2.dir/src/buffer.c.o CMakeFiles/git2.dir/src/cache.c.o CMakeFiles/git2.dir/src/checkout.c.o CMakeFiles/git2.dir/src/cherrypick.c.o CMakeFiles/git2.dir/src/clone.c.o CMakeFiles/git2.dir/src/commit.c.o CMakeFiles/git2.dir/src/commit_list.c.o CMakeFiles/git2.dir/src/config.c.o CMakeFiles/git2.dir/src/config_cache.c.o CMakeFiles/git2.dir/src/config_file.c.o CMakeFiles/git2.dir/src/crlf.c.o CMakeFiles/git2.dir/src/curl_stream.c.o CMakeFiles/git2.dir/src/date.c.o CMakeFiles/git2.dir/src/delta-apply.c.o CMakeFiles/git2.dir/src/delta.c.o CMakeFiles/git2.dir/src/describe.c.o CMakeFiles/git2.dir/src/diff.c.o CMakeFiles/git2.dir/src/diff_driver.c.o CMakeFiles/git2.dir/src/diff_file.c.o CMakeFiles/git2.dir/src/diff_patch.c.o CMakeFiles/git2.dir/src/diff_print.c.o CMakeFiles/git2.dir/src/diff_stats.c.o CMakeFiles/git2.dir/src/diff_tform.c.o CMakeFiles/git2.dir/src/diff_xdiff.c.o CMakeFiles/git2.dir/src/errors.c.o CMakeFiles/git2.dir/src/fetch.c.o CMakeFiles/git2.dir/src/fetchhead.c.o CMakeFiles/git2.dir/src/filebuf.c.o CMakeFiles/git2.dir/src/fileops.c.o CMakeFiles/git2.dir/src/filter.c.o CMakeFiles/git2.dir/src/fnmatch.c.o CMakeFiles/git2.dir/src/global.c.o CMakeFiles/git2.dir/src/graph.c.o CMakeFiles/git2.dir/src/hash.c.o CMakeFiles/git2.dir/src/hashsig.c.o CMakeFiles/git2.dir/src/ident.c.o CMakeFiles/git2.dir/src/ignore.c.o CMakeFiles/git2.dir/src/index.c.o CMakeFiles/git2.dir/src/indexer.c.o CMakeFiles/git2.dir/src/iterator.c.o CMakeFiles/git2.dir/src/merge.c.o CMakeFiles/git2.dir/src/merge_file.c.o CMakeFiles/git2.dir/src/message.c.o CMakeFiles/git2.dir/src/mwindow.c.o CMakeFiles/git2.dir/src/netops.c.o CMakeFiles/git2.dir/src/notes.c.o CMakeFiles/git2.dir/src/object.c.o CMakeFiles/git2.dir/src/object_api.c.o CMakeFiles/git2.dir/src/odb.c.o CMakeFiles/git2.dir/src/odb_loose.c.o CMakeFiles/git2.dir/src/odb_mempack.c.o CMakeFiles/git2.dir/src/odb_pack.c.o CMakeFiles/git2.dir/src/oid.c.o CMakeFiles/git2.dir/src/oidarray.c.o CMakeFiles/git2.dir/src/openssl_stream.c.o CMakeFiles/git2.dir/src/pack-objects.c.o CMakeFiles/git2.dir/src/pack.c.o CMakeFiles/git2.dir/src/path.c.o CMakeFiles/git2.dir/src/pathspec.c.o CMakeFiles/git2.dir/src/pool.c.o CMakeFiles/git2.dir/src/posix.c.o CMakeFiles/git2.dir/src/pqueue.c.o CMakeFiles/git2.dir/src/push.c.o CMakeFiles/git2.dir/src/rebase.c.o CMakeFiles/git2.dir/src/refdb.c.o CMakeFiles/git2.dir/src/refdb_fs.c.o CMakeFiles/git2.dir/src/reflog.c.o CMakeFiles/git2.dir/src/refs.c.o CMakeFiles/git2.dir/src/refspec.c.o CMakeFiles/git2.dir/src/remote.c.o CMakeFiles/git2.dir/src/repository.c.o CMakeFiles/git2.dir/src/reset.c.o CMakeFiles/git2.dir/src/revert.c.o CMakeFiles/git2.dir/src/revparse.c.o CMakeFiles/git2.dir/src/revwalk.c.o CMakeFiles/git2.dir/src/settings.c.o CMakeFiles/git2.dir/src/sha1_lookup.c.o CMakeFiles/git2.dir/src/signature.c.o CMakeFiles/git2.dir/src/socket_stream.c.o CMakeFiles/git2.dir/src/sortedcache.c.o CMakeFiles/git2.dir/src/stash.c.o CMakeFiles/git2.dir/src/status.c.o CMakeFiles/git2.dir/src/stransport_stream.c.o CMakeFiles/git2.dir/src/strmap.c.o CMakeFiles/git2.dir/src/submodule.c.o CMakeFiles/git2.dir/src/sysdir.c.o CMakeFiles/git2.dir/src/tag.c.o CMakeFiles/git2.dir/src/thread-utils.c.o CMakeFiles/git2.dir/src/tls_stream.c.o CMakeFiles/git2.dir/src/trace.c.o CMakeFiles/git2.dir/src/transaction.c.o CMakeFiles/git2.dir/src/transport.c.o CMakeFiles/git2.dir/src/tree-cache.c.o CMakeFiles/git2.dir/src/tree.c.o CMakeFiles/git2.dir/src/tsort.c.o CMakeFiles/git2.dir/src/util.c.o CMakeFiles/git2.dir/src/vector.c.o CMakeFiles/git2.dir/src/zstream.c.o CMakeFiles/git2.dir/src/transports/auth.c.o CMakeFiles/git2.dir/src/transports/auth_negotiate.c.o CMakeFiles/git2.dir/src/transports/cred.c.o CMakeFiles/git2.dir/src/transports/cred_helpers.c.o CMakeFiles/git2.dir/src/transports/git.c.o CMakeFiles/git2.dir/src/transports/http.c.o CMakeFiles/git2.dir/src/transports/local.c.o CMakeFiles/git2.dir/src/transports/smart.c.o CMakeFiles/git2.dir/src/transports/smart_pkt.c.o CMakeFiles/git2.dir/src/transports/smart_protocol.c.o CMakeFiles/git2.dir/src/transports/ssh.c.o CMakeFiles/git2.dir/src/transports/winhttp.c.o CMakeFiles/git2.dir/src/xdiff/xdiffi.c.o CMakeFiles/git2.dir/src/xdiff/xemit.c.o CMakeFiles/git2.dir/src/xdiff/xhistogram.c.o CMakeFiles/git2.dir/src/xdiff/xmerge.c.o CMakeFiles/git2.dir/src/xdiff/xpatience.c.o CMakeFiles/git2.dir/src/xdiff/xprepare.c.o CMakeFiles/git2.dir/src/xdiff/xutils.c.o CMakeFiles/git2.dir/src/unix/map.c.o CMakeFiles/git2.dir/src/unix/realpath.c.o CMakeFiles/git2.dir/deps/http-parser/http_parser.c.o -lcurl /usr/lib/libz.dylib -framework Security -framework CoreFoundation -L/usr/lib -liconv \r\nUndefined symbols for architecture x86_64:\r\n  \"_libiconv\", referenced from:\r\n      _git_path_iconv in path.c.o\r\n  \"_libiconv_close\", referenced from:\r\n      _git_path_direach in path.c.o\r\n      _git_path_iconv_clear in path.c.o\r\n      _git_path_diriter_free in path.c.o\r\n      _git_path_dirload in path.c.o\r\n  \"_libiconv_open\", referenced from:\r\n      _git_path_direach in path.c.o\r\n      _git_path_iconv_init_precompose in path.c.o\r\n      _git_path_diriter_init in path.c.o\r\nld: symbol(s) not found for architecture x86_64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nCMakeFiles/git2.dir/build.make:3289: recipe for target 'libgit2.0.23.0.dylib' failed"},"comment":{"url":"https://api.github.com/repos/libgit2/libgit2/issues/comments/120227236","html_url":"https://github.com/libgit2/libgit2/issues/3296#issuecomment-120227236","issue_url":"https://api.github.com/repos/libgit2/libgit2/issues/3296","id":120227236,"user":{"login":"tkelman","id":5934628,"avatar_url":"https://avatars.githubusercontent.com/u/5934628?v=3","gravatar_id":"","url":"https://api.github.com/users/tkelman","html_url":"https://github.com/tkelman","followers_url":"https://api.github.com/users/tkelman/followers","following_url":"https://api.github.com/users/tkelman/following{/other_user}","gists_url":"https://api.github.com/users/tkelman/gists{/gist_id}","starred_url":"https://api.github.com/users/tkelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkelman/subscriptions","organizations_url":"https://api.github.com/users/tkelman/orgs","repos_url":"https://api.github.com/users/tkelman/repos","events_url":"https://api.github.com/users/tkelman/events{/privacy}","received_events_url":"https://api.github.com/users/tkelman/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T05:04:13Z","updated_at":"2015-07-10T05:04:13Z","body":"@odysseus9672 just curious, which kinds of libraries are you looking for that fink has but homebrew doesn't? For homebrew, a fair number of them might be out in \"taps\" like homebrew-science.\r\n\r\nIt looks like part of the problem here comes from trying to mix and match libraries from different sources, perhaps some cmake logic saying to only use libraries from fink (or other sources like macports or homebrew) if every external library comes from the same source could help?"}}