From owner-freebsd-stable Fri Dec 20 7:19:12 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 BA82F37B401 for ; Fri, 20 Dec 2002 07:19:10 -0800 (PST) Received: from mail.isg.siue.edu (mail.isg.siue.edu [146.163.5.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FA2F43EDC for ; Fri, 20 Dec 2002 07:19:06 -0800 (PST) (envelope-from vcardon@siue.edu) Received: from WEBSHIELD1.isg.siue.edu (webshield1.isg.siue.edu [146.163.5.149]) by mail.isg.siue.edu (8.9.3/8.9.3) with SMTP id JAA09114 for ; Fri, 20 Dec 2002 09:17:42 -0600 (CST) Received: FROM linux.local BY WEBSHIELD1.isg.siue.edu ; Fri Dec 20 09:17:40 2002 -0600 Received: by linux.local (Postfix, from userid 500) id A6A37A51; Fri, 20 Dec 2002 09:21:36 -0600 (CST) Date: Fri, 20 Dec 2002 09:21:36 -0600 From: "Victor R. Cardona" To: freebsd-stable@FreeBSD.ORG Subject: Re: pthread woes Message-ID: <20021220152136.GD6707@client156-156.siue.edu> Mail-Followup-To: freebsd-stable@FreeBSD.ORG References: <20021220013445.GA75547@hackerheaven.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6Nae48J/T25AfBN4" Content-Disposition: inline In-Reply-To: <20021220013445.GA75547@hackerheaven.org> User-Agent: Mutt/1.4i 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 --6Nae48J/T25AfBN4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 20, 2002 at 02:34:45AM +0100, Emiel Kollof wrote: > When I compile it, I get the following errors: >=20 > % gcc test.c -o test.c > /tmp/ccF3QI1k.o: In function `PrintHello': > /tmp/ccF3QI1k.o(.text+0x20): undefined reference to `pthread_exit' > /tmp/ccF3QI1k.o: In function `main': > /tmp/ccF3QI1k.o(.text+0x76): undefined reference to `pthread_create' > /tmp/ccF3QI1k.o(.text+0xba): undefined reference to `pthread_exit' >=20 > It compiles fine when I use -lc_r. This also breaks a lot of ports. What's > going on? Use the -pthread arguement for gcc. Victor --6Nae48J/T25AfBN4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+AzV/758g6wZaI14RAgYKAJ48FqVhr8Q/mwJuwNZvUrdyu9d0zgCfXsPc aqdoylTOgSyvL12OEmBH/qU= =1HT/ -----END PGP SIGNATURE----- --6Nae48J/T25AfBN4-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message