Re: linux-nfs-0.4.21 for Alpha glibc

Philip Blundell (Philip.Blundell@pobox.com)
Sat, 27 Dec 1997 22:58:30 +0000


>I have completed a set of patches which permits Olaf's knfs utilities to
>compile on an Alpha with glibc-2.0.3+. Unfortunately, there are some
>operational problems (read: it doesn't seem to do anything bad, but
>exports don't work).
>
>I'll be chipping away at this, but my ignorance of nfs, rpc, etc. is
>monumental, so help and advice is appreciated.
>
>I believe that the changes to compile with glibc were sound, but most of
>it was sheer guesswork - feel free to level constructive criticism. I'm
>not real pleased about the patches required in the kernel headers, but
>don't see how this could be avoided. Also, something was just plain
>missing in <rpc/svc.h>??

The rule of thumb when writing code for glibc is to avoid including any kernel
headers - if you need definitions that are only found in the kernel headers
then you should duplicate them in your own code (hopefully there aren't too
many). This is a bit of a pain sometimes, but it's a cleaner solution than
trying to patch up all the kernel headers to make them safe to include (which
is often hard without breaking some libc5 application along the way).

p.