busybox compile error form ARM core???

Peter S. Mazinger ps.m at gmx.net
Tue May 30 01:01:50 PDT 2006


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__

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
> 

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2



More information about the busybox mailing list