From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: Bengt Kleberg Message-ID: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit References: Subject: Re: [9fans] plan 9 ports churn Date: Mon, 26 Apr 2004 11:52:36 +0000 Topicbox-Message-UUID: 6d96940a-eacd-11e9-9e20-41e7f4b1d025 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 ) done 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