From: Alexander Khryukin <alexander@mezon.ru>
To: buildroot@busybox.net
Subject: [Buildroot] RPC.h and busybox
Date: Wed, 31 Oct 2012 16:19:09 +0400 [thread overview]
Message-ID: <1351685949.28325.4.camel@localhost> (raw)
In-Reply-To: <201210311313.45723.yann.morin.1998@free.fr>
? ??., 31/10/2012 ? 13:13 +0100, Yann E. MORIN ?????:
> Alexander, All,
>
> On Wednesday 31 October 2012 12:56:26 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.
> > >
> > > baruch
>
> > 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
> >
> > Seems to be rpc.h headers exist in glibc dir
> > but buildroot not understand it.
>
> As Baruch said, it's because glibc-2.14 (and above) do *not* *install* the
> rpc headers. What you point at is the *source* tree of glibc (and gcc, but
> that's irrelevant). When you *run* the toolchain, those are *not* the
> locations searched for; the headers are looked for in the *sysroot* of the
> toolchain, which you can find as a second-level sub-directory in the prefix
> you installed the toolchain in.
>
> So, Baruch is right: either downgrade your toolchain to use glibc-2.13,
> or try to use TIRPC. As TIRPC is not yet, AFAIK, at par with glibc's
> implementation, the only sane option so far *is* to downgrade your glibc.
>
> You can of course also search the archives of the buildroot mailing list,
> there are a lot of such reports, and each time the same explanations were
> re-hashed again and again.
>
> Also, search the Internet (eg. with google and these keywords: glibc rpc
> not available, there are literally *tons* of answers; also, search on
> LWN.net, they've had quite a few very good articles on the sunject).
>
> And no, switching to using eglibc instead will not fix it. Neither will
> updating to a newer version (although I think glibc-2.16 did restore this,
> but it's not available from ct-ng, by lack of interest it seems, as nobody
> did feel necessary to post any patch to add latest glibc in ct-ng).
>
> ;-)
>
> Regards,
> Yann E. MORIN.
Hm, i'm prepared little patch for glibc package
that updates glibc to 2.16.0 in buildroot
but rpc.h still not included.
next prev parent reply other threads:[~2012-10-31 12:19 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-31 11:32 [Buildroot] RPC.h and busybox Alexander Khryukin
2012-10-31 11:41 ` Baruch Siach
2012-10-31 11:56 ` Alexander Khryukin
2012-10-31 12:13 ` Yann E. MORIN
2012-10-31 12:19 ` Alexander Khryukin [this message]
2012-10-31 12:13 ` Baruch Siach
2012-10-31 12:28 ` Alexander Khryukin
2012-10-31 14:31 ` Thomas Petazzoni
2012-10-31 14:52 ` Baruch Siach
2012-10-31 14:58 ` Gustavo Zacarias
2012-10-31 15:00 ` Baruch Siach
2012-10-31 15:28 ` Alexander Khryukin
2012-10-31 17:56 ` Yann E. MORIN
2012-10-31 18:54 ` Thomas Petazzoni
2012-10-31 18:44 ` Thomas Petazzoni
2012-10-31 18:19 ` Paul Chavent
2012-10-31 18:24 ` Yann E. MORIN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1351685949.28325.4.camel@localhost \
--to=alexander@mezon.ru \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.