[Buildroot] RPC.h and busybox

Baruch Siach baruch at tkos.co.il
Wed Oct 31 12:13:47 UTC 2012


Hi Alexander,

On Wed, Oct 31, 2012 at 03:56:26PM +0400, Alexander Khryukin wrote:
> В Ср., 31/10/2012 в 13:41 +0200, Baruch Siach пишет:
> > Hi Alexander,
> > On Wed, Oct 31, 2012 at 02:32:08PM +0300, Alexander Khryukin wrote:
> > > I'm trying to build busybox with glibc
> > > and faced with error
> > > 
> > > util-linux/mount.c:140:22: fatal error: rpc/rpc.h: No such file or directory
> > 
> > glibc version newer than 2.13 omits built time support for RPC. See 
> > http://sourceware.org/ml/crossgcc/2011-09/msg00005.html.
> > 
> > > Does anybody have any solution?
> > 
> > This is a toolchain level problem. Either downgrade to a toolchain with 2.13 
> > glibc, or use a toolchain with tirpc.
> 
> Hi, thanks for answer.
> I compiled toolchain via crosstool-ng
> 
> [me at kvm-host crosstool-ng-linaro]$ find . -name rpc.h
> ./.build/src/gcc-linaro-4.7-2012.09/fixincludes/tests/base/rpc/rpc.h
> ./.build/src/glibc-2.14.1/sunrpc/rpc/rpc.h
> ./.build/src/glibc-2.14.1/include/rpc/rpc.h

I any of these the standard include path?

> Seems to be rpc.h headers exist in glibc dir
> but buildroot not understand it.

glibc 2.14 still includes run-time RPC support. Only build time support has 
been removed. This might be the reason you have these headers. However, if 
these headers are not in the standard includes search path, they are not 
visible to the code you build with this toolchain.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -



More information about the buildroot mailing list