Chinaunix首页 | 论坛 | 博客
  • 博客访问: 509532
  • 博文数量: 54
  • 博客积分: 5016
  • 博客等级: 大校
  • 技术积分: 954
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-23 11:00
文章分类

全部博文(54)

文章存档

2009年(5)

2008年(49)

我的朋友

分类: LINUX

2008-11-25 23:09:18

Author:wmmwang(unc,王敏敏)
Enviroment:fedora8.0
CrossCompile:arm-linux-gcc3.4.1
Busybox:1.10.1

步骤:
    make defconfig
    make ARCH=arm CROSS_COMPILE=arm-linux-
    make CONFIG_PREFIX=../nfsroot install

make的时候出错:
1.
  miscutils/taskset.c:17: error: parse error before '*' token
  miscutils/taskset.c:18: warning: function declaration isn't a prototype
  miscutils/taskset.c: In function `__from_cpuset':
  miscutils/taskset.c:22: error: `CPU_SETSIZE' undeclared (first use in this function)
  miscutils/taskset.c:22: error: (Each undeclared identifier is reported only once
  miscutils/taskset.c:22: error: for each function it appears in.)
  miscutils/taskset.c:26: warning: implicit declaration of function `CPU_ISSET'
  miscutils/taskset.c:26: error: `mask' undeclared (first use in this function)
  miscutils/taskset.c: In function `taskset_main':
  miscutils/taskset.c:47: error: `cpu_set_t' undeclared (first use in this function)
  miscutils/taskset.c:47: error: parse error before "mask"
  miscutils/taskset.c:68: warning: implicit declaration of function `CPU_ZERO'
  miscutils/taskset.c:68: error: `new_mask' undeclared (first use in this function)
  miscutils/taskset.c:69: error: `CPU_SETSIZE' undeclared (first use in this function)
  miscutils/taskset.c:71: warning: implicit declaration of function `CPU_SET'
  miscutils/taskset.c:78: error: `mask' undeclared (first use in this function)
  make[1]: *** [miscutils/taskset.o] Error 1
  make: *** [miscutils] Error 2

解决:
  把 Miscellaneous Utilities
              ->task set
去掉。


2.
libbb/time.c:20: error: "CLOCK_MONOTONIC" undeclared (first use in this function)

解决:
  
去掉Busybox Settings
            ->Busybox Library Tuning

                   ->[]Use clock_gettie
(CLOCK_MONOTONIC) syscall


3.
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: Warning: gc-sections option ignored
modutils/lib.a(insmod.o)(.text.insmod_main+0x370): In function `insmod_main':
: undefined reference to `query_module'
modutils/lib.a(insmod.o)(.text.insmod_main+0x3a4): In function `insmod_main':
: undefined reference to `query_module'
modutils/lib.a(insmod.o)(.text.insmod_main+0x44c): In function `insmod_main':
: undefined reference to `query_module'
modutils/lib.a(insmod.o)(.text.insmod_main+0x49c): In function `insmod_main':
: undefined reference to `query_module'
modutils/lib.a(insmod.o)(.text.insmod_main+0x574): In function `insmod_main':
: undefined reference to `query_module'
modutils/lib.a(insmod.o)(.text.insmod_main+0xc0c): In function `insmod_main':
: undefined reference to `create_module'
collect2: ld returned 1 exit status
make: *** [busybox_unstripped] Error 1

解决:
   
把Linux Module Utilities
            []Support version 2.2.x to 2.4.x Linux kernels
选项去掉


4.
最后启动遇到如下错误:
Freeing init memory: 124K
/sbKernel panic - not syncing: Attempted to kill init!
in/ init: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory

还没解决……,期待高人解决。
阅读(4337) | 评论(3) | 转发(1) |
给主人留下些什么吧!~~

wenlan882013-08-23 19:06:10

chinaunix网友:把arm-linux-gcc下的libcrypt.so.1复制到lib目录下或静态编译busybox

请问,后面的lib目录是在对于交叉编译器的还是linux下的根目录下面那个呢?

回复 | 举报

wenlan882013-08-23 17:07:16

chinaunix网友:把arm-linux-gcc下的libcrypt.so.1复制到lib目录下或静态编译busybox

为啥动态编译不行呀??求大神指导

回复 | 举报

chinaunix网友2010-06-22 19:46:54

把arm-linux-gcc下的libcrypt.so.1复制到lib目录下或静态编译busybox