From fnaumann@mail.cs.uni-magdeburg.de Tue Nov 11 22:36:09 2003 Date: Tue, 11 Nov 2003 22:32:32 +0100 (CET) From: Frank Naumann X-X-Sender: fnaumann@wh58-508.st.uni-magdeburg.de To: mint@fishpool.com Subject: Re: [MiNT] pthread_create, anyone had any problems with this call??? In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Score: -4.9 (----) X-Spam-Report: ---- Start SpamAssassin results -4.9 points, 5.0 required; -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] ---- End of SpamAssassin results X-Scan-Signature: 813ca537f141dd5e570ef4519bd8bf1f Delivered-To: mint@fishpool.com Delivered-To: mint@lists.fishpool.fi X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: fnaumann@cs.uni-magdeburg.de Precedence: bulk List-help: List-unsubscribe: List-ID: X-List-ID: 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