diff mbox

[3/3] netkitbase: needs mmu

Message ID 1380693115.31880.2.camel@phoenix
State Accepted
Commit 63682ae471856c93a60b8173bf929006493d374d
Headers show

Commit Message

Axel Lin Oct. 2, 2013, 5:51 a.m. UTC
Fix below build error:

/opt/test/buildroot/buildroot/output/host/usr/bin/arm-buildroot-uclinux-uclibcgnueabi-gcc  inetd.o servtab.o builtins.o sig.o daemon.o setproctitle.o mysleep.o  -o inetd
servtab.o: In function `loadconfigfile.clone.0':
servtab.c:(.text+0x98c): warning: gethostbyname is obsolescent, use getnameinfo() instead.
inetd.o: In function `main':
inetd.c:(.text+0x8a4): undefined reference to `fork'
inetd.c:(.text+0x974): undefined reference to `fork'
daemon.o: In function `daemon':
daemon.c:(.text+0xc): undefined reference to `fork'
collect2: ld returned 1 exit status
make[2]: *** [inetd] Error 1

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 package/netkitbase/Config.in | 1 +
 1 file changed, 1 insertion(+)

Comments

Peter Korsgaard Oct. 2, 2013, 7:35 a.m. UTC | #1
>>>>> "Axel" == Axel Lin <axel.lin@ingics.com> writes:

 Axel> Fix below build error:
 Axel> /opt/test/buildroot/buildroot/output/host/usr/bin/arm-buildroot-uclinux-uclibcgnueabi-gcc  inetd.o servtab.o builtins.o sig.o daemon.o setproctitle.o mysleep.o  -o inetd
 Axel> servtab.o: In function `loadconfigfile.clone.0':
 Axel> servtab.c:(.text+0x98c): warning: gethostbyname is obsolescent, use getnameinfo() instead.
 Axel> inetd.o: In function `main':
 Axel> inetd.c:(.text+0x8a4): undefined reference to `fork'
 Axel> inetd.c:(.text+0x974): undefined reference to `fork'
 Axel> daemon.o: In function `daemon':
 Axel> daemon.c:(.text+0xc): undefined reference to `fork'
 Axel> collect2: ld returned 1 exit status
 Axel> make[2]: *** [inetd] Error 1

Committed, thanks.
diff mbox

Patch

diff --git a/package/netkitbase/Config.in b/package/netkitbase/Config.in
index dd9166c..40833ad 100644
--- a/package/netkitbase/Config.in
+++ b/package/netkitbase/Config.in
@@ -1,6 +1,7 @@ 
 config BR2_PACKAGE_NETKITBASE
 	bool "netkitbase"
 	depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC
+	depends on BR2_USE_MMU # fork()
 	depends on BR2_DEPRECATED
 	help
 	  Old-style inetd.