Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 516168 - dev-vcs/git-2.0.0-r1 USE=subversion - Undefined symbols for architecture x86_64
Summary: dev-vcs/git-2.0.0-r1 USE=subversion - Undefined symbols for architecture x86_64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-03 13:51 UTC by Martin von Gagern
Modified: 2014-07-27 10:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,192.33 KB, application/octet-stream)
2014-07-03 13:51 UTC, Martin von Gagern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2014-07-03 13:51:01 UTC
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…
Comment 1 Martin von Gagern 2014-07-03 13:54:59 UTC
Emerging with USE=-subversion works.
Comment 2 Fabian Groffen gentoo-dev 2014-07-27 09:36:38 UTC
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.
Comment 3 Fabian Groffen gentoo-dev 2014-07-27 10:39:22 UTC
Gentoo deliberately overrides EXTLIBS, causing this behaviour.  I added back -liconv and -lintl in the ebuild for subversion in 2.0.2 and up.