From owner-freebsd-stable@FreeBSD.ORG Fri Jun 24 05:34:18 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org 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 6AF1716A41C for ; Fri, 24 Jun 2005 05:34:18 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1626343D48 for ; Fri, 24 Jun 2005 05:34:17 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.4/8.13.4/NETPLEX) with ESMTP id j5O5YF8C000684; Fri, 24 Jun 2005 01:34:15 -0400 (EDT) Date: Fri, 24 Jun 2005 01:34:15 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: "Kevin S. Brackett" In-Reply-To: <20050624004056.D81650@tsunami.platypusgroup.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: freebsd-stable@freebsd.org, Dan Nelson Subject: Re: libc.so.4 & libc_r.so.4 in ices0 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jun 2005 05:34:18 -0000 On Fri, 24 Jun 2005, Kevin S. Brackett wrote: > > Well, the problem is when libc and libc_r are linked together, I > recompiled without -lc and it's now fine, but not really what i'd consider > a great fix... I suggest you go do some research -- look in our archives and man pages. libc is linked automatically; you don't want to specify it yourself. Link order is important; your application must be linked to libc_r (or libpthread/libthr) before libc. Using -lc_r -lc will work, -lc -lc_r will not. Just let the compiler link to libc for you. -- DE