[uClibc]Error while building test directory

Yoshinori Sato qzb04471 at nifty.ne.jp
Tue Nov 5 06:48:29 UTC 2002


At Tue, 5 Nov 2002 11:39:37 +0530,
Preethi wrote:
> Dear All,
>         I have downloaded the uClibc toolchain and compiled it for Hitachi SH2 processor.After that I tried to build the test
> directory under uClibc using the make file.But I'm getting the following errors .
> 
> /usr/sh-elf/bin/ld: warning: cannot find entry symbol start; defaulting to 00001000
> /home/anurag/uClibc/lib/crt0.o: In function `start':
> /home/anurag/uClibc/lib/crt0.o(.text+0x1c): undefined reference to `_uClibc_main'
> /home/anurag/uClibc/lib/crt0.o(.text+0x20): undefined reference to `abort'
> /home/anurag/uClibc/lib/crt0.o(.text+0x24): undefined reference to `main'
> /home/anurag/uClibc/lib/libc.a(__uClibc_main.o): In function `__uClibc_main':
> __uClibc_main.o(.text+0x74): undefined reference to `_fini'
> __uClibc_main.o(.text+0x7c): undefined reference to `_init'
> /home/anurag/uClibc/lib/libc.a(_stdio_init.o): In function `_cs_read':
> _stdio_init.o(.text+0x14): undefined reference to `read'
> /home/anurag/uClibc/lib/libc.a(_stdio_init.o): In function `_cs_write':
> _stdio_init.o(.text+0x2c): undefined reference to `write'
> /home/anurag/uClibc/lib/libc.a(_stdio_init.o): In function `_cs_close':
> _stdio_init.o(.text+0x44): undefined reference to `close'
> /home/anurag/uClibc/lib/libc.a(tcgetattr.o): In function `tcgetattr':
> tcgetattr.o(.text+0x5c): undefined reference to `ioctl'
> /home/anurag/uClibc/lib/libc.a(_stdio_lseek.o): In function `_stdio_lseek':
> _stdio_lseek.o(.text+0x48): undefined reference to `lseek'
> make[1]: *** [arg_test] Error 1
> make: *** [_dir_args] Error 2
> 
>         Can anybody help me how to clear this problem.

I think that that case is recovered if define C_SYMBOL_PREFIX of Config.
ex.
C_SYMBOL_PREFIX = _

-- 
Yoshinori Sato
<qzb04471 at nifty.ne.jp>



More information about the uClibc mailing list