AW: AW: bb 1.20.2 with glibc 2.16.0
Priebe, Sebastian
Sebastian.Priebe at cadcon.de
Fri Jan 11 14:33:15 UTC 2013
Hello Tito,
I think there should be no ifdefs necessary.
The header is also needed in older glibc versions, but was probably already included by some other header accidentally.
Sebastian
==========================================
CADCON
Ingenieurgesellschaft mbH & Co. KG
Geschaeftsfuehrer: Robert Bauer, Andreas Gundel
Sitz der Gesellschaft: D-86368 Gersthofen
Registergericht: Amtsgericht Augsburg HRA 14521
==========================================
-----Ursprüngliche Nachricht-----
Von: busybox-bounces at busybox.net [mailto:busybox-bounces at busybox.net] Im Auftrag von Tito
Gesendet: Freitag, 11. Januar 2013 15:07
An: busybox at busybox.net
Betreff: Re: AW: bb 1.20.2 with glibc 2.16.0
On Friday 11 January 2013 14:48:18 Priebe, Sebastian wrote:
> Hello Johannes,
>
> thanks for the quick answer.
> I had the same idea and started building.
> The added include fixed the problem.
>
> Should this be added to the next release?
> Who is resonsible for that?
>
> Thanks, again.
> Sebastian
>
> 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
>
>
>
> ==========================================
> CADCON
> Ingenieurgesellschaft mbH & Co. KG
> Geschaeftsfuehrer: Robert Bauer, Andreas Gundel Sitz der Gesellschaft:
> D-86368 Gersthofen
> Registergericht: Amtsgericht Augsburg HRA 14521
> ==========================================
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
>
Hi,
maybe some ifdefs around it to avoid
the header being sucked in for previous glibc versions that don't need it?
Ciao,
Tito
_______________________________________________
busybox mailing list
busybox at busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
More information about the busybox
mailing list