From owner-freebsd-hackers Thu Feb 7 22:50:13 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 3185F37B41F; Thu, 7 Feb 2002 22:50:10 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id g186o8i25339; Thu, 7 Feb 2002 23:50:09 -0700 (MST) (envelope-from imp@village.org) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id g186o7L49723; Thu, 7 Feb 2002 23:50:07 -0700 (MST) (envelope-from imp@village.org) Date: Thu, 07 Feb 2002 23:49:39 -0700 (MST) Message-Id: <20020207.234939.69060047.imp@village.org> To: sobomax@FreeBSD.ORG Cc: jdp@FreeBSD.ORG, deischen@FreeBSD.ORG, jasone@FreeBSD.ORG, hackers@FreeBSD.ORG, jlemon@FreeBSD.ORG Subject: Re: Linking libc before libc_r into application causes weird problems From: "M. Warner Losh" In-Reply-To: <1013147180.73417.2.camel@notebook> References: <1013147180.73417.2.camel@notebook> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Confirmed. test.c appears to work properly when compiled: cc -o test test.c -pthread ./test Generally speaking, if you want to add -lc_r, you are doing things incorrectly. I've done way to much building... In FreeBSD 3.x you did need to do -lc_r, but that was changed to -pthread in 4.0. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message