small patch to fix android ndk build of busybox

Hin-Tak Leung htl10 at users.sourceforge.net
Thu Jan 5 15:06:06 UTC 2012


--- On Thu, 5/1/12, Denys Vlasenko <vda.linux at googlemail.com> wrote:

> On Wed, Jan 4, 2012 at 5:49 PM,
> Hin-Tak Leung
> <htl10 at users.sourceforge.net>
> wrote:
> > Hi,
> >
> > I cannot see why or since when this change is needed
> since the last time I built busybox ( a few months ago), as
> neither configs/android2_defconfig nor libpwdgrp nor libbb
> has changed much recently; but the change seems to be
> correct or at least should cause no harm, so here it is.
> 
> > CONFIG_USE_BB_PWD_GRP=y
> 
> This will make bbox use internal parsing routines for
> /etc/passwd
> and /etc/group files - because we expect to live on a
> ordinary Unix.
> 
> My understanding is that Android does not HAVE those
> files,
> so using internal parsing routines which expect them is
> a wrong thing to do.
> 
> So I am not applying the patch - need to understand the
> problem better.
> 
> Can you elaborate - what exactly does not compile for you?

The error message was in the change-log, included in the patch:

---------
    libbb/lib.a(change_identity.o): In function `change_identity':
    change_identity.c:(.text.change_identity+0x28): undefined reference to `endgrent'
    collect2: ld returned 1 exit status
    make: *** [busybox_unstripped] Error 1
---------

Maybe the problem is in libbb/change_identity.c ?




More information about the busybox mailing list