free/lstat/... etc are libc functions. So your environment is not correctly set.
please try a ''arm-linux-gcc hello.c'' to check your environment. re, wh Alex Kums wrote: > Hi. I tried to compile 1.6 version of busybox for ARM system, but failed. > I tried to compile static version of busybox, my cross compiler is > gcc-3.4.3, and glibc-2.3.4. Evironment variable is set to: > > # set|grep CROSS > CROSS_COMPILE=arm-linux- > > Static compilation (default config + static option): > > # cat .config|grep STATIC > CONFIG_STATIC=y > > I got may ld errors: > > /usr/local/arm/lib/gcc/arm-linux/3.4.3/libgcc.a(_umoddi3.oS) > libbb/lib.a(inode_hash.o) (__umoddi3) > /usr/local/usr/local/arm/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/bin/ld: > > warning: cannot find entry symbol _start; defaulting to 000080d0 > applets/built-in.o(.text.get_trimmed_slice+0x20): In function > `get_trimmed_slice': > : undefined reference to `isspace' > applets/built-in.o(.text.bb_show_usage+0xbc): In function `bb_show_usage': > : undefined reference to `fprintf' > applets/built-in.o(.text.bb_show_usage+0xc4): In function `bb_show_usage': > : undefined reference to `free' > applets/built-in.o(.text.bb_show_usage+0xe0): In function `bb_show_usage': > : undefined reference to `stderr' > > ... > > /usr/local/arm/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/bin/ld: > warning: cannot find entry symbol _start; defaulting to 0000d130 > coreutils/lib.a(cp.o)(.text.cp_main+0x120): In function `cp_main': > : undefined reference to `lstat64' > coreutils/lib.a(cp.o)(.text.cp_main+0x124): In function `cp_main': > : undefined reference to `stat64' > coreutils/lib.a(stat.o)(.text.do_stat+0xb0): In function `do_stat': > : undefined reference to `lstat64' > coreutils/lib.a(stat.o)(.text.do_stat+0xb4): In function `do_stat': > : undefined reference to `stat64' > > ... > > > ... > > .note.gnu.arm.ident > *(.note.gnu.arm.ident) > > /DISCARD/ > *(.note.GNU-stack) > OUTPUT(busybox_unstripped elf32-littlearm) > collect2: ld returned 1 exit status > > What's wrong ? > Thanks. > > > ----- > Приходите в Центр обслуживания БеСТ на Первомайской, 2, подключайтесь > к сети БеСТ компанией ВПЯТЕРОМ - и получайте по 5 000 рублей на счет > КАЖДОМУ. Подробности на http://svoi.best.by СТАНЬ СВОИМ! > > _______________________________________________ > busybox mailing list > busybox@busybox.net > http://busybox.net/cgi-bin/mailman/listinfo/busybox _______________________________________________ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox