[uClibc]buildroot and coreutils

Claus Rosenberger Claus.Rosenberger at rocnet.de
Tue Feb 18 14:59:48 UTC 2003


it seems if cross-compiling the UTILS_OPEN_MAX is not available and
MAX_N_DESCRIPTORS isn't defined in du.c. perhaps anybody know why
UTILS_OPEN_MAX isn't defined while cross-compiling.


/* The maximum number of simultaneously open file handles that
   may be used by ftw.  */
#define MAX_N_DESCRIPTORS       \
  (UTILS_OPEN_MAX < 20          \
   ? UTILS_OPEN_MAX             \
   : UTILS_OPEN_MAX - 10)




> /tmp/tester/buildroot/build/staging_dir/bin/i386-uclibc-gcc
> -DLOCALEDIR=\"/usr/share/locale\" -DSHAREDIR=\"/usr/share\"
> -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -g -O2 -c
> `test -f 'du.c' || echo './'`du.c
> du.c: In function `du_files':
> du.c:535: `cross' undeclared (first use in this function)
> du.c:535: (Each undeclared identifier is reported only once
> du.c:535: for each function it appears in.)
> du.c:535: parse error before `compiling'
>
>
> any ideas ?
>
>
>> Hi,
>>
>> this error was reported on 14.jan. the solution at this time was to
>> get the new cvs delete build/coreutils... and try again. i have the
>> actual cvs and this error. it there another solution too ?
>>
>> If you meant to cross compile, use `--host'.
>> See `config.log' for more details.
>> make: *** [/tmp/tester/buildroot/build/coreutils-4.5.6/.configured]
>> Error 1






More information about the uClibc mailing list