[Buildroot] [git commit] dhcpcd: needs MMU

Thomas De Schampheleire patrickdepinguin at gmail.com
Mon Nov 4 21:18:06 UTC 2013


Peter Korsgaard <peter at korsgaard.com> wrote:
>commit: http://git.buildroot.net/buildroot/commit/?id=55227475957af0a6a9d1377bc9e2e6103febedba
>branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
>
>dhcpcd fails to build on non-MMU platforms, even with the
>--disable-fork option:
>
>  bind.o: In function `_daemonise':
>  bind.c:(.text+0x62): undefined reference to `_fork'
>  collect2: ld returned 1 exit status
>
>Therefore, we make dhcpcd depend on MMU support, and remove the
>non-MMU condition in the .mk file. More recent versions of dhcpcd do
>support non-MMU properly, but this commit intends to be only a fix.
>
>Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
>Acked-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
>Acked-by: Samuel Martin <s.martin49 at gmail.com>
>---
> package/dhcpcd/Config.in |    1 +
> package/dhcpcd/dhcpcd.mk |    4 ----
> 2 files changed, 1 insertions(+), 4 deletions(-)
>
>diff --git a/package/dhcpcd/Config.in b/package/dhcpcd/Config.in
>index dbde548..ddbc6f4 100644
>--- a/package/dhcpcd/Config.in
>+++ b/package/dhcpcd/Config.in
>@@ -1,5 +1,6 @@
> config BR2_PACKAGE_DHCPCD
> 	depends on BR2_INET_IPV6
>+	depends on BR2_USE_MMU # fork()
> 	bool "dhcpcd"
> 	help
> 	  An RFC2131 compliant DHCP client

If you agree with my latest two patches about adding the necessary dependencies on the comments as well, then we should also added this mmu dependency on the comment.

Best regards,
Thomas




More information about the buildroot mailing list