Russ Cox is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

rsc / plan9port http://swtch.com/plan9port/

Plan 9 from User Space (aka plan9port) is a port of many Plan 9 programs from their native Plan 9 environment to Unix-like operating systems. See the web site http://swtch.com/plan9port/ for details.

Clone this repository (size: 58.2 MB): HTTPS / SSH
hg clone https://bitbucket.org/rsc/plan9port
hg clone ssh://hg@bitbucket.org/rsc/plan9port

Issues

#84 Build failure on OS X 10.5.8

Reported anonymously

Build fails on Mac OS X 10.5.8 / intel:

./INSTALL ...

cd /Users/jdd/src/plan9/src/cmd; mk all

9l -o o.9p 9p.o Undefined symbols: "_libthread_swapcontext", referenced from: _contextswitch in libthread.a(thread.o) "_libthread_makecontext", referenced from: threadcreate in libthread.a(thread.o) "_getmcontext", referenced from: threadcreate in libthread.a(thread.o) ld: symbol(s) not found collect2: ld returned 1 exit status mk: 9l -o o.9p ... : exit status=exit(1) mk: for i in ... : exit status=exit(1) sam:plan9 root#

Status: open Responsible: nobody Type: bug Priority: major
Milestone: none Component: none Version: none

Attachments

No attachments added for this issue yet.

Comments and changes

  1. #1 Anonymous

    written

    Here's a workaround for this issue. Create a LOCAL.config file like this:

    OBJTYPE=386

    SYSNAME=Darwin

    Then make a one-line change in sys/libthread/sysofiles.sh:

    -*-Darwin-10.[5-6].*)

    +*-Darwin-*)

    `uname -a` on my system is:

    Darwin sam.lenoxway.net 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.41/RELEASE_I386 i386 i386 MacBook2,1 Darwin

  2. #2 Russ Cox

    written

    • Changed status from new to resolved.

    Fixed I hope by

        tag:         tip
        user:        Russ Cox <rsc@swtch.com>
        date:        Fri Oct 14 00:01:12 2011 -0400
        summary:     libthread: fix 10.5.8 build - uname says 9.8.0
    
  3. #3 Anonymous

    written

    Hi, on my 10.8.0 Mac the above assertion is not valid ;-) well, I had to manually apply the patch described in order to make things work.

    Bye! -g

  4. #4 ucasano

    written

    • Changed status from resolved to open.

    Yes, I can confirm it is not fixed...

  5. #5 Anonymous

    written

    Darwin is now at 10.8.0. This patch updates support to 10.8.x.

    #!hg
    # HG changeset patch
    # User Robert Ball <rtb@coraid.com>
    # Date 1329332444 18000
    # Node ID dcc9885f7cc0a903a28f12bc3dbe89c2af80c90a
    # Parent  ba458c22e6ae775b6fb2b7aec06e4d5b67eea032
    support Darwin 10.8.x
    
    diff -r ba458c22e6ae -r dcc9885f7cc0 src/libthread/sysofiles.sh
    --- a/src/libthread/sysofiles.sh	Thu Jan 26 17:33:36 2012 +0100
    +++ b/src/libthread/sysofiles.sh	Wed Feb 15 14:00:44 2012 -0500
    @@ -14,7 +14,7 @@ case "$tag" in
     *-NetBSD-*)
     	echo ${SYSNAME}-${OBJTYPE}-asm.o $SYSNAME.o
     	;;
    -*-Darwin-10.[5-6].* | *-Darwin-[89].*)
    +*-Darwin-10.[5-8].* | *-Darwin-[89].*)
     	echo ${SYSNAME}-${OBJTYPE}-asm.o $SYSNAME-${OBJTYPE}.o pthread.o
     	;;
     *-OpenBSD-*)
    

    Best,

    r

Add comment / attachment

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?