[uClibc]troubles with Busybox and lastest uClibc CVS snapshot

Erik Andersen andersen at lineo.com
Thu May 31 16:35:11 UTC 2001


On Wed May 30, 2001 at 06:09:52PM -0400, Wayne Buckhanan wrote:
> 
> fresh copy of the uClibc snapshot, only changing INSTALL_DIR
>   make all shared install_dev install
> (the last install bombs since I'm not root and it can't make the symlinks)
> 
> export PATH=/my/install/dir:${PATH}
> 
> clean Busybox 0.51 source, only changing USE_SYSTEM_PWD_GRP = false
>   make
> 
> I get:
> 
> gcc -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 env.o find.o free.o grep.o gunzip.o gzip.o
> halt.o head.o id.o init.o kill.o klogd.o ln.o logger.o ls.o lsmod.o
> mkdir.o mknod.o mkswap.o more.o mount.o nfsmount.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 applets.o libpwd.a libbb.a 
> gunzip.o: In function `gz_open':
> gunzip.o(.text+0x1571): undefined reference to `fork'
> init.o: In function `run':
> init.o(.text+0x4e2): undefined reference to `fork'
> klogd.o: In function `klogd_main':
> klogd.o(.text+0x1b2): undefined reference to `daemon'
> sh.o: In function `run_command':
> sh.o(.text+0x197a): undefined reference to `fork'
> syslogd.o: In function `syslogd_main':
> syslogd.o(.text+0x877): undefined reference to `daemon'
> collect2: ld returned 1 exit status
> make: *** [busybox] Error 1
> bash$ echo $PATH
> /home/buck/WLinB/i386-linux-uclibc/bin/:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/bin:/usr/X11R6/bin:/homes/buck/bin
> bash$ 

This suggests to me that you compiled uClibc with "HAS_MMU=false" in your Config...

> grep daemon `find ./uClibc -type f -print`
> gets me a few source references and both my shared and static uClibc's...
> am I missing something or is it broken?
> 
> tried with stock TinyLogin 0.80:
> gcc -s -Wl,-warn-common  -o tinylogin tinylogin.o env.o obscure.o
> pwd2spwd.o setupenv.o shell.o utmp.o utility.o usage.o addgroup.o
> adduser.o deluser.o getty.o login.o passwd.o shadow.o vlock.o -lcrypt
> pwd_grp/libpwd.a
> utmp.o: In function `setutmp':
> utmp.o(.text+0x14c): undefined reference to `updwtmp'
> getty.o: In function `update_utmp':
> getty.o(.text+0x57c): undefined reference to `updwtmp'
> collect2: ld returned 1 exit status
> make: *** [tinylogin] Error 1
> bash$

This is very odd.  updwtmp() is enabled in tinylogin/utmp.c in the CVS
version.  Could you try with the latest from CVS?

 -Erik

--
Erik B. Andersen   email:  andersen at lineo.com
--This message was written using 73% post-consumer electrons--





More information about the uClibc mailing list