Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 433972

Summary: app-text/tree-1.6.0-r1: failed to compile on Mac OSX Mountain Lion
Product: Gentoo/Alt Reporter: yegle <cnyegle>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fix the Makefile for macos under gentoo-prefix
patch to ebuild for tree-1.6.0-r1

Description yegle 2012-09-04 22:32:05 UTC
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/
Comment 2 Jason Cooper 2012-10-10 01:17:17 UTC
I encountered the same error.  I'll attach my working (for me ;-) ) solution.

thx,

Jason.
Comment 3 Jason Cooper 2012-10-10 01:19:53 UTC
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)
Comment 4 Jason Cooper 2012-10-10 01:23:24 UTC
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.
Comment 5 Fabian Groffen gentoo-dev 2013-07-28 11:08:54 UTC
Thanks, fixed