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

Re: [MiNT] pthread_create, anyone had any problems with this call???



Hello!

> Here is the output (from xine's configure script):
>
> configure:22963: checking for pthread_create in -lpthread
> configure:22994: gcc -o conftest    conftest.c -lpthread   >&5
> /usr/lib/libpthread.a(pth_high.o)(.text+0xac4): undefined reference to `connect'
> /usr/lib/libpthread.a(pth_high.o)(.text+0xc22): undefined reference to `accept'
> /usr/lib/libpthread.a(pth_high.o)(.text+0x1134): undefined reference to `readv'
> /usr/lib/libpthread.a(pth_high.o)(.text+0x139c): undefined reference to `writev'
> /usr/lib/libpthread.a(pth_high.o)(.text+0x13f8): undefined reference to `writev'
> /usr/lib/libpthread.a(pth_high.o)(.text+0x18cc): undefined reference to `recvfrom'
> /usr/lib/libpthread.a(pth_high.o)(.text+0x1a82): undefined reference to `sendto'
> /usr/lib/libpthread.a(pth_high.o)(.text+0x1acc): undefined reference to `sendto'
> /usr/lib/libpthread.a(pth_high.o)(.text+0x9d4): undefined reference to `recv'
> /usr/lib/libpthread.a(pth_high.o)(.text+0xba4): undefined reference to `getsockopt'

You need to add the socket library (-lsocket) as this is not in our libc.
"LIBS=-lsocket ./configure ..." should do the job.

> On the topic of threads, anyone ever do work on porting some of the other
> thread packages out there, like Mit Threads, FSU Threads, Linux Threads, etc?

As far as I know these packages require some (non standardized) kernel
supported.


Ciao
   ...Frank

--
ATARI FALCON 040 // MILAN 060
-----------------------------------------
http://www.cs.uni-magdeburg.de/~fnaumann/
e-Mail: fnaumann@freemint.de