[BusyBox] Re: Busybox statically compiled against glibc-2.3.1 for AMD64

Andrew Derrick Balsa andrebalsa at mailingaddress.org
Tue Apr 29 09:25:11 UTC 2003


Hi Erik,

On Tuesday 29 April 2003 16:15, Erik Andersen wrote:
...
> > 1) I had to comment out the ¨init¨ function, otherwise I get an error
> > message related to bdflush during compilation/linking. Do you have any
> > idea why?
>
> If you post the error message I may have some idea...

Sorry, here it is:

x86_64-unknown-linux-gcc -s -Wl,-warn-common --static -o busybox ash.o 
basename.o cat.o chgrp.o chmod.o chown.o chroot.o chvt.o clear.o cmdedit.o 
cp.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 modprobe.o more.o mount.o mv.o pidof.o 
poweroff.o ps.o pwd.o reboot.o reset.o rm.o rmdir.o sed.o sleep.o sort.o 
swaponoff.o sync.o syslogd.o tail.o tar.o test.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 usage.o applets.o libbb.a
init.o: In function `shutdown_system':
init.o(.text+0xbf7): undefined reference to `bdflush'
collect2: ld returned 1 exit status
make: *** [busybox] Error 1

>
> > 2) Busybox complains about tty : ¨sh: can´t access tty; job control
> > turned off¨ when I boot the disk image. Any hints?
>
> See the "sh: can't access tty; job control turned off" entry
> here: http://www.uclibc.org/FAQ.html

Sorry for the dumb question... How do I instruct the OS to run the shell on 
/dev/tty instead of /dev/console? (is it supposed to be in init? The disk 
image I am using right now has a very simple init, and no inittab file at 
all)

Thanks,
-- 
André Derrick Balsa (Andrew)
andrebalsa at mailingaddress.org


More information about the busybox mailing list