diff mbox

logsurfer: needs mmu

Message ID 1380161860.11201.1.camel@phoenix
State Accepted
Commit 8f8a5d84130fa7afb2f7cda10c7c0edec2cb3ae5
Headers show

Commit Message

Axel Lin Sept. 26, 2013, 2:17 a.m. UTC
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Fix below build error:

exec.o: In function `do_exec':
exec.c:(.text+0x14c): undefined reference to `fork'
exec.o: In function `do_pipe_line':
exec.c:(.text+0x218): undefined reference to `fork'
logsurfer.o: In function `runasdaemon':
logsurfer.c:(.text+0x388): undefined reference to `fork'
logsurfer.c:(.text+0x3dc): undefined reference to `fork'
report.o: In function `make_report':
report.c:(.text+0x1a8): undefined reference to `fork'
collect2: ld returned 1 exit status
make[2]: *** [logsurfer] Error 1
make[2]: Leaving directory `/opt/test/buildroot/buildroot/output/build/logsurfer-1.8/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/test/buildroot/buildroot/output/build/logsurfer-1.8'

 package/logsurfer/Config.in | 1 +
 1 file changed, 1 insertion(+)


Peter Korsgaard Sept. 26, 2013, 2:50 p.m. UTC | #1
>>>>> "Axel" == Axel Lin <axel.lin@ingics.com> writes:

 Axel> Signed-off-by: Axel Lin <axel.lin@ingics.com>
 Axel> ---
 Axel> Fix below build error:

 Axel> exec.o: In function `do_exec':
 Axel> exec.c:(.text+0x14c): undefined reference to `fork'
 Axel> exec.o: In function `do_pipe_line':
 Axel> exec.c:(.text+0x218): undefined reference to `fork'
 Axel> logsurfer.o: In function `runasdaemon':
 Axel> logsurfer.c:(.text+0x388): undefined reference to `fork'
 Axel> logsurfer.c:(.text+0x3dc): undefined reference to `fork'
 Axel> report.o: In function `make_report':
 Axel> report.c:(.text+0x1a8): undefined reference to `fork'
 Axel> collect2: ld returned 1 exit status
 Axel> make[2]: *** [logsurfer] Error 1
 Axel> make[2]: Leaving directory `/opt/test/buildroot/buildroot/output/build/logsurfer-1.8/src'
 Axel> make[1]: *** [all] Error 2
 Axel> make[1]: Leaving directory `/opt/test/buildroot/buildroot/output/build/logsurfer-1.8'

Committed, thanks.
diff mbox


diff --git a/package/logsurfer/Config.in b/package/logsurfer/Config.in
index 27d1881..d4218bc 100644
--- a/package/logsurfer/Config.in
+++ b/package/logsurfer/Config.in
@@ -1,5 +1,6 @@ 
 	bool "logsurfer"
+	depends on BR2_USE_MMU # fork()
 	  Logsurfer is a program for monitoring system logs in real-time,
 	  and reporting on the occurrence of events.