[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gobjc-3.3.2 threading problem



hi..

i compiled gcc 3.3.2 from lang/egcs/stable with threading enabled (on
i386, OpenBSD-3.5 current). i need this for a program i'd like to use.
when trying to compile an objective-c file using threads, i get
following errors (file taken from a configure script):

$ cat thread_test.m                                                            
#include <objc/thr.h>
#include <objc/Object.h>

int
main()
{
  id o = [Object new];

  return (objc_thread_detach (@selector(hash), o, nil) == NULL) ? -1 : 0;
}
$ egcc -o thread_test thread_test.m -L/usr/local/lib -lobjc -lpthread          
/usr/local/lib/libobjc.so.1.0: undefined reference to `sched_get_priority_max'
/usr/local/lib/libobjc.so.1.0: undefined reference to `sched_get_priority_min'
collect2: ld returned 1 exit status

am i missing something ?
hope you can help.

cu
JRL

-- 
visit my OpenBSD ports page: http://vgai.de/ports
--
If you don't remember something, it never existed...
If you aren't remembered, you never existed...