I don't know who is to blame here for the problem? Maybe glibc-2.16 or gcc-4.7.1 or both? Anyway.... trying to recompile sys-apps/busybox-1.20.1 (and 1.20.2) with glibc-2.16 and gcc-4.7.1 results in a failure(s): ----------------------------- loginutils/passwd.c: In function 'passwd_main': loginutils/passwd.c:104:16: error: storage size of 'rlimit_fsize' isn't known loginutils/passwd.c:188:2: warning: implicit declaration of function 'setrlimit' [-Wimplicit-function-declaration] loginutils/passwd.c:188:12: error: 'RLIMIT_FSIZE' undeclared (first use in this function) loginutils/passwd.c:188:12: note: each undeclared identifier is reported only once for each function it appears in loginutils/passwd.c:104:16: warning: unused variable 'rlimit_fsize' [-Wunused-variable] make[1]: *** [loginutils/passwd.o] Error 1 make: *** [loginutils] Error 2 ----------------------------- ----------------------------- networking/ntpd.c: In function 'ntp_init': networking/ntpd.c:1973:3: warning: format not a string literal and no format arguments [-Wformat-security] networking/ntpd.c:2015:3: warning: implicit declaration of function 'setpriority' [-Wimplicit-function-declaration] networking/ntpd.c:2015:15: error: 'PRIO_PROCESS' undeclared (first use in this function) networking/ntpd.c:2015:15: note: each undeclared identifier is reported only once for each function it appears in make[1]: *** [networking/ntpd.o] Error 1 make: *** [networking] Error 2 ----------------------------- ----------------------------- miscutils/time.c:23:16: error: field 'ru' has incomplete type make[1]: *** [miscutils/time.o] Error 1 make: *** [miscutils] Error 2 ----------------------------- ----------------------------- runit/chpst.c: In function 'limit': runit/chpst.c:221:16: error: storage size of 'r' isn't known runit/chpst.c:224:2: warning: implicit declaration of function 'getrlimit' [-Wimplicit-function-declaration] runit/chpst.c:229:2: warning: implicit declaration of function 'setrlimit' [-Wimplicit-function-declaration] runit/chpst.c:221:16: warning: unused variable 'r' [-Wunused-variable] runit/chpst.c: At top level: runit/chpst.c:219:13: warning: 'limit' defined but not used [-Wunused-function] make[1]: *** [runit/chpst.o] Error 1 make: *** [runit] Error 2 ----------------------------- ----------------------------- shell/shell_common.c:373:17: warning: 'struct rlimit' declared inside parameter list [enabled by default] shell/shell_common.c:373:17: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] shell/shell_common.c: In function 'printlim': shell/shell_common.c:375:2: error: unknown type name 'rlim_t' shell/shell_common.c:377:13: error: dereferencing pointer to incomplete type shell/shell_common.c:379:14: error: dereferencing pointer to incomplete type shell/shell_common.c:381:13: error: 'RLIM_INFINITY' undeclared (first use in this function) shell/shell_common.c:381:13: note: each undeclared identifier is reported only once for each function it appears in shell/shell_common.c: In function 'shell_builtin_ulimit': shell/shell_common.c:416:17: error: storage size of 'limit' isn't known shell/shell_common.c:433:5: warning: implicit declaration of function 'getrlimit' [-Wimplicit-function-declaration] shell/shell_common.c:452:6: error: unknown type name 'rlim_t' shell/shell_common.c:455:13: error: 'RLIM_INFINITY' undeclared (first use in this function) shell/shell_common.c:480:6: warning: implicit declaration of function 'setrlimit' [-Wimplicit-function-declaration] shell/shell_common.c:416:17: warning: unused variable 'limit' [-Wunused-variable] make[1]: *** [shell/shell_common.o] Error 1 make: *** [shell] Error 2 ----------------------------- All of the above errors can be solved by adding "#include <sys/resource.h>" to the various source files: loginutils/passwd.c miscutils/time.c networking/ntpd.c runit/chpst.c shell/shell_common.c I checked version 1.20.2 (not in portage yet) and it has the same issue. Reproducible: Always
Created attachment 317326 [details, diff] busybox-1.20.1-sys_resource.patch
Thank you! Worked nicely (amd64)
should be all set now in the tree; thanks for the report! Commit message: Version bump and fix for building with glibc-2.16 http://sources.gentoo.org/sys-apps/busybox/busybox-1.20.2.ebuild?rev=1.1 http://sources.gentoo.org/sys-apps/busybox/files/busybox-1.20.2-glibc-sys-resource.patch?rev=1.1
(In reply to comment #3) > Commit message: Version bump and fix for building with glibc-2.16 > http://sources.gentoo.org/sys-apps/busybox/busybox-1.20.2.ebuild?rev=1.1 > http://sources.gentoo.org/sys-apps/busybox/files/busybox-1.20.2-glibc-sys- > resource.patch?rev=1.1 Can you please apply that to sys-apps/busybox-1.20.1, too?
(In reply to comment #4) i don't see the point
(In reply to comment #5) > i don't see the point bug #430758 comment #1 - I currently have to use the p-masked glibc-2.16 to compile my system.
(In reply to comment #6) then use unstable packages