From owner-freebsd-stable Thu Dec 19 17:40:44 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 748DF37B401 for ; Thu, 19 Dec 2002 17:40:43 -0800 (PST) Received: from piglet.dstc.edu.au (piglet.dstc.edu.au [130.102.176.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64BB443EDA for ; Thu, 19 Dec 2002 17:40:42 -0800 (PST) (envelope-from freebsd-lists@lister.dnsalias.net) Received: from ilister.dialup.dstc.edu.au (ilister.dialup.dstc.edu.au [130.102.182.103]) by piglet.dstc.edu.au (8.12.3/8.12.3) with ESMTP id gBK1eTIT018867; Fri, 20 Dec 2002 11:40:30 +1000 (EST) Received: from localhost (ilister@localhost) by ilister.dialup.dstc.edu.au (8.11.1/8.11.1) with ESMTP id gBK1eR775429; Fri, 20 Dec 2002 11:40:27 +1000 (EST) (envelope-from freebsd-lists@lister.dnsalias.net) Date: Fri, 20 Dec 2002 11:40:27 +1000 (EST) From: Ian Lister X-X-Sender: ilister@sapporo.home To: Emiel Kollof Cc: freebsd-stable@FreeBSD.ORG Subject: Re: pthread woes In-Reply-To: <20021220013445.GA75547@hackerheaven.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Checked: SPAMASSASSIN: This message probably not SPAM X-Spam-Score: -4.4, Required: 5 X-Virus-Scanned: Message: ok X-Scanned-By: MIMEDefang 2.9 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 20 Dec 2002, Emiel Kollof wrote: >I have a problem with compiling stuff that uses POSIX threads. I used >the following snippet of code to test: >% gcc test.c -o test.c >It compiles fine when I use -lc_r. This also breaks a lot of ports. What's >going on? pthread(3) notes that there is is -pthread option to gcc to save you needing to link with -lc_r explicitly. Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message