[BusyBox] errors compiling mke2fs.c in Busybox 0.60.3

Doug Edwards dedwards at synergymicro.com
Tue Jun 25 16:47:03 UTC 2002


Hi all -

I'm trying to compile mke2fs.c into BusyBox 0.60.3 with uClibc 
(snapshot dated June 6) on ppc running the 2.4.12 kernel. When I run 
"make" I get a whole bunch of errors.  If I take the applet out, it 
compiles fine.  There are too many errors to list them all (about 5 
pages of printout), but here's the first few:

gcc -pipe -Wall -Wshadow -g -D_GNU_SOURCE  -DBB_VER='"0.60.3"' 
-DBB_BT='"2002.06
.25-21:28+0000"'  -I.  -c mke2fs.c -o mke2fs.o
In file included from /usr/powerpc-linux-uclibc/include/linux/fs.h:12,
                  from mke2fs.c:33:
/usr/powerpc-linux-uclibc/include/linux/wait.h:4: warning: `WNOHANG' redefined
/usr/powerpc-linux-uclibc/include/bits/waitflags.h:26: warning: this 
is the loca
tion of the previous definition
/usr/powerpc-linux-uclibc/include/linux/wait.h:5: warning: 
`WUNTRACED' redefined
/usr/powerpc-linux-uclibc/include/bits/waitflags.h:27: warning: this 
is the loca
tion of the previous definition
mke2fs.c:37: et/com_err.h: No such file or directory
mke2fs.c:38: uuid/uuid.h: No such file or directory
mke2fs.c:39: ext2fs/ext2fs.h: No such file or directory
mke2fs.c: In function `check_plausibility':
mke2fs.c:122: warning: implicit declaration of function `error_message'
mke2fs.c:122: warning: format argument is not a pointer (arg 4)
mke2fs.c: In function `check_mount':
mke2fs.c:144: `errcode_t' undeclared (first use in this function)
mke2fs.c:144: (Each undeclared identifier is reported only once
mke2fs.c:144: for each function it appears in.)
mke2fs.c:144: parse error before `retval'
mke2fs.c:147: `retval' undeclared (first use in this function)


etc.

and ends with "make: *** [mke2fs.o] Error 1".  It's obviously not 
finding the correct .h files at the beginning.  If I compile with 
glibc, I bypass those errors but get other errors (which I also got 
using uClibc):

gcc -pipe -Wall -Wshadow -g -D_GNU_SOURCE  -DBB_VER='"0.60.3"' 
-DBB_BT='"2002.06
.25-22:15+0000"'  -I.  -c mke2fs.c -o mke2fs.o
In file included from /usr/include/linux/fs.h:12,
                  from mke2fs.c:33:
/usr/include/linux/wait.h:4: warning: `WNOHANG' redefined
/usr/include/bits/waitflags.h:26: warning: this is the location of the previous
definition
/usr/include/linux/wait.h:5: warning: `WUNTRACED' redefined
/usr/include/bits/waitflags.h:27: warning: this is the location of the previous
definition
mke2fs.c:191: warning: declaration of `param' shadows global declaration
mke2fs.c:192: warning: `struct ext2fs_sb' declared inside parameter list
mke2fs.c:192: warning: its scope is only this definition or 
declaration, which i
s probably not what you want.
mke2fs.c: In function `set_fs_defaults':
mke2fs.c:193: warning: declaration of `param' shadows global declaration
mke2fs.c:198: dereferencing pointer to incomplete type
mke2fs.c:198: dereferencing pointer to incomplete type
mke2fs.c:214: dereferencing pointer to incomplete type
mke2fs.c:214: dereferencing pointer to incomplete type
mke2fs.c:219: dereferencing pointer to incomplete type
mke2fs.c:219: dereferencing pointer to incomplete type
mke2fs.c: In function `show_stats':
mke2fs.c:535: dereferencing pointer to incomplete type
mke2fs.c:537: dereferencing pointer to incomplete type
mke2fs.c:540: dereferencing pointer to incomplete type
mke2fs.c:540: dereferencing pointer to incomplete type
mke2fs.c:551: dereferencing pointer to incomplete type
mke2fs.c:553: dereferencing pointer to incomplete type
mke2fs.c:554: dereferencing pointer to incomplete type
mke2fs.c:555: dereferencing pointer to incomplete type
mke2fs.c:557: dereferencing pointer to incomplete type
mke2fs.c:558: dereferencing pointer to incomplete type
mke2fs.c:558: dereferencing pointer to incomplete type
mke2fs.c:559: dereferencing pointer to incomplete type
mke2fs.c:561: warning: long unsigned int format, dgrp_t arg (arg 2)
mke2fs.c:563: dereferencing pointer to incomplete type
mke2fs.c:563: dereferencing pointer to incomplete type
mke2fs.c:564: dereferencing pointer to incomplete type
mke2fs.c:572: dereferencing pointer to incomplete type
mke2fs.c:575: dereferencing pointer to incomplete type
mke2fs.c: In function `PRS':
mke2fs.c:873: warning: passing arg 2 of `set_fs_defaults' from 
incompatible poin
ter type
mke2fs.c:906: dereferencing pointer to incomplete type
mke2fs.c: In function `mke2fs_main':
mke2fs.c:934: dereferencing pointer to incomplete type
mke2fs.c:948: dereferencing pointer to incomplete type
mke2fs.c:948: dereferencing pointer to incomplete type
mke2fs.c:949: dereferencing pointer to incomplete type
mke2fs.c:950: dereferencing pointer to incomplete type
mke2fs.c:957: dereferencing pointer to incomplete type
mke2fs.c:957: dereferencing pointer to incomplete type
mke2fs.c:958: dereferencing pointer to incomplete type
mke2fs.c:959: dereferencing pointer to incomplete type
make: *** [mke2fs.o] Error 1

Has anyone has anyone had success using this applet?  I found it at:

ftp://ftp.simtreas.ru/pub/my/bb/spec/mke2fs.c.gz

If anyone has an idea why I'm getting these errors, I'd be grateful.

Thanks,

Doug Edwards



More information about the busybox mailing list