[lfs-dev] glibc and rpc headers

Bruce Dubbs bruce.dubbs at gmail.com
Mon Aug 27 10:55:22 PDT 2012

Ken Moffat wrote:
> On Mon, Aug 27, 2012 at 09:48:41AM -0500, Bruce Dubbs wrote:
>> I think we have corner case here.  The only system that is a problem is
>> 7.1 without libtirpc being installed (or someone who didn't follow the
>> book).  Now that I think of it, we could add to the host system
>> requirements a check for /usr/include/rpc/rpc.h and if it doesn't exist
>> just untar the glibc tarball and copy the header files from there to the
>> host.  I doubt that they've changed and in that case they are not being
>> used by anything else even if they have changed.
>> tar -xf   glibc-2.16.0.tar.xz
>> su -c 'cp glibc-2.16.0/sunrpc/rpc/*.h /usr/include/rpc'
>> rm -r     glibc-2.16.0
>> For this rare corner case, that's the minimum needed.

>   I tend to agree, but people who have built a recent LFS will
> probably not notice that change to the host requirements - perhaps
> we need to swallow our pride and point out that it is our own users
> who might need to do this ?

I decided to add the instructions to Chapter 5 glibc.  For most systems, 
the test will properly fail because the rpc headers are present. 
However in the corner case, we just install the rpc (not unneeded nis) 
headers into the host system.

   -- Bruce

More information about the lfs-dev mailing list