On Tue, Nov 14, 2000 at 02:15:49PM -0800, Satoshi - Ports Wraith - Asami wrote:
> Hmm.  That's a good point.  So you mean there is no way to build a
> libc that works for 4.2 that will also work with a 4.0 kernel?

Yes.


> (I don't think just changing the libc source on a 4.0 machine will
> accomplish that.  Besides, that sounds even more dangerous, to build
> something with mixed sources.)

IF 4.2-R libc sources would compile on a 4.0-R system the resulting
libc.so.4 will work much better than using a stock 4.2-R libc.so.4.  This
is because the /usr/include/sys/ and /usr/include/machine/ headers
(especially the syscall ones) used to compile the 4.2-R libc sources will
match the 4.0-R kernel.  Interface changes (as exposed) in /sys/sys and
/sys/<arch>/include are one of the bigger ways to get a kernel and
userland out of sync.

 
> However, incompatible is incompatible and it seems to me that we should
> still bump the version of libc just to make sure people won't get into
> a similar situation by copying supposedly compatible shared library.  

Maybe.... but this is unix where we kinda give people all the rope the
need...  Switching to a versioned API would probably help this issue.
But it increases the library and toolchain maintenance.

> (If libc was at so.5 in the upgrade kit it at least wouldn't have
> killed existing binaries.)

I guess that would be one approach... but I fear it will lead us to bump
the version at every release.  I think this could increase support
questions.


> By the way, if the conclusion is that we can't provide an upgrade kit
> that will work for 4.0R (regardless of whether we bump libc or not),
> I'll just replace that package with something that prints "sorry, we
> can't support that system anymore, please upgrade".

If you've got space [and time] to build a special libc.so.4 for 4.[01]-R,
using 4.2 libc (only) sources, it should work well.  Of course at some
point it is a hopeless cause, as there will be some change to the libc
sources that requires changes in /usr/include/{sys,machine}/ .

In the merging of xpg4 into libc using the various Binutils utils.
JDP would know more about the viability of this than I do.

-- 
-- David  ([EMAIL PROTECTED])
          GNU is Not Unix / Linux Is Not UniX


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to