Problem building BB 1.2 daemons for uClinux ARM
walter harms
wharms at bfs.de
Mon Aug 14 15:28:27 UTC 2006
the daemon function is a series of fork()s. i guess that is the
background. /* uclibc does not implement daemon() for no-mmu systems
therefore the busybox call for daemon() is disabled. i guess there are
default ways to implement it in mmu-less systems.
bit googling showed: http://ipodlinux.org/Experimental_Userland
#if defined(__UCLIBC__) && !defined(__ARCH_HAS_MMU__)
#define daemon clone
#endif
since clone() is a syscall it should work even wenn !defined(__UCLIBC__)
can you please check it ??
(me has an old mmu less board somewhere but not operational)
re,
wh
Ian Oliver wrote:
> Hi,
>
> I've worked through a few problems building BusyBox for an MMU-less ARM
> and with the help of much googling have got executables that work.
>
> My current make line is -
> LDFLAGS="-Wl,-elf2flt" make busybox_unstripped
>
> But if I enable telnetd I get this error -
>
> busybox_unstripped.elf2flt: In function `bb_xdaemon':
> busybox_unstripped.elf2flt(.text.bb_xdaemon+0x4): undefined reference
> to `daemon'
>
> I then started linking with -
> LDFLAGS="-Wl,-elf2flt" EXTRA_CFLAGS="-DBB_NOMMU" make
> busybox_unstripped
>
> I now get -
>
> busybox_unstripped.elf2flt: In function `telnetd_main':
> busybox_unstripped.elf2flt(.text.telnetd_main+0x1e0): undefined
> reference to `bb_xdaemon'
>
> This is odd as, 1) I'd have thought the make would pick up the BB_NOMMU
> automatically, 2) it still isn't building!
>
> My toolkit is -
> gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from
> http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from
> http://www.snapgear.com/)
>
> and this has successfully built working uClinux kernel.
>
> Suggestions?
>
> Thanks
>
> Ian
>
>
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
>
>
>
More information about the busybox
mailing list