busybox compile error form ARM core???

Rob Landley rob at landley.net
Tue May 30 18:31:56 UTC 2006


On Tuesday 30 May 2006 4:01 am, Peter S. Mazinger wrote:
> On Tue, 30 May 2006, Rob Landley wrote:
> > On Tuesday 30 May 2006 2:20 am, yangm wrote:
> > > when complie busybox for ARM platform by make install ,some errors
> > > printed as below:
> > >
> > > /yangm/busybox-1.00/networking/networking.a(inetd.o): In function
> > > `inetd_main':
> > > inetd.o(.text+0xdd4): undefined reference to `daemon'
> >
> > It still can't find the function daemon() in your libc.so
> >
> > We do have a nommu version of that function, but apparently it isn't
> > triggering.  There's this chunk of code, circa line 1314 or so of
> > inetd.c:
> >
> >   if (!(opt & 2)) {
> > #if defined(__uClinux__)
>
> for uClibc-svn non-MMU the condition to use the internal version would be
>
> #if defined __UCLIBC__ && !defined __ARCH_USE_MMU__

We should have a BB_NOMMU set in platform.h, and use that as the test in the 
actual C code.

I just put it in the TODO list.  (Today's crazy again...)

Rob

> Peter
>
> >     /* reexec for vfork() do continue parent */
> >     vfork_daemon_rexec (0, 0, argc, argv, "-f");
> > #else
> >     daemon (0, 0); /* bb_xdaemon? */
> > #endif /* uClinux */
> >   } else {
> >
> > > syslogd.o(.text+0x9f4): undefined reference to `daemon'
> > > collect2: ld returned 1 exit status
> > > make: *** [busybox] Error 1
> > > [root at yangm-vmware busybox-1.00]#
> >
> > And you're using an oldish version.  (Dunno what the code looks like in
> > that version.)
> >
> > > list below is my menuconfig:
> > > │
> > > ┌──────────────────────â”
> > >€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”
> > >€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”
> > > │ │ │ [*] Build BusyBox as a static binary (no shared libs) │
> > > │ │ │ [*] Build with Large File Support (for accessing files > 2
> > > GB) │ │ │ │ [*] Do you want to build BusyBox with a Cross
> > > Compiler? │ │ │ │ (/bin/arm-elf-gcc/bin/arm-elf-) Cross
> > > Compiler prefix │ │ │ │ (-Dfork=vfork ) Any extra CFLAGS
> > > options for the compiler?
> >
> > That doesn't tell us about your C library.
> >
> > Rob

-- 
Never bet against the cheap plastic solution.



More information about the busybox mailing list