problems to compile busybox 1.10.4

Denys Vlasenko vda.linux at googlemail.com
Fri Jun 27 13:31:18 UTC 2008


On Friday 27 June 2008 13:59, Reinhard Thies wrote:
> Hi,
> I am cross compiling busybox using eldk 4.1 (ARCH=ppc CROSS_COMPILE=ppc_4xx- ) 
> and got the following error:
> 
>   CC      libbb/bb_qsort.o
>   CC      libbb/bb_strtonum.o
> libbb/bb_strtonum.c: In function 'ret_ERANGE':
> libbb/bb_strtonum.c:26: error: 'ULLONG_MAX' undeclared (first use in this 
> function)
> libbb/bb_strtonum.c:26: error: (Each undeclared identifier is reported only 
> once
> libbb/bb_strtonum.c:26: error: for each function it appears in.)
> make[1]: *** [libbb/bb_strtonum.o] Error 1
> make: *** [libbb] Error 2
> 
> Where is ULLONG_MAX defined ?
> I wasn't able to find it.

It should be in limits.h, and that one is included in libbb.h,
so you should get it.

Makefile.flags says:

# -std=gnu99 needed for [U]LLONG_MAX on some systems
CPPFLAGS += $(call cc-option,-std=gnu99,)

Obviously for your system this is not enough.

I guess you can just hack yout limits.h and add ULLONG_MAX:

/* Minimum and maximum values a `signed long long int' can hold.  */
#   define LLONG_MAX    9223372036854775807LL
#   define LLONG_MIN    (-LLONG_MAX - 1LL)

/* Maximum value an `unsigned long long int' can hold.  (Minimum is 0.)  */
#   define ULLONG_MAX   18446744073709551615ULL

--
vda



More information about the busybox mailing list