* [9fans] undefined reference to `sched_yield' @ 2006-11-02 17:00 Matt 2006-11-02 17:09 ` geoff ` (3 more replies) 0 siblings, 4 replies; 8+ messages in thread From: Matt @ 2006-11-02 17:00 UTC (permalink / raw) To: 9fans OpenBSD 4.0 running in QEmu 0.8.2 on FreeBSD 6.0 # cd /usr/local/plan9 # ./INSTALL * Resetting /usr/local/plan9/config * Building everything (be patient)... >>> cd /usr/local/plan9/src/cmd; mk all 9l -o o.9p 9p.o /usr/local/plan9/src/lib9/sleep.c:25: undefined reference to `sched_yield' collect2: ld returned 1 exit status mk: 9l -o o.9p ... : exit status=exit(1) mk: for i in ... : exit status=exit(1) # MD5 (plan9port.tgz) = e6aba1ebf35fe0407304069dd1ea35c8 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] undefined reference to `sched_yield' 2006-11-02 17:00 [9fans] undefined reference to `sched_yield' Matt @ 2006-11-02 17:09 ` geoff 2006-11-02 17:22 ` Tim Wiess ` (2 subsequent siblings) 3 siblings, 0 replies; 8+ messages in thread From: geoff @ 2006-11-02 17:09 UTC (permalink / raw) To: 9fans It looks like it's called pthread_yield in OpenBSD. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] undefined reference to `sched_yield' 2006-11-02 17:00 [9fans] undefined reference to `sched_yield' Matt 2006-11-02 17:09 ` geoff @ 2006-11-02 17:22 ` Tim Wiess 2006-11-02 17:33 ` Russ Cox 2006-11-02 17:32 ` Tim Wiess 2006-11-02 18:15 ` Chad Dougherty 3 siblings, 1 reply; 8+ messages in thread From: Tim Wiess @ 2006-11-02 17:22 UTC (permalink / raw) To: 9fans this is my fault. the developers added a real sched_yield in 3.9 but was not built into the kernel by default. i assumed it would be for 4.0, but they just turned it on only after the release. i'll send a patch over to Russ which will fix this for 4.0 systems. sorry about that. tim > OpenBSD 4.0 running in QEmu 0.8.2 on FreeBSD 6.0 > > > # cd /usr/local/plan9 > # ./INSTALL > * Resetting /usr/local/plan9/config > * Building everything (be patient)... > >>> cd /usr/local/plan9/src/cmd; mk all > 9l -o o.9p 9p.o > /usr/local/plan9/src/lib9/sleep.c:25: undefined reference to `sched_yield' > collect2: ld returned 1 exit status > mk: 9l -o o.9p ... : exit status=exit(1) > mk: for i in ... : exit status=exit(1) > # > > MD5 (plan9port.tgz) = e6aba1ebf35fe0407304069dd1ea35c8 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] undefined reference to `sched_yield' 2006-11-02 17:22 ` Tim Wiess @ 2006-11-02 17:33 ` Russ Cox 0 siblings, 0 replies; 8+ messages in thread From: Russ Cox @ 2006-11-02 17:33 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs Patch applied. You should be able to cd /usr/local/plan9/src/lib9 cvs up sleep.c and then build as usual. (You can cvs up a downloaded archive.) Russ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] undefined reference to `sched_yield' 2006-11-02 17:00 [9fans] undefined reference to `sched_yield' Matt 2006-11-02 17:09 ` geoff 2006-11-02 17:22 ` Tim Wiess @ 2006-11-02 17:32 ` Tim Wiess 2006-11-02 19:37 ` Matt 2006-11-02 18:15 ` Chad Dougherty 3 siblings, 1 reply; 8+ messages in thread From: Tim Wiess @ 2006-11-02 17:32 UTC (permalink / raw) To: 9fans btw, if you don't want to wait, just change the version number in the OpenBSD check in src/lib9/sleep.c to 200611. if you run -current though, you shouldn't need to change anything. > OpenBSD 4.0 running in QEmu 0.8.2 on FreeBSD 6.0 > > > # cd /usr/local/plan9 > # ./INSTALL > * Resetting /usr/local/plan9/config > * Building everything (be patient)... > >>> cd /usr/local/plan9/src/cmd; mk all > 9l -o o.9p 9p.o > /usr/local/plan9/src/lib9/sleep.c:25: undefined reference to `sched_yield' > collect2: ld returned 1 exit status > mk: 9l -o o.9p ... : exit status=exit(1) > mk: for i in ... : exit status=exit(1) > # > > MD5 (plan9port.tgz) = e6aba1ebf35fe0407304069dd1ea35c8 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] undefined reference to `sched_yield' 2006-11-02 17:32 ` Tim Wiess @ 2006-11-02 19:37 ` Matt 0 siblings, 0 replies; 8+ messages in thread From: Matt @ 2006-11-02 19:37 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs > btw, if you don't want to wait, just change the version number > in the OpenBSD check in src/lib9/sleep.c to 200611. thank you, this worked matt ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] undefined reference to `sched_yield' 2006-11-02 17:00 [9fans] undefined reference to `sched_yield' Matt ` (2 preceding siblings ...) 2006-11-02 17:32 ` Tim Wiess @ 2006-11-02 18:15 ` Chad Dougherty 2006-11-02 18:58 ` Matt 3 siblings, 1 reply; 8+ messages in thread From: Chad Dougherty @ 2006-11-02 18:15 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs Matt wrote: > OpenBSD 4.0 running in QEmu 0.8.2 on FreeBSD 6.0 > > Note of caution about using OpenBSD in qemu: <http://www.andrew.cmu.edu/user/crd/qemu_openbsd_note.html> ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] undefined reference to `sched_yield' 2006-11-02 18:15 ` Chad Dougherty @ 2006-11-02 18:58 ` Matt 0 siblings, 0 replies; 8+ messages in thread From: Matt @ 2006-11-02 18:58 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs > Note of caution about using OpenBSD in qemu: > > http://www.andrew.cmu.edu/user/crd/qemu_openbsd_note.html thanks, won't be long before we see the first exploit through virtualization now that VMs are becoming a popular choice for hosting co's ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-11-02 19:37 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-11-02 17:00 [9fans] undefined reference to `sched_yield' Matt 2006-11-02 17:09 ` geoff 2006-11-02 17:22 ` Tim Wiess 2006-11-02 17:33 ` Russ Cox 2006-11-02 17:32 ` Tim Wiess 2006-11-02 19:37 ` Matt 2006-11-02 18:15 ` Chad Dougherty 2006-11-02 18:58 ` Matt
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).