From owner-freebsd-hackers Thu Aug 29 6:53:26 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7B8E37B400 for ; Thu, 29 Aug 2002 06:53:23 -0700 (PDT) Received: from mail.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BBA043E3B for ; Thu, 29 Aug 2002 06:53:23 -0700 (PDT) (envelope-from eischen@pcnet1.pcnet.com) Received: from localhost (eischen@localhost) by mail.pcnet.com (8.12.3/8.12.1) with ESMTP id g7TDjnLQ013790; Thu, 29 Aug 2002 09:45:49 -0400 (EDT) Date: Thu, 29 Aug 2002 09:45:49 -0400 (EDT) From: Daniel Eischen To: Jonathon McKitrick Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Porting libc_r from -current to -stable In-Reply-To: <20020829122135.GB89683@dogma.freebsd-uk.eu.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Thu, 29 Aug 2002, Jonathon McKitrick wrote: > I've volunteered to do this port, with the expectation that it's within my > ability. I'm just a bit over my head, but that's how I'll learn, right? > > I've gotten the -current version to build and install, but I've found 2 > problems so far: gkrellm loads and cannot resolve the symbol _flockfile. > Also, a build of xmms (which uses threads) fails in configure because it > cannot find pthreads support. > > I'd like to solve this myself, but I need a little push in the right > direction. Could someone give me a hint? Is it simply a matter of > undefining functions that are not present in -stable? In -current, we modified FILE (/usr/include/stdio.h) and added (or changed) a field to use for holding a mutex that is used by flockfile (lib/libc/stdio/_flock_stub.c). We broke the ABI in order to do this, and it was very painful (just search for "the whole stdio mess" or something like that in the -current archives). You cannot do this for -stable. You're going to have to keep the hashtable method of locking FILEs. -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message