From owner-freebsd-questions@FreeBSD.ORG Mon Mar 7 01:17:04 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73C4E16A4CE for ; Mon, 7 Mar 2005 01:17:04 +0000 (GMT) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8598F43D2F for ; Mon, 7 Mar 2005 01:17:03 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b229.otenet.gr [212.205.244.237]) j271FfAT003521; Mon, 7 Mar 2005 03:15:42 +0200 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.3/8.13.3) with ESMTP id j271Frpo020088; Mon, 7 Mar 2005 03:15:53 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.3/8.13.3/Submit) id j271FrG2020087; Mon, 7 Mar 2005 03:15:53 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Mon, 7 Mar 2005 03:15:53 +0200 From: Giorgos Keramidas To: Jonathon McKitrick Message-ID: <20050307011553.GA20065@gothmog.gr> References: <20050305183226.GA47472@dogma.freebsd-uk.eu.org> <20050306011827.GE2272@dan.emsphone.com> <20050306213249.GA4624@dogma.freebsd-uk.eu.org> <20050306213955.GA11496@gothmog.gr> <20050306215500.GA5571@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050306215500.GA5571@dogma.freebsd-uk.eu.org> cc: Dan Nelson cc: freebsd-questions@freebsd.org Subject: Re: Which lib for pthreads? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2005 01:17:04 -0000 On 2005-03-06 21:55, Jonathon McKitrick wrote: >On Sun, Mar 06, 2005 at 11:39:55PM +0200, Giorgos Keramidas wrote: >:On 2005-03-06 21:32, Jonathon McKitrick wrote: >:> >:> I found -lc_r does the trick. Not what I was expecting. >: >: -lpthread should work too. > > Hmmmm... > > jcm@worker:...cvs/tcontainer/libplugina> make install > cc -O -pipe -Wall -g -I.. -I../include -shared -fPIC -c plugina.c > c++ -O -pipe -Wall -g -I.. -I../include -shared -fPIC -c wrapper.cpp > c++ -O -pipe -Wall -g -I.. -I../include -shared -fPIC -c myclass.cpp > cc -O -pipe -Wall -g -I.. -I../include -shared -fPIC -c threads.c > cc -O -pipe -Wall -g -I.. -I../include -shared -fPIC -lpthread -lstdc++ -g > -Wl,-soname,libplugina.so.0 -o libplugina.so.0.0 plugina.o wrapper.o > myclass.o threads.o > /usr/libexec/elf/ld: cannot find -lpthread > *** Error code 1 > > Stop in /usr/home/jcm/cvs/tcontainer/libplugina. > jcm@worker:...cvs/tcontainer/libplugina> Is this 4.X? The -lpthread library is available in all 5.X versions, AFAIK.