[Buildroot] [PATCH] libtirpc: fix compilation error

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Dec 30 10:51:17 UTC 2017


Hello,

On Sat, 30 Dec 2017 07:44:43 +0100, daggs wrote:

> > I initially couldn't reproduce it, but after thinking more about the
> > problem, I understood what happened: you don't have RPC support
> > installed in your host system. The build of the rpcgen host program
> > fails to build because it can't find those headers, which on my system
> > (or the autobuilder instances) are provided system-wide.  
> weird, I have it too on my system:
> dagg at NCC-5001-D ~ $ ll /usr/include/tirpc/rpc/types.h
> -rw-r--r-- 1 root root 3270 Dec  1 15:44 /usr/include/tirpc/rpc/types.h

Notice how it is in /usr/include/tirpc, while on my system it is in:

$ ls -l /usr/include/rpc/types.h 
-rw-r--r-- 1 root root 3233 Dec  6 18:20 /usr/include/rpc/types.h

So, in your system, a #include <rpc/types.h> doesn't find it, while it
does on my system. I believe it's because on your system, the RPC
implementation comes from libtirpc, while on my system, it comes from
glibc.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com


More information about the buildroot mailing list