|
为了时系统体积减小,使用了busybox.
打算在uClibc上编译busybox.
以下是我认为的大概的方式:
由于uClibc需要toolchain支持.于是下载了toolchain.
然后编译uClibc.安装uClibc
然后编译busybox-1.1.3
我的问题是
1.上面的方式我试过了,结果是busybox编译不同过,在LINK busybox_unstripped时出现错误
In file included from /home/simple/busybox/busybox-1.1.3/e2fsprogs/ext2fs/jfs_user.h:6,
from /home/simple/busybox/busybox-1.1.3/e2fsprogs/ext2fs/mkjournal.c:38:
/home/simple/busybox/busybox-1.1.3/e2fsprogs/ext2fs/kernel-jbd.h:780: error: conflicting types for ‘journal_recover’
/home/simple/busybox/busybox-1.1.3/e2fsprogs/e2fsck.c:11766: error: previous definition of ‘journal_recover’ was here
/home/simple/busybox/busybox-1.1.3/e2fsprogs/ext2fs/kernel-jbd.h:781: error: conflicting types for ‘journal_skip_recovery’
/home/simple/busybox/busybox-1.1.3/e2fsprogs/ext2fs/kernel-jbd.h:781: error: previous declaration of ‘journal_skip_recovery’ was here
/home/simple/busybox/busybox-1.1.3/e2fsprogs/ext2fs/kernel-jbd.h:784: error: conflicting types for ‘journal_init_revoke’
/home/simple/busybox/busybox-1.1.3/e2fsprogs/e2fsck.c:13067: error: previous definition of ‘journal_init_revoke’ was here
/home/simple/busybox/busybox-1.1.3/e2fsprogs/ext2fs/kernel-jbd.h:789: error: conflicting types for ‘journal_set_revoke’
/home/simple/busybox/busybox-1.1.3/e2fsprogs/e2fsck.c:13146: error: previous definition of ‘journal_set_revoke’ was here
/home/simple/busybox/busybox-1.1.3/e2fsprogs/ext2fs/kernel-jbd.h:790: error: conflicting types for ‘journal_test_revoke’
/home/simple/busybox/busybox-1.1.3/e2fsprogs/e2fsck.c:13169: error: previous definition of ‘journal_test_revoke’ was here
/home/simple/busybox/busybox-1.1.3/e2fsprogs/ext2fs/kernel-jbd.h:791: error: conflicting types for ‘journal_clear_revoke’
/home/simple/busybox/busybox-1.1.3/e2fsprogs/e2fsck.c:13186: error: previous definition of ‘journal_clear_revoke’ was here
/home/simple/busybox/busybox-1.1.3/e2fsprogs/ext2fs/kernel-jbd.h:794: error: conflicting types for ‘journal_destroy_revoke’
/home/simple/busybox/busybox-1.1.3/e2fsprogs/e2fsck.c:13103: error: previous definition of ‘journal_destroy_revoke’ was here
make[1]: *** [busybox_unstripped] Error 1
make: *** [_all] Error 2
2.用不用把toolchain里的那些头文件之类的添加到原系统对应的地方.
3.怎么知道编译一个程序用的时uClibc还是glibc
谢谢! |
|