[BusyBox] ash running /etc/profile when started from inittab, take II
rich_wilson at agilent.com
rich_wilson at agilent.com
Wed Jul 24 10:11:03 UTC 2002
Vodz,
The development version of init.c gives me many compile errors.
I grabbed busybox_stable init.c version 1.164 and plugged it into my busybox 0.60.3.
With inittab reading
ttyS0::respawn:-/bin/sh
my /etc/profile is read, but I still get the dreaded "sh: can't access tty; job control turned off"
If I try
ttyS0::respawn:-/bin/sh </dev/ttyS0 >/dev/ttyS0 2>/dev/ttyS0
I get the message
exec: -/bin/sh: No such file or directory
printed about once per second.
I suppose I need to grab a snapshot of the entire development tree!
<go do it: get July 24 version>
Oops, I'm getting a link error. I don't understand why. Here's the transcript:
(rm applets/busybox.o)
==============================================================================
[richw at lksilvi busybox]$ make
/usr/powerpc-linux-uclibc/bin/powerpc-uclibc-gcc -I/import/home/richw/downloads/
busybox/include -Wall -Wstrict-prototypes -Wshadow -Os -fomit-frame-pointer -D_G
NU_SOURCE -DBB_VER='"0.61.pre"' -DBB_BT='"2002.07.24-15:52+0000"' -c -o /impo
rt/home/richw/downloads/busybox/applets/busybox.o /import/home/richw/downloads/b
usybox/applets/busybox.c
/projects/linux/tools/hardhat/devkit/ppc/82xx/bin/ppc_82xx-ar -ro /import/home/r
ichw/downloads/busybox/applets/applets.a /import/home/richw/downloads/busybox/ap
plets/applets.o /import/home/richw/downloads/busybox/applets/busybox.o /import/h
ome/richw/downloads/busybox/applets/usage.o
/usr/powerpc-linux-uclibc/bin/powerpc-uclibc-gcc -s -Wl,-warn-common -o busybox
/import/home/richw/downloads/busybox/applets/applets.a /import/home/richw/downlo
ads/busybox/archival/archival.a /import/home/richw/downloads/busybox/archival/li
bunarchive/libunarchive.a /import/home/richw/downloads/busybox/console-tools/con
sole-tools.a /import/home/richw/downloads/busybox/editors/editors.a /import/home
/richw/downloads/busybox/fileutils/fileutils.a /import/home/richw/downloads/busy
box/findutils/findutils.a /import/home/richw/downloads/busybox/init/init.a /impo
rt/home/richw/downloads/busybox/miscutils/miscutils.a /import/home/richw/downloa
ds/busybox/modutils/modutils.a /import/home/richw/downloads/busybox/networking/n
etworking.a /import/home/richw/downloads/busybox/procps/procps.a /import/home/ri
chw/downloads/busybox/loginutils/loginutils.a /import/home/richw/downloads/busyb
ox/shell/shell.a /import/home/richw/downloads/busybox/shellutils/shellutils.a /i
mport/home/richw/downloads/busybox/sysklogd/sysklogd.a /import/home/richw/downlo
ads/busybox/textutils/textutils.a /import/home/richw/downloads/busybox/util-linu
x/util-linux.a /import/home/richw/downloads/busybox/libbb/libbb.a /import/home/r
ichw/downloads/busybox/libpwdgrp/libpwdgrp.a
/usr/powerpc-linux-uclibc/lib/libc.so: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [busybox] Error 1
[richw at lksilvi busybox]$ ppc_82xx-nm applets/busybox.o
00000004 C applet_name
U applets
00000000 G been_there_done_that
00000078 T busybox_main
U error_msg_and_die
U exit
U fprintf
U full_version
00000000 t gcc2_compiled.
00000000 T main
U memmove
U memset
U run_applet_by_name
U stderr
U xstrlen
[richw at lksilvi busybox]$
=====================================================================
It looks to me like main IS defined.
Any ideas?
Rich
Rich Wilson
Agilent Technologies
425-335-2245
rich_wilson at agilent.com
> -----Original Message-----
> From: Vladimir N. Oleynik [mailto:dzo at simtreas.ru]
> Sent: Wednesday, July 24, 2002 12:38 AM
> To: rich_wilson at agilent.com
> Cc: busybox at busybox.net
> Subject: Re: [BusyBox] ash running /etc/profile when started from
> inittab,take II
>
>
> Rich,
>
> > Sorry, I made a typo:
> >
> > > My workaround (ttyS0::respawn:/bin/sh -sc ". /etc/profile"
> > > </dev/ttyS0 >/dev/ttyS0 2>/dev/ttyS0) still works.
> >
> > should be
> >
> > ::respawn:/bin/sh -sc ". /etc/profile" </dev/ttyS0
> >/dev/ttyS0 2>/dev/ttyS0)
> >
> > (Thought I should correct this to prevent confusion)
>
> Please test CVS developen version init applet.
> I with Erik may be destroy all this problem.
>
>
> --w
> vodz
>
More information about the busybox
mailing list