Skip to contentSkip to conversation

dhcpcd: needs MMU

PATCH Superseded Thomas Petazzoni 2 participants 2 messages Nov 2, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dhcpcd: needs MMU

dhcpcd fails to build on non-MMU platforms:

bind.o: In function `_daemonise':
bind.c:(.text+0x62): undefined reference to `_fork'
collect2: ld returned 1 exit status

---
 package/dhcpcd/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/dhcpcd/Config.in +1 -0
index dbde548..ddbc6f4 100644
@@ -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
Signature · 1 line
1.8.1.2
#1 lore raw

PATCH 1/1 dhcpcd: needs MMU

Quoted 16 lines · Thomas Petazzoni

dhcpcd fails to build on non-MMU platforms:

bind.o: In function `_daemonise':
bind.c:(.text+0x62): undefined reference to `_fork'
collect2: ld returned 1 exit status

---
 package/dhcpcd/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/dhcpcd/Config.in +0 -0
index dbde548..ddbc6f4 100644

package/dhcpcd/Config.in line 6

Quoted 6 lines
package/dhcpcd/Config.in +1 -0
@@ -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

Hi.
You could remove the MMU kludge in the mk file too since it's useless. On related news version 6.1.0 can be built on nommu, however at the moment the upstream site has been unreachable for the last couple of days so fetching from some mirror is the only option [the mk file needs a few tweaks too].
Regards.