Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Aug 2002 09:45:49 -0400 (EDT)
From:      Daniel Eischen <eischen@pcnet1.pcnet.com>
To:        Jonathon McKitrick <jcm@FreeBSD-uk.eu.org>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Porting libc_r from -current to -stable
Message-ID:  <Pine.GSO.4.10.10208290939430.12954-100000@pcnet1.pcnet.com>
In-Reply-To: <20020829122135.GB89683@dogma.freebsd-uk.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10208290939430.12954-100000>