LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1330|回复: 0

用uClibc编译busybox的问题

[复制链接]
发表于 2006-5-29 19:20:29 | 显示全部楼层 |阅读模式
为了时系统体积减小,使用了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

谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表