Hello,
I have a problem with petalinux-v0-20-rc3 release using linux-2.6.x for the
kernel, compiling e2fsck. There appears to be several header files not
included, and before I spent time determining the missing header files. I
want to know if anyone else has seen this problem. My kernel configuration
is the Xilinx/ML401, and using the microblaze gcc toolchain.
Any pointers or help is appreciated.
Jeff Fellin
CorEdge Networks
The compilation errors are:
make[3]: Entering directory
`/petalinux-v0.20-rc3/software/petalinux-dist/user/e2fsprogs/e2fsck'
ucfront-gcc microblaze-uclinux-gcc
-I/petalinux-v0.20-rc3/software/petalinux-dist/user/e2fsprogs/lib
-I/petalinux-v0.20-rc3/software/petalinux-dist/user/e2fsprogs/include
-I/petalinux-v0.20-rc3/software/petalinux-dist/user/e2fsprogs/lib
-I/petalinux-v0.20-rc3/software/petalinux-dist/user/e2fsprogs/include
-Os -g -fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall
-mno-xl-soft-mul
-mno-xl-soft-div -mxl-barrel-shift -mhard-float
-DEMBED -Dlinux -D__linux__ -Dunix -D__uClinux__ -DLINUX
-DWORDS_BIGENDIAN=1 -DENABLE_SWAPFS=1
-DUSE_BSD=1 -D__USE_BSD=1 -DPACKAGE=\"e2fsprogs\" -DVERSION=\"1.25\"
-DSTDC_HEADERS=1
-DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1
-DHAVE_MMAP=
1 -DHAVE_ARGZ_H=1 -DHAVE_LIMITS_H=1 -DHAVE_LOCALE_H=1 -DHAVE_NL_TYPES_H=1
-DHAVE_MALLOC_H=1
-DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETCWD=1
-DHAVE_MUNMAP=1
-DHAVE_PUTENV=1 -DHAVE_SETENV=1 -DHAVE_SETLOCALE=1 -DHAVE_STRCHR=1
-DHAVE_STRCASECMP=1
-DHAVE_STRDUP=1 -DHAVE_STPCPY=1 -DHAVE_LC_MESSAGES=1 -DHAVE_STDL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_STRCHR=1 -DHAVE_STRCASECMP=1
-DHAVE_STRDUP=1
-DHAVE_STPCPY=1 -DHAVE_LC_MESSAGES=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1
-DHAVE_STDARG_H=1
-DHAVE_ERRNO_H=1 -DHAVE_MALLOC_H=1 -DHAVE_MNTENT_H=1 -DHAVE_PATHS_H=1
-DHAVE_DIRENT_H=1
-DHAVE_GETOPT_H=1 -DHAVE_SETJMP_H=1 -DHAVE_SIGNAL_H=1 -DHAVE_TERMIOS_H=1
-DHAVE_LINUX_FD_H=1
-DHAVE_LINUX_MAJOR_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_MOUNT_H=1
-DHAVE_SYS_SYSMACROS_H=1
-DHAVE_SYS_TIME_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_NET_IF_H=1
-DHAVE_NETINET_IN_H=1 -DHAVE_VPRINTF=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4
-DSIZEOF_LONG=4
-DSIZEOF_LONG_LONG=8 -DHAVE_GETRUSAGE=1 -DHAVE_LLSEEK=1 -DHAVE_STRCASECMP=1
-DHAVE_SRANDOM=1
-DHAVE_FCHOWN=1 -DHAVE_FDATASYNC=1 -DHAVE_STRNLEN=1 -DHAVE_EXT2_IOCTLS=1
-DRESOURCE_TRACK
-c -o revoke.o revoke.c
In file included from
/petalinux-v0.20-rc3/software/petalinux-dist/user/e2fsprogs/lib/ext2fs/ext2f
s.h:76,
from e2fsck.h:31,
from jfs_user.h:15,
from revoke.c:61:
/petalinux-v0.20-rc3/software/petalinux-dist/user/e2fsprogs/lib/ext2fs/ext2_
err.h:100: warning: "struct et_list" declared inside parameter list
/petalinux-v0.20-rc3/software/petalinux-dist/user/e2fsprogs/lib/ext2fs/ext2_
err.h:100: warning: its scope is only this definition or declaration, which
is probably not what you want
In file included from
/petalinux-v0.20-rc3/software/petalinux-dist/user/e2fsprogs/include/linux/jf
s_compat.h:5,
from
/petalinux-v0.20-rc3/software/petalinux-dist/user/e2fsprogs/include/linux/jf
s.h:21,
from jfs_user.h:95,
from revoke.c:61:
/petalinux-v0.20-rc3/software/petalinux-dist/include/include-linux/linux/lis
t.h:902:2: warning: #warning "don't include kernel headers in userspace"
revoke.c:82: error: field `hash' has incomplete type
revoke.c: In function `insert_revoke_hash':
revoke.c:131: error: invalid use of undefined type `struct list_head'
revoke.c:131: error: dereferencing pointer to incomplete type
revoke.c:132: warning: implicit declaration of function `list_add'
revoke.c: In function `find_revoke_record':
revoke.c:144: error: invalid use of undefined type `struct list_head'
revoke.c:144: error: dereferencing pointer to incomplete type
revoke.c:146: error: dereferencing pointer to incomplete type
revoke.c: In function `journal_init_revoke':
revoke.c:196: error: invalid application of `sizeof' to incomplete type
`list_head'
revoke.c:204: warning: implicit declaration of function `INIT_LIST_HEAD'
revoke.c:204: error: invalid use of undefined type `struct list_head'
revoke.c:204: error: dereferencing pointer to incomplete type
revoke.c: In function `journal_destroy_revoke':
revoke.c:222: error: invalid use of undefined type `struct list_head'
revoke.c:222: error: dereferencing pointer to incomplete type
revoke.c:223: warning: implicit declaration of function `list_empty'
revoke.c: In function `journal_clear_revoke':
revoke.c:537: error: invalid use of undefined type `struct list_head'
revoke.c:537: error: dereferencing pointer to incomplete type
revoke.c:539: error: dereferencing pointer to incomplete type
revoke.c:540: warning: implicit declaration of function `list_del'
make[3]: *** [revoke.o] Error 1
make[3]: Leaving directory
`/petalinux-v0.20-rc3/software/petalinux-dist/user/e2fsprogs/e2fsck'
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev