[BusyBox] [libbb/loop.c] error compiling with uclibc

Sander Knopper sander at knopper.tk
Sun Aug 22 13:02:14 UTC 2004


Op zondag 22 augustus 2004 14:53, schreef Aurelien Jacobs:
> On Sun, 22 Aug 2004 14:45:07 +0200
>
> Sander Knopper <sander at knopper.tk> wrote:
> > Hi all,
> >
> > I've just installed uclibc 0.9.21 and I'm trying to compile busybox
> > with it. Unfortunately I'm getting this error after typing:
> >
> > "make CC=/usr/i386-linux-uclibc/usr/bin/gcc"
> >
> > I already did "make menuconfig" and "make clean".
> >
> > This is the error (actually errors) I get:
> >
> > /usr/i386-linux-uclibc/usr/bin/gcc -I./include -Wall
> > -Wstrict-prototypes -Wshadow -Os -march=i386
> > -mpreferred-stack-boundary=2 -falign-functions=0 -falign-jumps=0
> > -falign-loops=0 -fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG     -c -o
> > libbb/loop.o libbb/loop.c libbb/loop.c:52: error: syntax error before
> > "__kernel_old_dev_t" libbb/loop.c:52: warning: no semicolon at end of
> > struct or union libbb/loop.c:54: error: syntax error before
> > "lo_rdevice" libbb/loop.c:54: warning: type defaults to `int' in
> > declaration of `lo_rdevice'
> > libbb/loop.c:54: warning: data definition has no type or storage class
> > libbb/loop.c:63: error: syntax error before '}' token
> > libbb/loop.c: In function `set_loop':
> > libbb/loop.c:85: error: storage size of `loopinfo' isn't known
> > libbb/loop.c:85: warning: unused variable `loopinfo'
> > libbb/loop.c: In function `find_unused_loop_device':
> > libbb/loop.c:130: error: storage size of `loopinfo' isn't known
> > libbb/loop.c:130: warning: unused variable `loopinfo'
> > make: *** [libbb/loop.o] Error 1
> >
> >
> >
> > Is there someone who knows what the problem is?
>
> This is something I reported some days ago. I first tried to propose
> a PATCH, but finaly found that the bug was in uClibc-0.9.26. It is
> corrected in current uClibc CVS.
>
> In facts you simply need
> typedef __kernel_dev_t  __kernel_old_dev_t;
> in uClibc/include/bits/kernel_types.h
>
> Aurel

Ok, thanks!



More information about the busybox mailing list