Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 424954 - sys-apps/busybox-1.20.1 (and 1.20.2) failing to compile with glibc-2.16
Summary: sys-apps/busybox-1.20.1 (and 1.20.2) failing to compile with glibc-2.16
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: glibc-2.16
  Show dependency tree
 
Reported: 2012-07-05 17:37 UTC by Stevan Bajić
Modified: 2012-08-21 15:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
busybox-1.20.1-sys_resource.patch (busybox-1.20.1-sys_resource.patch,1.42 KB, patch)
2012-07-05 17:38 UTC, Stevan Bajić
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stevan Bajić 2012-07-05 17:37:53 UTC
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
Comment 1 Stevan Bajić 2012-07-05 17:38:22 UTC
Created attachment 317326 [details, diff]
busybox-1.20.1-sys_resource.patch
Comment 2 Mads 2012-07-05 17:54:40 UTC
Thank you! Worked nicely (amd64)
Comment 3 SpanKY gentoo-dev 2012-07-06 03:37:56 UTC
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
Comment 4 Dennis Schridde 2012-08-20 15:02:20 UTC
(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?
Comment 5 SpanKY gentoo-dev 2012-08-20 18:02:05 UTC
(In reply to comment #4)

i don't see the point
Comment 6 Dennis Schridde 2012-08-21 13:07:26 UTC
(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.
Comment 7 SpanKY gentoo-dev 2012-08-21 15:08:05 UTC
(In reply to comment #6)

then use unstable packages