[BusyBox] Why I can't make the busybox?

Roc Wu cooloney at yahoo.com.cn
Sun Jun 9 01:14:04 UTC 2002


Hi all:
I am making the busybox now!!
My platform is RedHat 7.2 and I modify the Makefile as
below:
  CROSS=arm-linux-
  LIBCDIR=/usr/i386-glibc21-linux/

and here is my error logs:

arm-linux-gcc -s -Wl,-warn-common -o busybox 
busybox.o usage.o applets.o libbb.a
applets.o(.rodata+0x4): undefined reference to
`test_main'
applets.o(.rodata+0x10): undefined reference to
`ash_main'
applets.o(.rodata+0x1c): undefined reference to
`basename_main'
applets.o(.rodata+0x34): undefined reference to
`cat_main'
applets.o(.rodata+0x40): undefined reference to
`chgrp_main'
applets.o(.rodata+0x4c): undefined reference to
`chmod_main'
applets.o(.rodata+0x58): undefined reference to
`chown_main'
applets.o(.rodata+0x64): undefined reference to
`chroot_main'
applets.o(.rodata+0x70): undefined reference to
`chvt_main'
applets.o(.rodata+0x7c): undefined reference to
`clear_main'
applets.o(.rodata+0x88): undefined reference to
`cp_main'
applets.o(.rodata+0x94): undefined reference to
`cut_main'
applets.o(.rodata+0xa0): undefined reference to
`date_main'
applets.o(.rodata+0xac): undefined reference to
`dd_main'
applets.o(.rodata+0xb8): undefined reference to
`df_main'
applets.o(.rodata+0xc4): undefined reference to
`dirname_main'
applets.o(.rodata+0xd0): undefined reference to
`dmesg_main'
applets.o(.rodata+0xdc): undefined reference to
`du_main'
applets.o(.rodata+0xe8): undefined reference to
`echo_main'
applets.o(.rodata+0xf4): undefined reference to
`env_main'
applets.o(.rodata+0x100): undefined reference to
`false_main'
applets.o(.rodata+0x10c): undefined reference to
`find_main'
applets.o(.rodata+0x118): undefined reference to
`free_main'
applets.o(.rodata+0x124): undefined reference to
`grep_main'
applets.o(.rodata+0x130): undefined reference to
`gunzip_main'
applets.o(.rodata+0x13c): undefined reference to
`gzip_main'
applets.o(.rodata+0x148): undefined reference to
`halt_main'
applets.o(.rodata+0x154): undefined reference to
`head_main'
applets.o(.rodata+0x160): undefined reference to
`id_main'
applets.o(.rodata+0x16c): undefined reference to
`ifconfig_main'
applets.o(.rodata+0x178): undefined reference to
`init_main'
applets.o(.rodata+0x184): undefined reference to
`kill_main'
applets.o(.rodata+0x190): undefined reference to
`kill_main'
applets.o(.rodata+0x19c): undefined reference to
`klogd_main'
applets.o(.rodata+0x1a8): undefined reference to
`init_main'
applets.o(.rodata+0x1b4): undefined reference to
`ln_main'
applets.o(.rodata+0x1c0): undefined reference to
`logger_main'
applets.o(.rodata+0x1cc): undefined reference to
`ls_main'
applets.o(.rodata+0x1d8): undefined reference to
`lsmod_main'
applets.o(.rodata+0x1e4): undefined reference to
`mkdir_main'
applets.o(.rodata+0x1f0): undefined reference to
`mknod_main'
applets.o(.rodata+0x1fc): undefined reference to
`mkswap_main'
applets.o(.rodata+0x208): undefined reference to
`modprobe_main'
applets.o(.rodata+0x214): undefined reference to
`more_main'
applets.o(.rodata+0x220): undefined reference to
`mount_main'
applets.o(.rodata+0x22c): undefined reference to
`mv_main'
applets.o(.rodata+0x238): undefined reference to
`pidof_main'
applets.o(.rodata+0x244): undefined reference to
`ping_main'
applets.o(.rodata+0x250): undefined reference to
`poweroff_main'
applets.o(.rodata+0x25c): undefined reference to
`ps_main'
applets.o(.rodata+0x268): undefined reference to
`pwd_main'
applets.o(.rodata+0x274): undefined reference to
`reboot_main'
applets.o(.rodata+0x280): undefined reference to
`reset_main'
applets.o(.rodata+0x28c): undefined reference to
`rm_main'
applets.o(.rodata+0x298): undefined reference to
`rmdir_main'
applets.o(.rodata+0x2a4): undefined reference to
`sed_main'
applets.o(.rodata+0x2b0): undefined reference to
`ash_main'
applets.o(.rodata+0x2bc): undefined reference to
`sleep_main'
applets.o(.rodata+0x2c8): undefined reference to
`sort_main'
applets.o(.rodata+0x2d4): undefined reference to
`swap_on_off_main'
applets.o(.rodata+0x2e0): undefined reference to
`swap_on_off_main'
applets.o(.rodata+0x2ec): undefined reference to
`sync_main'
applets.o(.rodata+0x2f8): undefined reference to
`syslogd_main'
applets.o(.rodata+0x304): undefined reference to
`tail_main'
applets.o(.rodata+0x310): undefined reference to
`tar_main'
applets.o(.rodata+0x31c): undefined reference to
`telnet_main'
applets.o(.rodata+0x328): undefined reference to
`test_main'
applets.o(.rodata+0x334): undefined reference to
`touch_main'
applets.o(.rodata+0x340): undefined reference to
`true_main'
applets.o(.rodata+0x34c): undefined reference to
`tty_main'
applets.o(.rodata+0x358): undefined reference to
`umount_main'
applets.o(.rodata+0x364): undefined reference to
`uname_main'
applets.o(.rodata+0x370): undefined reference to
`uniq_main'
applets.o(.rodata+0x37c): undefined reference to
`uptime_main'
applets.o(.rodata+0x388): undefined reference to
`wc_main'
applets.o(.rodata+0x394): undefined reference to
`which_main'
applets.o(.rodata+0x3a0): undefined reference to
`whoami_main'
applets.o(.rodata+0x3ac): undefined reference to
`xargs_main'
applets.o(.rodata+0x3b8): undefined reference to
`yes_main'
applets.o(.rodata+0x3c4): undefined reference to
`gunzip_main'
collect2: ld returned 1 exit status
make: *** [busybox] Error 1

Why? Shall I use the arm-linux-gcc to compile the
glibc? Please help me!!

And another question: how to add the telnet daemon to
the filesystem based on the busybox, Because I want to
let people telnet my target board.

Thanks & Regards
Roc Wu in China

_________________________________________________________
Do You Yahoo!? 
2002年世界杯群雄鏖战 雅虎中国聚焦日韩
http://cn.fifaworldcup.yahoo.com/



More information about the busybox mailing list