Hi,Concerning pthreads on a 5272 target using the 2.6.x kernel.Thanks for the 
suggestion - I double checked and...I am using the uClibc and I do have POSIX 
Threading Support enabled in uClibc Configuration->General Library Settings.  I 
have a file called libpthread.a in /usr/m68k-linux-uclibc/lib.  I've set the -L 
and -l options to point to this file and I've even tried linking it in as an 
object file and I still have unresolved pthread symbols.Does anyone have any 
ideas how I can diagnose/fix the problem?How do I check my pthread library is 
built correctly?Are there any other compiler/linker options that would help?H E 
L P!Thanks,Chris> From: [EMAIL PROTECTED]> To: [email protected]> 
Subject: RE: [uClinux-dev] pthread link errors> Date: Thu, 10 May 2007 10:27:15 
+1200> > Quoth chris brooke:> > I am trying to build a simple application to 
test pthreads on a> > custom 5272 target using the 2.6.x kernel.  I have built 
the pthread> > library and I use the -lpthread option on the linker. I get the> 
> following link errors when I try to build the code: .elf2flt: In> > function 
`main': /home/djjcb/tmp/pthread.c:18: undefined reference to> > 
`pthread_create' /home/djjcb/tmp/pthread.c:19: undefined reference to> > 
`pthread_create' /home/djjcb/tmp/pthread.c:25: undefined reference to> > 
`pthread_join' /home/djjcb/tmp/pthread.c:26: undefined reference to> > 
`pthread_join'  > > collect2: ld returned 1 exit status> > Which RTL are you 
using?  uClibc?> > I don't recall if there's an option for it or not, but it 
might be worth> looking at the uClibc config.  If there is an option, maybe 
threading> support was disabled...> > make -C uClibc menuconfig> > 
_______________________________________________> uClinux-dev mailing list> 
[email protected]> 
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev> This message was 
resent by [email protected]> To unsubscribe see:> 
http://mailman.uclinux.org/mailman/options/uclinux-dev
_________________________________________________________________
Create the ultimate e-mail address book. Import your contacts to Windows Live 
Hotmail.
www.windowslive-hotmail.com/learnmore/managemail2.html?locale=en-us&ocid=TXT_TAGLM_HMWL_reten_impcont_0507
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to