[BusyBox] Compiling ash

David Douthitt ssrat at mailbag.com
Thu Aug 9 09:35:43 UTC 2001


Is it possible to compile ash with uClibc?  I tried, and get this:

/pub/other/src/new/new/uClibc/uClibc/extra/gcc-uClibc/i386-uclibc-gcc 
-DBSD -DSMALL -DSHELL -DHETIO -D_GNU_SOURCE -D__COPYRIGHT\(x\)=
-D__RCSID\(x\)= -I. -D_DIAGASSERT\(x\)= -O2 -static -Wall -o ash arith.o
arith_lex.o builtins.o alias.o cd.o error.o eval.o exec.o expand.o
hetio.o histedit.o input.o jobs.o mail.o main.o memalloc.o miscbltin.o
mystring.o nodes.o options.o parser.o redir.o setmode.o show.o
signames.o syntax.o trap.o output.o var.o bltin/echo.o bltin/test.o
bltin/times.o  init.o -lfl -s
redir.o: In function `noclobberopen':
redir.o(.text+0x5dd): undefined reference to `__xstat'
redir.o(.text+0x633): undefined reference to `__fxstat'
setmode.o: In function `setmode':
setmode.o(.text+0x1e2): undefined reference to `__ctype_b'
setmode.o(.text+0x1fe): undefined reference to `__strtol_internal'
trap.o: In function `decode_signal':
trap.o(.text+0x4c6): undefined reference to `__strtol_internal'
output.o: In function `initstreams':
output.o(.text+0x13c): undefined reference to `stdout'
output.o(.text+0x146): undefined reference to `stderr'
output.o: In function `openmemout':
output.o(.text+0x162): undefined reference to `open_memstream'
var.o: In function `initvar':
var.o(.text+0x41): undefined reference to `__strdup'
var.o(.text+0xa7): undefined reference to `__strdup'
var.o: In function `setvar':
var.o(.text+0x15d): undefined reference to `__ctype_b'
var.o(.text+0x173): undefined reference to `__ctype_b'
var.o: In function `exportcmd':
var.o(.text+0x73c): undefined reference to `_IO_putc'
var.o(.text+0x753): undefined reference to `_IO_putc'
bltin/echo.o: In function `echocmd':
bltin/echo.o(.text+0x128): undefined reference to `stdout'
bltin/echo.o(.text+0x12f): undefined reference to `_IO_putc'
bltin/echo.o(.text+0x13b): undefined reference to `stdout'
bltin/echo.o(.text+0x141): undefined reference to `_IO_putc'
bltin/echo.o(.text+0x15e): undefined reference to `stdout'
bltin/echo.o(.text+0x165): undefined reference to `_IO_putc'
bltin/echo.o(.text+0x185): undefined reference to `stdout'
bltin/echo.o(.text+0x18c): undefined reference to `_IO_putc'
bltin/echo.o(.text+0x195): undefined reference to `stdout'
bltin/echo.o(.text+0x1a0): undefined reference to `stdout'
bltin/echo.o(.text+0x1b6): undefined reference to `stdout'
bltin/test.o: In function `filstat':
bltin/test.o(.text+0x52b): undefined reference to `__lxstat'
bltin/test.o(.text+0x540): undefined reference to `__xstat'
bltin/test.o: In function `getn':
bltin/test.o(.text+0x7f7): undefined reference to `__strtol_internal'
bltin/test.o(.text+0x81b): undefined reference to `__ctype_b'
bltin/test.o: In function `newerf':
bltin/test.o(.text+0x872): undefined reference to `__xstat'
bltin/test.o(.text+0x88a): undefined reference to `__xstat'
bltin/test.o: In function `olderf':
bltin/test.o(.text+0x8be): undefined reference to `__xstat'
bltin/test.o(.text+0x8d6): undefined reference to `__xstat'
bltin/test.o: In function `equalf':
bltin/test.o(.text+0x90a): undefined reference to `__xstat'
bltin/test.o(.text+0x922): more undefined references to `__xstat' follow
collect2: ld returned 1 exit status
make: *** [all] Error 1
# 

As a statically compiled ash with GNU libc is "only" 422k it would be
nice to get this working...





More information about the busybox mailing list