x86_64-apple-darwin11-gcc -Wl,-dead_strip_dylibs -o tree tree.o unix.o html.o xml.o hash.o color.o Undefined symbols for architecture x86_64: "_strverscmp", referenced from: _versort in tree.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make: *** [tree] Error 1 Reproducible: Always emerge --info tree output: http://bpaste.net/show/43808/
https://trac.macports.org/browser/trunk/dports/sysutils/tree/files/patch-Makefile.diff This patch works for me.
I encountered the same error. I'll attach my working (for me ;-) ) solution. thx, Jason.
Created attachment 326140 [details, diff] Fix the Makefile for macos under gentoo-prefix This patch fixes the Makefile for building under gentoo-prefix on osx (~x64-macos)
Created attachment 326142 [details, diff] patch to ebuild for tree-1.6.0-r1 This patch modifies the tree ebuild to apply the Makefile patch iff we are building on macos under gentoo-prefix.
Thanks, fixed