bb 1.20.2 with glibc 2.16.0

Johannes Stezenbach js at sig21.net
Fri Jan 11 12:29:35 UTC 2013


On Fri, Jan 11, 2013 at 11:12:56AM +0000, Priebe, Sebastian wrote:
> I wanted to use a new toolchain for our embedded project.
> The new toolchain uses glibc v2.16.0. The glibc is build with '--enable-kernel=2.6.32'.
> While trying to build busybox I got the following errors:
> 
> miscutils/time.c:23:16: error: field 'ru' has incomplete type
> networking/inetd.c:307:2: error: unknown type name 'rlim_t'
> networking/inetd.c:308:16: error: field 'rlim_ofile' has incomplete type
> networking/inetd.c: In function 'bump_nofile':
> networking/inetd.c:459:16: error: storage size of 'rl' isn't known
> networking/inetd.c:462:2: warning: implicit declaration of function 'getrlimit' [-Wimplicit-function-declaration]
> networking/inetd.c:462:12: error: 'RLIMIT_OFILE' undeclared (first use in this function)
> networking/inetd.c:462:12: note: each undeclared identifier is reported only once for each function it appears in
> networking/inetd.c:471:2: warning: implicit declaration of function 'setrlimit' [-Wimplicit-function-declaration]
> networking/inetd.c:459:16: warning: unused variable 'rl' [-Wunused-variable]
> networking/inetd.c: In function 'add_fd_to_set':
> networking/inetd.c:497:9: error: 'rlim_t' undeclared (first use in this function)
> networking/inetd.c:497:16: error: expected ')' before 'fd'
> networking/inetd.c: In function 'recalculate_maxsock':
> networking/inetd.c:517:7: error: 'rlim_t' undeclared (first use in this function)
> networking/inetd.c: In function 'inetd_main':
> networking/inetd.c:1185:12: error: 'RLIMIT_OFILE' undeclared (first use in this function)
> networking/inetd.c:1187:24: error: 'RLIM_INFINITY' undeclared (first use in this function)
> 
> I already took a look at the headers but couldn't figure out the problem.
> Has anyone build busybox with glibc v2.16.0 or higher?
> Any help appreciated.

Does this fix it?

--- src/include/libbb.h (revision 497239)
+++ src/include/libbb.h (revision 497240)
@@ -39,6 +39,7 @@
 #include <sys/stat.h>
 #include <sys/time.h>
 #include <sys/types.h>
+#include <sys/resource.h>
 #ifndef major
 # include <sys/sysmacros.h>
 #endif


Johannes


More information about the busybox mailing list