yarv-dev-en:102
From: "Gerardo Santana Góíez Garrido" <gerardo.santana gmail.com>
Date: Fri, 14 Apr 2006 01:34:25 -0600
Subject: [yarv-dev-en:102] Linking error on OpenBSD 3.9 at thread_pthread.h
I've checked out yarv and tried to build it on OpenBSD 3.9 with Ruby 1.8.4. I get the following error: gcc main.o libruby-yarv-static.a -lpthread -lm -ominiruby -g -O2 -DRUBY_EXPORT -Wl,-E libruby-yarv-static.a(io.o)(.text+0x35b9): In function `rb_io_s_sysopen': ../yarv/io.c:3145: warning: strcpy() is almost always misused, please use strlcpy() libruby-yarv-static.a(marshal.o)(.text+0x5c4): In function `w_float': ../yarv/marshal.c:307: warning: sprintf() is often misused, please use snprintf() libruby-yarv-static.a(parse.o)(.text+0xc2b1): In function `rb_id2name': ../yarv/parse.y:8535: warning: strcat() is almost always misused, please use strlcat() libruby-yarv-static.a(thread.o)(.text+0x18c): In function `native_thread_apply_priority': ../yarv/thread_pthread.h:108: undefined reference to `sched_get_priority_max' libruby-yarv-static.a(thread.o)(.text+0x197):../yarv/thread_pthread.h:109: undefined reference to `sched_get_priority_min' collect2: ld returned 1 exit status *** Error code 1 I don't have sched_get_priority_max on OpenBSD. What are my alternatives, besides moving to another OS or implementing the missing interfaces myself :-\ -- Gerardo Santana "Between individuals, as between nations, respect for the rights of others is peace" - Don Benito Juárez http://santanatechnotes.blogspot.com/