Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 433972 - app-text/tree-1.6.0-r1: failed to compile on Mac OSX Mountain Lion
Summary: app-text/tree-1.6.0-r1: failed to compile on Mac OSX Mountain Lion
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-04 22:32 UTC by yegle
Modified: 2013-07-28 11:08 UTC (History)
0 users

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


Attachments
Fix the Makefile for macos under gentoo-prefix (tree-Makefile.patch,271 bytes, patch)
2012-10-10 01:19 UTC, Jason Cooper
Details | Diff
patch to ebuild for tree-1.6.0-r1 (tree-1.6.0-r1.ebuild.diff,605 bytes, patch)
2012-10-10 01:23 UTC, Jason Cooper
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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