用arm-linux-gcc4.4.3編譯busybox1.31的時候出現了很多問題,困擾了我許久,現在列出這些問題和解決方法
coreutils/lib.a(mktemp.o): in function `mktemp_main':
mktemp.c:(.text.mktemp_main+0x8c): warning: the use of `mktemp' is dangerous, better use `mkstemp'
coreutils/lib.a(sync.o): in function `sync_common':
sync.c:(.text.sync_common+0x34): undefined reference to `syncfs'
collect2: ld returned 1 exit status
note: if build needs additional libraries, put them in config_extra_ldlibs.
example: config_extra_ldlibs="pthread dl tirpc audit pam"
makefile:718: recipe for target 'busybox_unstripped' failed
make: *** [busybox_unstripped] error 1
make menuconfig-->coreutils—>sync選項去掉,重新make編譯通過
util-linux/lib.a(nsenter.o): in function `nsenter_main':
nsenter.c:(.text.nsenter_main+0x1a8): undefined reference to `setns'
coreutils/lib.a(sync.o): in function `sync_common':
sync.c:(.text.sync_common+0x34): undefined reference to `syncfs'
collect2: ld returned 1 exit status
make menuconfig-->linux system utilities—>nsenter,去掉該選項,重新編譯make
編譯 busybox時問題
分類 ubuntu ubuntu對核心或者busybox或者別的用到make menuconfig命令時,出現錯誤一般為缺少 ncurses devel 使用apt get install libncurses5 dev 安裝 libncurses5 dev 如apt get不能正常使用,出現錯誤,...
編譯busy box及其問題
遇到的問題 1 錯誤如下 miscutils nandwrite.c in function nandwrite main miscutils nandwrite.c 151 3 error mtd file mode raw undeclared first use in this functio...
busybox編譯出現問題
一 修改makefile配置 首先解壓原始碼包 tar jxvf busybox 1.25.0.tar.bz2 進入busybox 1.25.0目錄,修改makefile檔案如下 arch arm cross compile arm linux 二 修改配置檔案 make menuconfig 選擇...