Created attachment 380102 [details] build log x86_64-apple-darwin11-gcc -O2 -pipe -march=core2 -Wall -o svn-fe svn-fe.o \ -Wl,-dead_strip_dylibs ../../vcs-svn/lib.a ../../libgit.a -lz -lssl /Users/gagern/Gentoo/var/tmp/portage/dev-vcs/git-2.0.0-r1/work/git-2.0.0/xdiff/lib.a -lpthread -lpcre Undefined symbols for architecture x86_64: "_libintl_ngettext", referenced from: _show_date_relative in libgit.a(date.o) _format_tracking_info in libgit.a(remote.o) _merge_recursive in libgit.a(merge-recursive.o) "_libintl_gettext", referenced from: _show_date_relative in libgit.a(date.o) _warn_on_inaccessible in libgit.a(wrapper.o) _xgetpwuid_self in libgit.a(wrapper.o) _access_or_die in libgit.a(wrapper.o) _interpret_branch_name in libgit.a(sha1_name.o) _get_sha1_1 in libgit.a(sha1_name.o) _probe_utf8_pathname_composition in libgit.a(precompose_utf8.o) ... "_libiconv_close", referenced from: _precompose_utf8_closedir in libgit.a(precompose_utf8.o) _precompose_argv in libgit.a(precompose_utf8.o) _reencode_string_len in libgit.a(utf8.o) "_libiconv", referenced from: _precompose_utf8_readdir in libgit.a(precompose_utf8.o) _reencode_string_iconv in libgit.a(utf8.o) "_libiconv_open", referenced from: _precompose_utf8_opendir in libgit.a(precompose_utf8.o) _precompose_argv in libgit.a(precompose_utf8.o) _reencode_string_len in libgit.a(utf8.o) ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status Makefile:37: recipe for target 'svn-fe' failed make: *** [svn-fe] Error 1 Before that, my upgrade to dev-libs/libiconv-1.14-r1 and several other packages logged a message “Darwin patch set 'darwin-conf' failed to apply!” Not sure whether that has anything to do with anything. The libiconv package content according to qlist contains these libraries: ~/Gentoo/usr/lib/libiconv.la ~/Gentoo/usr/lib/libiconv.dylib ~/Gentoo/usr/lib/libiconv.a ~/Gentoo/usr/lib/libcharset.la ~/Gentoo/usr/lib/libcharset.dylib ~/Gentoo/usr/lib/libcharset.a ~/Gentoo/usr/lib/charset.alias ~/Gentoo/lib/libiconv.2.dylib ~/Gentoo/lib/libiconv.2.5.1.dylib ~/Gentoo/lib/libcharset.1.dylib ~/Gentoo/lib/libcharset.1.0.0.dylib “nm -g ~/Gentoo/usr/lib/libiconv.dylib” does list several of the mentioned symbols, so in my opinion, they SHOULD be available…
Emerging with USE=-subversion works.
Yes, they will be available, but the link line doesn't include -lintl, therefore the linker doesn't know. Not sure yet why it does work without subversion.
Gentoo deliberately overrides EXTLIBS, causing this behaviour. I added back -liconv and -lintl in the ebuild for subversion in 2.0.2 and up.