From owner-freebsd-hackers Fri Feb 8 1:20:17 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from alcatraz.iptelecom.net.ua (alcatraz.iptelecom.net.ua [212.9.224.15]) by hub.freebsd.org (Postfix) with ESMTP id CD6E237B404; Fri, 8 Feb 2002 01:20:06 -0800 (PST) Received: from ipcard.iptcom.net (ipcard.iptcom.net [212.9.224.5]) by alcatraz.iptelecom.net.ua (8.9.3/8.9.3) with ESMTP id LAA68229; Fri, 8 Feb 2002 11:19:57 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Received: from vega.vega.com (h8.234.dialup.iptcom.net [212.9.234.8]) by ipcard.iptcom.net (8.9.3/8.9.3) with ESMTP id LAA51633; Fri, 8 Feb 2002 11:19:55 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vega.vega.com (8.11.6/8.11.3) with ESMTP id g189JHd67830; Fri, 8 Feb 2002 11:19:17 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Message-ID: <3C639825.241BEB27@FreeBSD.org> Date: Fri, 08 Feb 2002 11:19:33 +0200 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en,uk,ru MIME-Version: 1.0 To: "M. Warner Losh" 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 weirdproblems References: <1013147180.73417.2.camel@notebook> <20020207.234939.69060047.imp@village.org> Content-Type: text/plain; charset=x-user-defined 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 "M. Warner Losh" wrote: > > 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. And AFAIK then was changed back to -lc_r in 5.0... -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message