[uClibc]An historic moment!

Erik Andersen andersen at codepoet.org
Tue Jan 16 01:51:05 MST 2001

After many, many months of hard work, with lots and lots and lots 
of effort to get everything into its proper place, I am thrilled 
to announce a major breakthrough!  I can't even begin to express
how excited I am right now -- this is _so_ cool.

The world of embedded Linux just got smaller.  I believe the following 
transcript speaks volumes...  


Erik B. Andersen   email:  andersen at lineo.com
--This message was written using 73% post-consumer electrons--
-------------- next part --------------
andersen at sage:~/CVS/uClibc$ make

<-----------------lots of compiling snipped--------------->

make[1]: Leaving directory `/home/andersen/CVS/uClibc/extra'

Finally finished compiling...

ranlib libc.a
andersen at sage:~/CVS/uClibc$ mkdir tmp
andersen at sage:~/CVS/uClibc$ (cd tmp; ar -x ../libc.a)
andersen at sage:~/CVS/uClibc$ gcc -s -nostdlib -shared -o libuClibc.so.1 -Wl,-soname,libuClibc.so.1 tmp/*.o
andersen at sage:~/CVS/uClibc$ file libuClibc.so.1
libuClibc.so.1: ELF 32-bit LSB shared object, Intel 80386, version 1, stripped
andersen at sage:~/CVS/uClibc$ sudo cp libuClibc.so.1 /lib
andersen at sage:~/CVS/uClibc$ sudo ln -s /lib/libuClibc.so.1 /lib/libuClibc.so
andersen at sage:~/CVS/uClibc$ sudo ldconfig
andersen at sage:~/CVS/uClibc$ ls -la /lib/libuClibc*
lrwxrwxrwx    1 root     root           19 Jan 16 01:08 /lib/libuClibc.so -> /lib/libuClibc.so.1*
-rwxr-xr-x    1 root     root       132952 Jan 16 01:06 /lib/libuClibc.so.1*
andersen at sage:~/CVS/uClibc$ ls -sh /lib/libuClibc.so.1
136k /lib/libuClibc.so.1*
andersen at sage:~/CVS/uClibc$ cd test/silly/
andersen at sage:~/CVS/uClibc/test/silly$ cat hello.c
#include <stdlib.h>

int main(void)
    printf("hello world\n");
andersen at sage:~/CVS/uClibc/test/silly$ gcc -s -nostdlib -luClibc -lgcc ../../libcrt0.o hello.c -o hello
andersen at sage:~/CVS/uClibc/test/silly$ ls -sh hello
4.0k hello*
andersen at sage:~/CVS/uClibc/test/silly$ file ./hello
./hello: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked (uses shared libs), stripped
andersen at sage:~/CVS/uClibc/test/silly$ ldd ./hello
        libuClibc.so.1 => /lib/libuClibc.so.1 (0x4001b000)
andersen at sage:~/CVS/uClibc/test/silly$ ./hello
hello world

andersen at sage:~/CVS/tinylogin$ cd ~/CVS/tinylogin
andersen at sage:~/CVS/tinylogin$ make
<-----------------editing of makefiles snipped--------------->
andersen at sage:~/CVS/tinylogin$ ldd ./tinylogin
        libuClibc.so.1 => /lib/libuClibc.so.1 (0x4001b000)
andersen at sage:~/CVS/tinylogin$ file ./tinylogin
./tinylogin: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked (uses shared libs), stripped
andersen at sage:~/CVS/tinylogin$ ls -sh ./tinylogin
 40k ./tinylogin*

andersen at sage:~/CVS/busybox$ cd ~/CVS/busybox
<-----------------editing of makefiles snipped--------------->
andersen at sage:~/CVS/busybox$ vi Config.h
<-----------------BB_FEATURE_NFSMOUNT disabled--------------->
andersen at sage:~/CVS/busybox$ make
<-----------------lots of compiling snipped--------------->
gcc -Wall -Os -fomit-frame-pointer -D_GNU_SOURCE -I- -I. -I. -nostdinc -I/home/andersen/CVS/uClibc/include -I/usr/lib/gcc-lib/i386-linux/2.95.2/include -DBB_VER='"0.49pre"' -DBB_BT='"2001.01.16-00:23+0000"'   -c -o utility.o utility.c
gcc -nostdlib -s -Wl,-warn-common -o busybox basename.o cat.o chmod_chown_chgrp.o chroot.o chvt.o clear.o cmdedit.o cp_mv.o cut.o date.o dd.o df.o dirname.o dmesg.o du.o echo.o find.o free.o grep.o gunzip.o gzip.o halt.o head.o hostid.o hostname.o id.o init.o kill.o ln.o logger.o ls.o lsmod.o mkdir.o mknod.o mkswap.o more.o mount.o ping.o poweroff.o ps.o pwd.o reboot.o reset.o rm.o rmdir.o sed.o sh.o sleep.o sort.o swaponoff.o sync.o syslogd.o tail.o tar.o touch.o true_false.o tty.o umount.o uname.o uniq.o uptime.o wc.o which.o whoami.o xargs.o yes.o busybox.o messages.o usage.o utility.o -luClibc -lgcc /home/andersen/CVS/uClibc/libcrt0.o
strip --remove-section=.note --remove-section=.comment busybox
./busybox.mkll ./Config.h ./applets.h >busybox.links

BusyBox Documentation

mkdir -p docs
pod2text ./docs/busybox.pod > docs/BusyBox.txt
mkdir -p docs
pod2man --center=BusyBox --release="version 0.49pre" \
        ./docs/busybox.pod > docs/BusyBox.1
pod2html --noindex ./docs/busybox.pod > \
andersen at sage:~/CVS/busybox$ ls -sh ./busybox
148k ./busybox*
andersen at sage:~/CVS/busybox$ ldd ./busybox
        libuClibc.so.1 => /lib/libuClibc.so.1 (0x4001b000)
andersen at sage:~/CVS/busybox$ file ./busybox
./busybox: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked (uses shared libs), stripped
andersen at sage:~/CVS/busybox$ du -ch ./busybox /lib/libuClibc.so.1
148k    ./busybox
136k    /lib/libuClibc.so.1
284k    total
andersen at sage:~/CVS/busybox$ ./busybox echo "Welcome to the revolution"
Welcome to the revolution

More information about the uClibc mailing list