9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Bengt Kleberg <bengt.kleberg@ericsson.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] plan 9 ports churn
Date: Mon, 26 Apr 2004 11:52:36 +0000	[thread overview]
Message-ID: <c6irf6$lf3$1@newstree.wise.edt.ericsson.se> (raw)
In-Reply-To: <F47BA5AA.50724036@mail.gmail.com>

Russ Cox wrote:
> There's a lot of new stuff in the Plan 9 ports tarball/CVS
> but the downside is that I don't know how well it
> builds on systems other than FreeBSD and Linux.


plan9-20040424.tar.gz does not build ''out-of-the-box'' on solaris-2.8

1
the file plan9/src/libmach/SunOS.c does not exist. tentative fix by 
copying Darwin.c to SunOS.c


2
twice i get the following ''for loop'' in the ''install'' script output:

for i in port sun4u
do
	(cd $i; mk <something>)
done
<commands>
sh: sun4u: does not exist

there are 3 places in the directory structure where this might happen:

./src/libmp
./src/libsec
./acid

in all 3 places the ''sun4u'' makes no sense but replace it with 
''sparc'' and things seems logical. to achive this replace ''uname -m'' 
with ''uname -p'' in plan9/src/mkhdr:2 .

after doing that it is also neccessary to rename all the files with 
sun4u in their names:

cp ./plan9/src/libthread/asm-SunOS-sun4u.s 
./plan9/src/libthread/asm-SunOS-sparc.s
cp ./plan9/src/libthread/sun4u.c ./plan9/src/libthread/sparc.c
cp ./plan9/src/lib9/getcallerpc-sun4u.s ./plan9/src/lib9/getcallerpc-sparc.s
cp ./plan9/src/lib9/tas-sun4u.s ./plan9/src/lib9/tas-sparc.s
cp ./plan9/unix/make/Make.SunOS-sun4u ./plan9/unix/make/Make.SunOS-sparc
cp ./plan9/unix/make/Make.SunOS-sun4u-cc 
./plan9/unix/make/Make.SunOS-sparc-cc
cp ./plan9/unix/make/Make.SunOS-sun4u-gcc 
./plan9/unix/make/Make.SunOS-sparc-gcc


3
i get a loader error, when plan9/src/libthread/sched.c calls 
_threadstacklimit() which is in plan9/src/libthread/386.c, but not in 
plan9/src/libthread/sparc.c. ''solved'' by adding empty functions to 
plan9/src/libthread/sparc.c

void
_threadinswitch(int enter)
{
	USED(enter);
}

void
_threadstacklimit(void *addr)
{
	USED(addr);

}


bengt


  reply	other threads:[~2004-04-26 11:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-24  5:03 Russ Cox
2004-04-26 11:52 ` Bengt Kleberg [this message]
2004-04-27 12:44   ` Bengt Kleberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='c6irf6$lf3$1@newstree.wise.edt.ericsson.se' \
    --to=bengt.kleberg@ericsson.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).