From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 14 Sep 2011 20:10:33 +0200 Message-ID: From: david jeannot To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] plan9port: cocoa programmer needed Topicbox-Message-UUID: 1dbe6250-ead7-11e9-9d60-3106f5b1d025 > could somebody put together a step-by-step on how > to build for Lion? I've downloaded the plan9ports > tarball, extracted it to /usr/local/plan9, and > done an hg pull -u, but INSTALL dies with > complaints from ld about a malformed TOC entry in > libbio.a. John, this problem comes from Xcode 4.1. If the change to 9ar doesn't work for you (it doesn't for me), try this hack: http://9fans.net/archive/2011/09/75 All should compile except Devdraw. There are 3 versions of Devdraw in src/cmd/devdraw(!) The default is the Carbon version: It doesn't work anymore. Then there is "devdraw-cocoa": an old attempt. Then there is my version, currently called "cocoa", but it is the last week's release, and I don't recommend to use it. I recommend to use the yesterday's release: it is not in the official tree yet, but there is a patch here: http://codereview.appspot.com/5015042 Then you can do: mk cocoa && DEVDRAW=cocoa colors But you cannot do: mk cocoa && DEVDRAW=cocoa acme because, apparently, all that is based on Libthread doesn't work. If you do a small program with 2 procs, a qlock, and some print(), you will see that the output is very inconsistent. Russ recently said: "I am using Xcode 4.2 on Lion without problems". So it is maybe another Xcode 4.1 issue. A solution is to use old binaries working on Snow Leopard, and then you can do: mk cocoa && DEVDRAW=cocoa acme