From owner-freebsd-questions Sat Nov 3 21:53:36 2001 Delivered-To: freebsd-questions@freebsd.org Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by hub.freebsd.org (Postfix) with ESMTP id 730F737B406 for ; Sat, 3 Nov 2001 21:53:33 -0800 (PST) Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id C1B6B2B733; Sun, 4 Nov 2001 06:53:26 +0100 (CET) Received: by k7.mavetju.org (Postfix, from userid 1001) id 45446FE; Sun, 4 Nov 2001 16:53:15 +1100 (EST) Date: Sun, 4 Nov 2001 16:53:15 +1100 From: Edwin Groothuis To: Mark Miller Cc: freebsd-questions@freebsd.org Subject: Re: solving pthread problems permanently? Message-ID: <20011104165315.O35710@k7.mavetju.org> Mail-Followup-To: Edwin Groothuis , Mark Miller , freebsd-questions@freebsd.org References: <20011103155245.Q37701-100000@soda.csua.berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011103155245.Q37701-100000@soda.csua.berkeley.edu>; from joup@bigfoot.com on Sat, Nov 03, 2001 at 04:11:18PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Nov 03, 2001 at 04:11:18PM -0800, Mark Miller wrote: > > I'm trying to figure out a way to add either -lc_r or -llthreads to the > linking process of any port build that requires pthreads (to avoid the > "undefined reference to `pthread_getspecific'" errors). Can someone tell > me where I might put this? I was thinking about some file in > /usr/ports/Mk/, but I don't really know much about the build process. Firstly, if it should be somewhere, it should be in /etc/make.conf. But don't ask me what you should add. Secondly, if you're running XFree86-4, try adding XFREE86_VERSION=4 to /etc/make.conf. Thirdly, it's better to submit pr's with fixed on ports which don't build (if you can do that). Fourthly, you can use -pthreads instead of "-lc_r and -lthreads". And last, programs which use libpcap don't like pthreads. See PR bin/31649. Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: ------------------+ http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message