busybox Digest, Vol 52, Issue 57
Luis Silva
a43221 at alunos.uminho.pt
Tue Nov 24 22:30:09 UTC 2009
Hello,
i have the same problem as you. I copied all the libraries to my mini2440
board, and made the proper arrangements for the path, but it still gives me
the same as it did you.
How can i identify the libraries that my dynamically compiled executable
needs?
Best regards,
Luís Silva
On Tue, Nov 24, 2009 at 8:43 AM, <busybox-request at busybox.net> wrote:
> Send busybox mailing list submissions to
> busybox at busybox.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.busybox.net/mailman/listinfo/busybox
> or, via email, send a message with subject or body 'help' to
> busybox-request at busybox.net
>
> You can reach the person managing the list at
> busybox-owner at busybox.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of busybox digest..."
>
>
> Today's Topics:
>
> 1. Re: [PATCH] add traceroute6 applet (Denys Vlasenko)
> 2. Re: ash PS1 question. (Denys Vlasenko)
> 3. Re: ash PS1 question. (Rob Landley)
> 4. Re: Busybox for Mini2440 (Tito)
> 5. How to execute binary other than busybox? (Prashant Bhole)
> 6. Re: How to execute binary other than busybox? (Baruch Siach)
> 7. Re: How to execute binary other than busybox? (Prashant Bhole)
> 8. Re: How to execute binary other than busybox? (walter harms)
> 9. Re: How to execute binary other than busybox? (Prashant Bhole)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 24 Nov 2009 02:22:28 +0100
> From: Denys Vlasenko <vda.linux at googlemail.com>
> Subject: Re: [PATCH] add traceroute6 applet
> To: Leonid Lisovskiy <lly.dev at gmail.com>
> Cc: busybox at busybox.net
> Message-ID: <200911240222.28156.vda.linux at googlemail.com>
> Content-Type: text/plain; charset="utf-8"
>
> On Monday 23 November 2009 20:57, Leonid Lisovskiy wrote:
> > >> Please try current git, I tested only "traceroute -6 ::1" ...
> > > Unfortunately, some part of logic were broken:
> >
> > To restore full functionality, I have to return back some old code.
> > Simple restore of dest_lsa port in probe code block
> >
> > set_nport(dest_lsa, port);
> >
> > didn't help. See patch attached.
>
> The patch does not make sense. Old code should work too.
>
> Which part of desl_lsa structure is damaged by old code
> so that things do not work?
>
> In what exactly way things do not work
> (I mean, on syscall and packet structure level)?
>
> --
> vda
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 24 Nov 2009 02:48:47 +0100
> From: Denys Vlasenko <vda.linux at googlemail.com>
> Subject: Re: ash PS1 question.
> To: busybox at busybox.net
> Cc: Rob Landley <rob at landley.net>
> Message-ID: <200911240248.47606.vda.linux at googlemail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Thursday 19 November 2009 03:16, Rob Landley wrote:
> > If I export PS1 before I run ash, it has no effect. Apparently ash
> > unconditionally overwrites any existing PS1 value.
> >
> > Is there a way around this?
>
> works for me. I added this debug print:
>
> initvar(); <--- this one sets default PS1
> for (envp = environ; envp && *envp; envp++) {
> if (strchr(*envp, '=')) {
> bb_error_msg("setvareq'%s'", *envp);
> setvareq(*envp, VEXPORT|VTEXTFIXED);
> }
> }
>
> and I see:
>
> # PS1='>' ./busybox ash
> ash: setvareq'PS1=>'
> ..
> ash: setvareq'COLORTERM='
> >_ <-- cursor
>
> Maybe you forgot to export PS1 prior to running ash?
> If not, what's your version and .config?
>
> --
> vda
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 23 Nov 2009 19:44:38 -0600
> From: Rob Landley <rob at landley.net>
> Subject: Re: ash PS1 question.
> To: Denys Vlasenko <vda.linux at googlemail.com>
> Cc: busybox at busybox.net
> Message-ID: <200911231944.38579.rob at landley.net>
> Content-Type: Text/Plain; charset="iso-8859-1"
>
> On Monday 23 November 2009 19:48:47 Denys Vlasenko wrote:
> > On Thursday 19 November 2009 03:16, Rob Landley wrote:
> > > If I export PS1 before I run ash, it has no effect. Apparently ash
> > > unconditionally overwrites any existing PS1 value.
> > >
> > > Is there a way around this?
> >
> > works for me. I added this debug print:
> ...
> > Maybe you forgot to export PS1 prior to running ash?
> > If not, what's your version and .config?
>
> Sorry, it was indeed a bug at my end and I fixed it.
>
> > --
> > vda
>
> Rob
> --
> Latency is more important than throughput. It's that simple. - Linus
> Torvalds
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 24 Nov 2009 07:54:25 +0100
> From: Tito <farmatito at tiscali.it>
> Subject: Re: Busybox for Mini2440
> To: "Cathey, Jim" <jcathey at ciena.com>
> Cc: busybox at busybox.net
> Message-ID: <200911240754.25132.farmatito at tiscali.it>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Tuesday 24 November 2009 01:06:06 you wrote:
> > >Did you "suid" busybox?
> >
> > We don't do that, I was uncomfortable with giving
> > all BB applets such privilege. We wrote a simple
> > suid-root exec-er that was linked to the few apps
> > that needed such privilege, it in turn just execs
> > "busybox $*" (in effect) to get it done.
> >
> > -- Jim
> >
> Hi,
> This is unneeded as busybox drops itself the super user privileges
> at start for the applets that don't need it. Keep it simple.
> Why should your suid-root exec-er be safer than busybox?
>
> Ciao,
> Tito
>
>
> ------------------------------
>
> Message: 5
> Date: Tue, 24 Nov 2009 13:26:23 +0530
> From: Prashant Bhole <prashantsmailcenter at gmail.com>
> Subject: How to execute binary other than busybox?
> To: busybox at busybox.net
> Message-ID:
> <9ff69a5d0911232356y22a430b2p4394abad4411e2 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
> I have a working busybox environment. But I am not able to execute any
> other binary.
>
> #ls /lib
> libc.so.0 libpthread.so.0
> #ls -l hello
> -rwxr-xr-x 1 0 0 4831 Jan 1 00:00 hello
> #./hello
> -/bin/sh: ./hello: not found
>
> Please help.
>
> --
> ~p~r~a~s~h~a~n~t~
>
>
> ------------------------------
>
> Message: 6
> Date: Tue, 24 Nov 2009 10:01:16 +0200
> From: Baruch Siach <baruch at tkos.co.il>
> Subject: Re: How to execute binary other than busybox?
> To: Prashant Bhole <prashantsmailcenter at gmail.com>
> Cc: busybox at busybox.net
> Message-ID: <20091124080116.GC720 at jasper.tkos.co.il>
> Content-Type: text/plain; charset=us-ascii
>
> Hi Prashant,
>
> On Tue, Nov 24, 2009 at 01:26:23PM +0530, Prashant Bhole wrote:
> > I have a working busybox environment. But I am not able to execute any
> > other binary.
> >
> > #ls /lib
> > libc.so.0 libpthread.so.0
> > #ls -l hello
> > -rwxr-xr-x 1 0 0 4831 Jan 1 00:00 hello
> > #./hello
> > -/bin/sh: ./hello: not found
>
> Are you sure that the "hello" program is compiled for your architecture?
>
> What is the output of "file hello"?
>
> baruch
>
> --
> ~. .~ Tk Open Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
> - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
>
>
> ------------------------------
>
> Message: 7
> Date: Tue, 24 Nov 2009 13:58:35 +0530
> From: Prashant Bhole <prashantsmailcenter at gmail.com>
> Subject: Re: How to execute binary other than busybox?
> To: Baruch Siach <baruch at tkos.co.il>
> Cc: busybox at busybox.net
> Message-ID:
> <9ff69a5d0911240028o6ca252dbgd650eb88a2f78c5f at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
>
> On Tue, Nov 24, 2009 at 1:31 PM, Baruch Siach <baruch at tkos.co.il> wrote:
> > Hi Prashant,
> >
> > On Tue, Nov 24, 2009 at 01:26:23PM +0530, Prashant Bhole wrote:
> >> I have a working busybox environment. But I am not able to execute any
> >> other binary.
> >>
> >> #ls /lib
> >> libc.so.0 ? ? ? ?libpthread.so.0
> >> #ls -l hello
> >> -rwxr-xr-x ? ?1 0 ? ? ? ?0 ? ? ? ? ? ?4831 Jan ?1 00:00 hello
> >> #./hello
> >> -/bin/sh: ./hello: not found
> >
> > Are you sure that the "hello" program is compiled for your architecture?
> >
>
> Yes it is properly compiled for ARM architecture.
>
> > What is the output of "file hello"?
> >
>
> # file ./hello
> ./hello: ELF 32-bit LSB executable, ARM, version 1, dynamically linked
> (uses shared libs), not stripped
>
> > baruch
> >
> > --
> > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ~. .~ ? Tk Open
> Systems
> >
> =}------------------------------------------------ooO--U--Ooo------------{=
> > ? - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
> >
>
>
>
> --
> ~p~r~a~s~h~a~n~t~
>
>
> ------------------------------
>
> Message: 8
> Date: Tue, 24 Nov 2009 09:31:46 +0100
> From: walter harms <wharms at bfs.de>
> Subject: Re: How to execute binary other than busybox?
> To: Prashant Bhole <prashantsmailcenter at gmail.com>
> Cc: busybox at busybox.net
> Message-ID: <4B0B99F2.6090007 at bfs.de>
> Content-Type: text/plain; charset=ISO-8859-1
>
>
>
> Prashant Bhole schrieb:
> > Hi,
> > I have a working busybox environment. But I am not able to execute any
> > other binary.
> >
> > #ls /lib
> > libc.so.0 libpthread.so.0
> > #ls -l hello
> > -rwxr-xr-x 1 0 0 4831 Jan 1 00:00 hello
> > #./hello
> > -/bin/sh: ./hello: not found
> >
> > Please help.
> >
> > --
>
>
> The strange "not found" usualy means "lib-that-i-need" not found.
> ld-linux.so (or friends) is a candidate.
>
> re,
> wh
>
>
> ------------------------------
>
> Message: 9
> Date: Tue, 24 Nov 2009 14:12:35 +0530
> From: Prashant Bhole <prashantsmailcenter at gmail.com>
> Subject: Re: How to execute binary other than busybox?
> To: wharms at bfs.de
> Cc: busybox at busybox.net
> Message-ID:
> <9ff69a5d0911240042oa7c2e7wf2fcb683b7109838 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
> As you suggested, I copied ld-uClibc.so.0 to /lib and it is working.
> Thanks!
>
> On Tue, Nov 24, 2009 at 2:01 PM, walter harms <wharms at bfs.de> wrote:
> >
> >
> > Prashant Bhole schrieb:
> >> Hi,
> >> I have a working busybox environment. But I am not able to execute any
> >> other binary.
> >>
> >> #ls /lib
> >> libc.so.0 ? ? ? ?libpthread.so.0
> >> #ls -l hello
> >> -rwxr-xr-x ? ?1 0 ? ? ? ?0 ? ? ? ? ? ?4831 Jan ?1 00:00 hello
> >> #./hello
> >> -/bin/sh: ./hello: not found
> >>
> >> Please help.
> >>
> >> --
> >
> >
> > The strange "not found" usualy means "lib-that-i-need" not found.
> > ld-linux.so (or friends) is a candidate.
> >
> > re,
> > ?wh
> >
>
>
>
> --
> ~p~r~a~s~h~a~n~t~
>
>
> ------------------------------
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
>
> End of busybox Digest, Vol 52, Issue 57
> ***************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20091124/86bbd1b4/attachment-0001.htm>
More information about the busybox
mailing list