ts-7000
[Top] [All Lists]

[ts-7000] Re: file exists but is "not found"

To:
Subject: [ts-7000] Re: file exists but is "not found"
From: "j.chitte" <>
Date: Fri, 05 Jun 2009 22:11:57 -0000
--- In  "naturalwatt" <> wrote:
>
> --- In  "j.chitte" <j.chitte@> wrote:
> >
> > Hi,
> > 
> > I'm debugging a fresh eabi built system booting over nfs and logging in via 
> > minicom. One file that I call as part of my init process reports an error 
> > of not being found , yet it is there and executable.
> > 
> > 
> > # ls -ail /www/apache/cgi-bin/adc_logger
> > 3254116 -rwxr-xr-x    1 root     root       126447 Apr  5  2008 
> > /www/apache/cgi-bin/adc_logger
> > 
> > # /www/apache/cgi-bin/adc_logger
> > -sh: /www/apache/cgi-bin/adc_logger: not found
> > 
> > viewed on the nfs host:
> > /www/apache/cgi-bin/adc_logger: ELF 32-bit LSB executable, ARM, version 1, 
> > dynamically linked (uses shared libs), for GNU/Linux 2.2.0, not stripped
> > 
> > 
> > Is this really "not found" or is it just busybox truncated error reporting 
> > giving me a false error? Perhaps a lib or something else not found.
> > 
> > Thx.
> >
> 
> I suspect it is busybox being not helpful.   Either the dynamic linker 
> /lib/ld-linux.so is missing or damaged or a shared library is missing, most 
> likely. I can't remember the name of the tool that tells you what shared 
> libraries are needed for an executable, and I don't think it's part of 
> Busybox anyhow.
> 
> Can you rebuild adc_logger with -static and try that as a first step?
> 
> I am also a bit worried that file(1) says it is for GNU/Linux 2.2.0.  The 
> executables I build (for a 2.4.26 system) says for GNU/Linux 2.4.3, which is 
> nothing like the version disparity between your 2.6 kernel and a 2.2 ELF 
> format.
> 
> Martin
>

Thanks Martin,  I had not spotted that detail. It seems that I had dredged up a 
build I had done on debian Sarge for TSlinux.

Now I have copied in the correct file:

[HOST]
bash-4.0#file adc_logger
adc_logger: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically 
linked (uses shared libs), for GNU/Linux 2.6.29, not stripped

it rejoins the ranks of all the other broken executables.

[arm]
# ./adc_logger 
-sh: ./adc_logger: Permission denied
# ls -ail adc_logger
3270070 -rwxr-xr-x    1 root     root       128952 Jun  5  2009 adc_logger


This definately looks like lib probs. ldd would help here but crosstool-ng does 
not build this part of glibc into sys-root. I'll have to see if I can persuade 
it to.

I'm wondering about kernel version checking. 
#uname -a
Linux arm 2.6.29.1-m3 #1 PREEMPT Mon May 11 16:11:18 CEST 2009 armv4tl GNU/Linux

bash-4.0#file libc.so.6
libc.so.6: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically 
linked (uses shared libs), for GNU/Linux 2.6.29, not stripped

Is that close enough to be a match? 

It's definately a lib problem because I had to build BB -static to get it to 
run. I was being led astray by the challenged error reporting of busybox.

I'll rebuild the kernel without version checking a see what it gives.

Thanks for you help.




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU