[BusyBox] Cross Compile: PATH_MAX undeclared

Kam Lee kamlee at kendin.com
Wed Nov 21 11:32:10 MST 2001


I'm using gcc-2.95.3, glibc 2.2.3, basically I use Erik Mouw's cross-2.95.3.

Below are the output:
arm-linux-gcc -Wall -Wshadow -Os -fomit-frame-pointer -D_GNU_SOURCE  -DBB_VE
R='"0.51"' -DBB_BT='"2001.11.20-02:54+0000"' -DUSE_SYSTEM_PWD_GRP  -Ilibbb -
c libbb/xgetcwd.c -o libbb/xgetcwd.o
libbb/xgetcwd.c: In function `xgetcwd':
libbb/xgetcwd.c:30: `PATH_MAX' undeclared (first use in this function)
libbb/xgetcwd.c:30: (Each undeclared identifier is reported only once
libbb/xgetcwd.c:30: for each function it appears in.)
libbb/xgetcwd.c:27: warning: `path_max' might be used uninitialized in this
function
make: *** [libbb/xgetcwd.o] Error 1

By the way, busybox 0.50 has no problem.
Kam



> On Wed Nov 21, 2001 at 09:50:41AM -0800, Kam Lee wrote:
> > Hi all, I'm trying to cross compile later busybox for arm
> > support, I get a PATH_MAX undeclared error message. What do I
> > need to set up? Compile for local x86 is fine with gcc.
>
> What C library are you using with your cross compiler?  Before
> the 0.60.2 release I tested with glibc 2.2.4, libc5 5.4.46, and
> with uClibc, but it is possible I missed something.  The full
> text of the error message would be useful too.
>
>  -Erik
>
> --
> Erik B. Andersen             http://codepoet-consulting.com/
> --This message was written using 73% post-consumer electrons--
>
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/mailman/listinfo/busybox






More information about the busybox mailing list