Skip to contentSkip to conversation

logrotate: needs mmu

PATCH New Axel Lin 2 participants 2 messages Oct 1, 2013

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH v2 1/2 logrotate: needs mmu

---
v2: Fix trivial typo in the subject line

Fix below build error:

logrotate.o: In function `switch_user_permanently':
/opt/test/buildroot/buildroot/output/build/logrotate-3.8.4/logrotate.c:129: undefined reference to fork' logrotate.o: In function removeLogFile':
/opt/test/buildroot/buildroot/output/build/logrotate-3.8.4/logrotate.c:431: undefined reference to fork' logrotate.o: In function mailLog':
/opt/test/buildroot/buildroot/output/build/logrotate-3.8.4/logrotate.c:597: undefined reference to fork' /opt/test/buildroot/buildroot/output/build/logrotate-3.8.4/logrotate.c:615: undefined reference to fork' logrotate.o: In function `compressLogFile':
/opt/test/buildroot/buildroot/output/build/logrotate-3.8.4/logrotate.c:533: undefined reference to `fork'
collect2: ld returned 1 exit status
make[1]: *** [logrotate] Error 1

 package/logrotate/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/logrotate/Config.in +1 -0
index 0d0ec61..bc7b295 100644
@@ -2,6 +2,7 @@ config BR2_PACKAGE_LOGROTATE
 	bool "logrotate"
 	select BR2_PACKAGE_POPT
 	depends on BR2_USE_WCHAR
+	depends on BR2_USE_MMU # fork()
 	help
 	  A simple program to rotate logs.
 
Signature · 1 line
1.8.1.2
#1 lore raw

PATCH v2 1/2 logrotate: needs mmu

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Axel" == Axel Lin <[email protected]> writes:

Axel> Signed-off-by: Axel Lin <[email protected]> Axel> ---
Axel> v2: Fix trivial typo in the subject line

Axel> Fix below build error:

Axel> logrotate.o: In function `switch_user_permanently':
Axel> /opt/test/buildroot/buildroot/output/build/logrotate-3.8.4/logrotate.c:129: undefined reference to fork' Axel> logrotate.o: In function removeLogFile':
Axel> /opt/test/buildroot/buildroot/output/build/logrotate-3.8.4/logrotate.c:431: undefined reference to fork' Axel> logrotate.o: In function mailLog':
Axel> /opt/test/buildroot/buildroot/output/build/logrotate-3.8.4/logrotate.c:597: undefined reference to fork' Axel> /opt/test/buildroot/buildroot/output/build/logrotate-3.8.4/logrotate.c:615: undefined reference to fork' Axel> logrotate.o: In function `compressLogFile':
Axel> /opt/test/buildroot/buildroot/output/build/logrotate-3.8.4/logrotate.c:533: undefined reference to `fork' Axel> collect2: ld returned 1 exit status
Axel> make[1]: *** [logrotate] Error 1

Committed with this added to the commit message, thanks.

Signature · 1 line
Bye, Peter Korsgaard