linux-mips-fnet
[Top] [All Lists]

pthread library support!!

To: "LinuxEmbeddedMailList" <linux-embedded@waste.org>, "MipsMailList" <linux-mips@fnet.fr>
Subject: pthread library support!!
From: "Greeen-III" <greeen@iii.org.tw>
Date: Wed, 14 Mar 2001 13:19:01 +0800
Hi all,
 
The Linus has run on my machine ( r3912 ).
I want to write a thread program.
It will fail in load library.
The kernel will show error message
 
>error in loading shared libraries
>/lib/libpthread.so.0 : undefined symbol : __sched_get_priority_max
 
Is there any patch files I need?
Appreciate in advance.
                                                                                Green
 
------------------------testpthread.c----------------------------------
#include <stdio.h>
#include <pthread.h>
 
int FirstThread()
{
 printf("test thread!!");
 return 1;
}
 
int main(void)
{
 int rtn=-1;
 pthread_t MyThread;
 
 /* Call Thread */
 printf("-------> FirstThread\n");
 rtn = pthread_create(    &MyThread,
      (pthread_attr_t *) NULL,
      (void*)FirstThread,
      NULL );
 
 if(rtn == 0)
  pthread_join( MyThread, NULL);
 
 return 1;
}
-----------------------------------End of testpthread.c---------------------------------------------
<Prev in Thread] Current Thread [Next in Thread>
  • pthread library support!!, Greeen-III <=